3D The Bloch sphere
The map
of a qubit.
The Bloch sphere is a globe where each point on the surface is a possible state of a qubit. The north pole is 0, the south pole is 1 and everything else is a superposition.
θ (theta) is how far south the arrow is: it decides the probabilities. φ (phi) is the longitude, called phase: it does not change those probabilities, but it does change how the qubit interferes later.
Measuring is choosing a question. On the Z axis you ask “0 or 1?”; on X, “+ or −?”; on Y, “+i or −i?”. If you prepare |0⟩ and measure on Z, you always get 0. If you measure on X, it is a coin toss, and the arrow stays where it fell: the original 0 is lost. That is the basis of quantum key distribution.
The gates are rotations of the arrow. H is a half turn around a diagonal axis, which is why it swaps the Z and X axes. Try this path from 0: press H, then Z and again H. You end on 1: an invisible phase change became a different result.
3D lab
Interactive Bloch sphere
Drag the sphere, or focus it and use the keyboard arrows, to look at it from another angle.
Probability of 0
Probability of 1
- Z axis · 0 or 1
- 100 % · 0 %
- X axis · + or −
- 50 % · 50 %
- Y axis · +i or −i
- 50 % · 50 %
|ψ⟩ = |0⟩ + () |1⟩
You are at the north pole: measuring gives 0.
North pole: 0. South pole: 1. Prepared in 0, measuring on Z always gives 0; measuring on X gives + or − with 50% each.
- What it shows
- The exact pure state of a qubit, its amplitudes and the H, X, Y, Z and S gates as rotations.
- What it does not show
- Several qubits: entanglement does not fit in separate spheres. Neither does noise, nor the global phase, which cannot be observed.