New operations in this topic
In this section you will meet the qubit. You will also see a bit of mathematical notation, including some concepts from linear algebra. A qubit (pronounced “cue-bit” and short for quantum bit) is the physical carrier of quantum information. It is the quantum version of a bit, and its quantum state can be written in terms of two levels, labeled and , which can be represented in the “computational basis” by two-dimensional vectors:
What we have described here is the abstract notion of a qubit. The quantum computers you interact with in IBM Quantum use a physical type of qubit called a superconducting transmon qubit, which is made from superconducting materials such as niobium and aluminum, patterned on a silicon substrate. Such systems are not natural qubits, but are instead formed by isolating two energy levels out of many to form our approximate qubit.
The difference in energy between these two energy levels sets the characteristic frequency of the qubit through Planck’s constant : . These frequencies are nominally targeted to be around .
For a superconducting qubit to behave as the abstract notion of the qubit, we must have the device at drastically low temperatures such that , where is Boltzmann’s constant. In the IBM Quantum lab, we must keep the temperature extremely cold (15 millikelvin in a dilution refrigerator) to minimize ambient noise or heat that could excite the superconducting qubit and increase the error probability. Once a system has cooled to the target temperature, which takes several days, the qubit reaches equilibrium at the ground state .
To get a sense for what “ground state” means, try running the quantum circuit below in simulation mode (or run it on a real device). Here, the reset operation prepares the qubit in the state, and is followed by the standard measurement. From your execution results, you should find in the simulation mode (and with very high probability for runs using a real system) that the qubit is still in the state. Any errors on the real device are due to imperfect measurements and/or residual heating of the qubit.
First Quantum Circuit
As you may have guessed, we need to be able to put the qubit in other states. To do this, we require the concept of a quantum gate. A single-qubit quantum gate is a unitary matrix (the matrices must be unitary because quantum gates must be reversible and preserve probability amplitudes). Quantum gates are a convenient way in which to describe the evolution of a quantum state. The action of a gate is to transform an initial state into a final state , where represents the gate. This is simply matrix-vector multiplication.
The simplest gate is the NOT gate, which we denote by . It takes ; in other words, it flips the to a , or vice versa. This gate is classical and its operation is represented by the familiar permutation matrix:
In Quantum Composer, it is shown as . Try running it. Did you find that, unlike in the example above, the qubit ended up in the state in the simulator (and with high probability if you used the real systems)?
Bit-flip Quantum Circuit