1. Bit
  2. Qubit
  3. Superposition
  4. Measurement
  5. Entanglement
  6. Circuits
  7. Fourier
  8. Shor
  9. Grover
  10. Correction

Chapter 01 · Qubits

A unit vector in a complex space

A qubit is not “0 and 1 at the same time”. It is a unit vector in ℂ2, whose components are complex amplitudes; their squared moduli give the probabilities of each outcome. Geometrically, every qubit is a point on a sphere.

In 1900 Max Planck explained the spectrum of hot bodies by assuming that energy is exchanged in discrete packets, quanta. A quarter of a century later, Heisenberg (1925) and Schrödinger (1926) built two theories that looked different and turned out to be the same, and in 1932 John von Neumann gave them their definitive mathematical form: the states of a quantum system are vectors in a Hilbert space. The smallest non-trivial quantum system has a two-dimensional space: the qubit.

Hilbert spaces and Dirac notation

Definition (Hilbert space, finite dimension)

A vector space ℋ=ℂd with the inner product ⟨ϕ|ψ⟩=∑iϕi‾ψi, which is linear in the second argument, satisfies ⟨ϕ|ψ⟩=⟨ψ|ϕ⟩‾ and ⟨ψ|ψ⟩=‖ψ‖2≥0, with equality only for ψ=0.

Paul Dirac introduced in 1939 a notation that is still used everywhere. A column vector is a ket, |ψ⟩; its conjugate transpose, a row vector, is a bra, ⟨ψ|=|ψ⟩†. Placed together they give a bra-ket, the inner product ⟨ϕ|ψ⟩, and in the opposite order an operator: |ψ⟩⟨ψ| is the projector onto |ψ⟩.

The qubit and the Born rule

Postulate (states)

The state of a qubit is a unit vector in ℂ2:

|ψ⟩=α|0⟩+β|1⟩,α,β∈ℂ,|α|2+|β|2=1.

The numbers α and β are amplitudes. They cannot be observed directly. What can be observed is the outcome of a measurement, and here Max Born, in a footnote to a 1926 paper, gave the rule that connects the formalism with the laboratory.

Postulate (Born rule)

Measuring |ψ⟩ in the basis {|0⟩,|1⟩} gives 0 with probability |α|2=|⟨0|ψ⟩|2 and 1 with probability |β|2=|⟨1|ψ⟩|2. After the measurement the state becomes |0⟩ or |1⟩, according to the outcome.

This is why a qubit is not “0 and 1 at once”: it is a state that, when measured, gives one definite result with probabilities set by the amplitudes. The difference from a probabilistic bit is that amplitudes are complex numbers that can cancel each other out, which we will see in the next chapter. Each amplitude can be pictured as an arrow in the complex plane: its length is the modulus and its angle is the phase, α=|α|eiφ.

Global phase is invisible

Proposition (global phase)

For every real γ, the states |ψ⟩ and eiγ|ψ⟩ give the same probabilities for every possible measurement.

Proof

Any outcome has probability |⟨e|ψ⟩|2 for some unit vector |e⟩. Multiplying by eiγ gives |eiγ|2|⟨e|ψ⟩|2=|⟨e|ψ⟩|2, because |eiγ|=1.

On the other hand, the relative phase between α and β does matter: 12(|0⟩+|1⟩) and 12(|0⟩−|1⟩) give the same probabilities in the basis {|0⟩,|1⟩}, but they are orthogonal states, perfectly distinguishable in another basis. They are called |+⟩ and |−⟩.

The Bloch sphere

A qubit has four real parameters (two complex numbers), minus one for normalization and one for the invisible global phase: two remain. Two angles, like latitude and longitude on a sphere.

Theorem (Bloch sphere)

Up to a global phase, every state of a qubit can be written uniquely as

|ψ⟩=cos⁡θ2|0⟩+eiφsin⁡θ2|1⟩,θ∈[0,π],φ∈[0,2π),

and the map |ψ⟩↦(sin⁡θcos⁡φ,sin⁡θsin⁡φ,cos⁡θ) is a bijection between pure states and the points of the unit sphere S2 (with φ undefined at the poles). Orthogonal states correspond to antipodal points.

Proof

Write α=|α|eia and β=|β|eib. Multiplying by the global phase e−ia makes α real and non-negative, and leaves β=|β|ei(b−a). Since |α|2+|β|2=1, there is a unique θ∈[0,π] with |α|=cos⁡(θ/2) and |β|=sin⁡(θ/2); set φ=b−a.

For orthogonality: ⟨ψ|ψ′⟩=0 means that the angle between the two vectors in ℂ2 is 90°, and the half-angles in the formula double it into 180° on the sphere. Explicitly, the antipode of (θ,φ) is (π−θ,φ+π), and cos⁡θ2cos⁡π−θ2−sin⁡θ2sin⁡π−θ2=cos⁡π2=0.

Drag the point on the sphere (or use the sliders). The north pole is |0⟩ and the south pole |1⟩; the equator holds the equally weighted superpositions, which differ only in their relative phase φ. The arrows on the right are the two amplitudes in the complex plane. Measuring gives 0 with probability cos2⁡(θ/2), whatever the value of φ.

How much information does a qubit hold?

Describing a qubit requires two real numbers, which in principle could have infinitely many decimal digits. Could a single qubit store an encyclopedia? No, and the reason is a theorem.

Theorem (Holevo bound, 1973, special case)

If a classical message is encoded in the state of n qubits and the receiver measures them in any way, the mutual information between message and outcome is at most n bits.

Each measurement collapses the state and yields just one bit per qubit. The information of the amplitudes is real, but it is not accessible all at once. The art of quantum algorithms consists in making the amplitudes interfere so that, when we finally measure, the useful bit appears with high probability.

We now have the static description of a qubit. In the next chapter we set it in motion, and the feature that sets amplitudes apart from probabilities appears: they can cancel each other out.

References

  1. M. Born (1926). “Zur Quantenmechanik der Stoßvorgänge”. Zeitschrift für Physik, 37.
  2. J. von Neumann (1932). Mathematische Grundlagen der Quantenmechanik. Springer.
  3. P. A. M. Dirac (1939). “A new notation for quantum mechanics”. Mathematical Proceedings of the Cambridge Philosophical Society, 35(3).
  4. F. Bloch (1946). “Nuclear Induction”. Physical Review, 70.
  5. A. S. Holevo (1973). “Bounds for the quantity of information transmitted by a quantum communication channel”. Problems of Information Transmission, 9(3).
  6. M. A. Nielsen and I. L. Chuang (2010). Quantum Computation and Quantum Information, 10th anniversary ed. Cambridge University Press.