Skip to main content

Let's Define Quantum Programming

 

 

Along with the strange discoveries of quantum physics, one of these ideas for how we could use it is quantum computers. Work on quantum computers, which is a pretty good idea, started small and became what it is today. Now we had to take one more step and do quantum programming.

The first studies on this process were made in the early 2000s. However, these studies were more theoretical. This was because quantum computers were not yet technologically ready.

Finally, with the serious development of quantum computers (of course, we are still not at the desired point) we started to create our quantum algorithms.

Today, we can do these algorithms on IBM Quantum Experience, Microsoft Azure Quantum, DWave Leap Cloud, or with quantum development kits. With these platforms, most of which are open source, we can create our quantum algorithms with the Python language, which we use classically and which is the most common programming language.

The fact that such platforms are open source is also a good advantage for producing companies. Because in this way, open-source concrete algorithms that can be applied by physicists, mathematicians, computer engineers, and many curious people around the world will be produced.

The smallest structural unit of quantum computers is the quantum bit (qubit). Qubits consist of a binary system of 0 and 1 like the classical bits. However, unlike classical bits, electron spins take advantage of superposition or entanglement to have both bits 0 and 1 at the same time.

If we look at the Dirac notation (bra-ket) of the qubit, it is expressed as follows.

If we quantify the probability that a qubit will be measured using two numbers, 

| 𝛼|² is expressed as the probability that the qubit will be measured as 0, and 

| 𝛽 |² is the probability that the qubit will be measured as 1.

In the case of multiple qubits, we should write it as a tensor product.

Once we have defined our qubits, we must apply them in quantum logic gates as in classical programming. Quantum logic gates are quantum circuits that form the basic building blocks of quantum algorithms.

Unlike many classical logic gates, quantum logic gates are reversible. This is an important feature. Because the functions we use to create a quantum algorithm must be unitary, hermitian, and reversible.

You can see some of the quantum logic gates used below.


Stay with physics. :)

 

 

Reference

Peter Selinger. Towards a Quantum Programming Language. Mathematical Structures in Computer Science, 14(4):527–586, August 2004. 10.1017/​S0960129504004256.
https:/​/​doi.org/​10.1017/​S0960129504004256

https://qiskit.org/documentation/getting_started.html


Comments

  1. The future of algorithm will be awesome.

    ReplyDelete
  2. Quantum is a very interesting subject.

    ReplyDelete

Post a Comment

Popular posts from this blog

Quantum Memories in Free Space

     In quantum technologies, the important point is to be able to transmit the information-carrying quantum bits (qubits) from the transmitter to the receiver without loss or damage. This is one of the main purposes. For this, physicists are developing quantum memories that allow us to store information-loaded photons for certain periods of time to be transmitted at any time. Quantum memories are essential components for applications such as quantum information processing, quantum networks, and quantum repeaters. There are quantum devices developed by various methods in order not to lose photons or disrupt their function during the storage process of qubits. In today's article, I will talk about an alternative approach besides the material quantum memories produced. Scientists from the University of Illinois Urbana-Champaign, Truman State University, and RightHand Robotics, Inc. have succeeded in producing a quantum memory in free space. Before describing quantum memories operatin

Quantum Phase Estimation - Calculating an Eigenvalue

    We continue our series of fundamental and ongoing quantum algorithms. In today's post, we'll look at the eigenvalue calculation that is familiar to anyone in both the basic sciences and engineering. We will consider a slightly different situation, of course, our work is quantum. Let's consider the quantum state of a system! When we make an observation, we obtain real observation values by calculating the eigenvalues and eigenvectors of the state in that system, the mathematical calculation that helps us to have information about the position, momentum, or energy of that system. So, how can we find the eigenvalues of the unitary operators, which act on a system without changing its size, that is, preserve its physical size? To solve this problem, we will examine the Quantum Phase Estimation solution. In order to find the eigenvalues of the unit operator U, we need to find the value of the phase ϕ, which is inside the exponential value. However, it is not that easy. A qua