What is the Bloch sphere?

The Bloch sphere is a picture of every state one qubit can be in. Each state is a point on the surface of a ball, drawn as an arrow from the center. Gates turn the arrow, and the arrow's height tells you the odds of measuring 0 or 1.

It's named after the physicist Felix Bloch. It works for any qubit, whatever the qubit is made of (an atom, a photon, a superconducting circuit), because the math of one qubit is the same for all of them.

A Bloch sphere with an arrow tilted 60 degrees down from the top and turned 60 degrees around the equator, with the angles θ and φ marked.θφ|0⟩|1⟩|+⟩|−⟩|+i⟩|−i⟩
The state with θ = 60° and φ = 60°: tilted 60° down from ∣0⟩|{0}\rangle, and turned 60° around from ∣+⟩|{+}\rangle toward ∣+i⟩|{+i}\rangle.

Reading the sphere

  • Top and bottom: ∣0⟩|{0}\rangle is at the top (the north pole) and ∣1⟩|{1}\rangle at the bottom.
  • Height is probability. The higher the arrow, the likelier a measurement gives 0. At the top it's certain, at the equator it's 50/50, at the bottom it never happens.
  • Around is phase. States at the same height have the same odds; where they sit around the sphere is their relative phase. On the equator, ∣+⟩|{+}\rangle points toward you, ∣+i⟩|{+i}\rangle to the right, ∣−⟩|{-}\rangle at the back and ∣−i⟩|{-i}\rangle to the left (in the app's starting view).
  • Opposite points are opposite answers. Two states on opposite sides, like ∣0⟩|{0}\rangle and ∣1⟩|{1}\rangle, or ∣+⟩|{+}\rangle and ∣−⟩|{-}\rangle, can be told apart perfectly by the right measurement.

Two angles: θ and φ

Like latitude and longitude, two angles say where the arrow points:

  • θ (theta) is how far the arrow tilts down from the top: 0° at ∣0⟩|{0}\rangle, 90° on the equator, 180° at ∣1⟩|{1}\rangle.
  • φ (phi) is how far it has turned around the vertical axis, measured from ∣+⟩|{+}\rangle toward ∣+i⟩|{+i}\rangle: 0° at ∣+⟩|{+}\rangle, 90° at ∣+i⟩|{+i}\rangle, 180° at ∣−⟩|{-}\rangle, 270° at ∣−i⟩|{-i}\rangle. At the poles φ has no meaning, the way longitude has none at the North Pole.

The two angles give the state directly:

∣ψ⟩=cos⁡θ2 ∣0⟩+eiφsin⁡θ2 ∣1⟩|\psi\rangle = \cos\tfrac{\theta}{2}\,|0\rangle + e^{i\varphi}\sin\tfrac{\theta}{2}\,|1\rangle

Check the corners: θ=0\theta = 0 gives ∣0⟩|{0}\rangle; θ=180∘\theta = 180^\circ gives eiφ∣1⟩e^{i\varphi}|1\rangle, which is ∣1⟩|{1}\rangle up to a global phase; θ=90∘,φ=0\theta = 90^\circ, \varphi = 0 gives 12(∣0⟩+∣1⟩)=∣+⟩\tfrac{1}{\sqrt{2}}(|0\rangle + |1\rangle) = |{+}\rangle.

The arrow as coordinates (x, y, z)

The arrow's tip is a point (x,y,z)(x, y, z) with length 1, called the Bloch vector. The x axis points to ∣+⟩|{+}\rangle, y to ∣+i⟩|{+i}\rangle and z to ∣0⟩|{0}\rangle. From the angles, or straight from the amplitudes α\alpha and β\beta:

(x,y,z)=(sin⁡θcos⁡φ, sin⁡θsin⁡φ, cos⁡θ)(x, y, z) = (\sin\theta\cos\varphi,\ \sin\theta\sin\varphi,\ \cos\theta)
x=2 Re(αˉβ),y=2 Im(αˉβ),z=∣α∣2−∣β∣2x = 2\,\mathrm{Re}(\bar\alpha\beta), \quad y = 2\,\mathrm{Im}(\bar\alpha\beta), \quad z = |\alpha|^2 - |\beta|^2

The height z gives the probabilities: P(0)=1+z2P(0) = \tfrac{1 + z}{2} and P(1)=1−z2P(1) = \tfrac{1 - z}{2}. The app's State panel shows θ, φ and (x,y,z)(x, y, z) for the selected qubit as it moves.

What the sphere leaves out: global phase

Multiplying a whole state by a factor such as −1-1, ii or eiγe^{i\gamma} changes nothing that any measurement can detect, so the sphere doesn't show it: ∣1⟩|{1}\rangle and −∣1⟩-|1\rangle are the same point. This is why the formula above can start with a real, positive cos⁡θ2\cos\tfrac{\theta}{2}. The app writes every state that way (α real and at least 0), so the ket and the arrow always agree.

The relative phase between ∣0⟩|{0}\rangle and ∣1⟩|{1}\rangle is a different matter: it is the angle φ, and it changes where the arrow points.

One qubit at a time

The sphere shows one qubit. Several qubits can each have their own arrow while they're independent, which is what the app's five colored qubits are. Once qubits are entangled, no single arrow can describe one of them, and a sphere per qubit no longer shows the whole state.

Points inside the ball also mean something: they're mixed states, a qubit whose state is uncertain, for example one that is ∣0⟩|{0}\rangle or ∣1⟩|{1}\rangle with equal chances, which sits at the center. This site sticks to pure states, on the surface.

Entanglement and mixed states are where this site stops. The free online book Introduction to Quantum Information Science covers both, and much more; see Keep learning.

Try it

In the app, Set state ▸ Angles has sliders for θ and φ: drag them and a ghost arrow previews the state before you set it. Drag the sphere to look at it from any side. Next: the six key states.