Skip to content
Quantum ComputingAN INTERACTIVE OPEN TEXTBOOK
charithj.com.au

The Bloch sphere

Read a geometric picture without mistaking it for the physical device.

10 min readDr. Charith Jayasekara↓ Chapter PDF
By the end, you’ll be able to
  • Convert qubit angles into Bloch coordinates.
  • Explain the pure-state limitation of the explorer.

For the angle representation in F07, the Bloch coordinates are

x=sin⁡θcos⁡ϕ,y=sin⁡θsin⁡ϕ,z=cos⁡θ.x=\sin\theta\cos\phi,\qquad y=\sin\theta\sin\phi,\qquad z=\cos\theta.

They satisfy x2+y2+z2=1x^2+y^2+z^2=1. In terms of amplitudes, x=2Re⁡(α∗β)x=2\operatorname{Re}(\alpha^*\beta), y=2Im⁡(α∗β)y=2\operatorname{Im}(\alpha^*\beta) and z=∣α∣2−∣β∣2z=|\alpha|^2-|\beta|^2.

The north pole is ∣0⟩\lvert0\rangle, south is ∣1⟩\lvert1\rangle, positive x is ∣+⟩\lvert+\rangle, and positive y is (∣0⟩+i∣1⟩)/2(\lvert0\rangle+i\lvert1\rangle)/\sqrt2.

L01 · INTERACTIVE LABRuns on your device

Qubit explorer

A pure qubit is a normalised pair of complex amplitudes. The sphere shows the state; the bars show measurement probabilities in the Z basis.

Make a prediction first

Move the state to the equator. What will happen to the Z-basis probabilities when you change only the phase?

Experiment controls
|0⟩|1⟩xyz|ψ⟩
Exact probability
|0⟩
50.0%
|1⟩
50.0%

Exact ideal-model predictions · run a measurement experiment to compare.

MODEL · Ideal pure-state vector, complex double precisionORDER · q0 is the leftmost bit
Take it further

Create a state with a 75% probability of measuring 1. Can you find two different phases with the same probabilities?

At θ=90°\theta=90° and ϕ=90°\phi=90°, the coordinates are (0,1,0)(0,1,0). The Z probabilities are P(0)=(1+z)/2=1/2P(0)=(1+z)/2=1/2 and P(1)=(1−z)/2=1/2P(1)=(1-z)/2=1/2.

Move ϕ\phi around the equator. The arrow direction changes while z stays zero. This makes it easy to see why a single Z measurement setting misses relative phase.

Mixed single-qubit states have Bloch vectors of length at most one. The maximally mixed state sits at the centre. It is different from an equatorial pure state even though both can have equal Z probabilities. Describing mixed states properly requires density matrices, planned in X01.

This explorer deliberately models pure states only. The projected ellipse and arrow are drawing choices; they do not depict a hardware qubit’s literal shape.

Check yourself: identify the coordinates of ∣−⟩\lvert-\rangle. They are (−1,0,0)(-1,0,0).

Reference: Microsoft Learn — The qubit.

ONE IDEA FURTHER

Ready for the next step?

Your progress stays in this browser.