Simple Algorithm
Quantum Computing · Excited State · 22 min

Geometry of a Qubit: The Bloch Sphere

Every pure qubit state is a point on a sphere. Every gate is a rotation.

Two complex amplitudes means four real numbers, yet every pure qubit state is just a direction in space. In this lesson you derive the Bloch sphere, read probabilities straight off its geometry, and prove that every single-qubit gate is a rotation of it.

What you’ll learn

  • Derive ∣ψ⟩=cos⁡θ2∣0⟩+eiφsin⁡θ2∣1⟩\ket\psi=\cos\frac\theta2\ket0+e^{i\varphi}\sin\frac\theta2\ket1 from normalization and global-phase freedom.
  • Compute a Bloch vector as r⃗=(⟨X⟩,⟨Y⟩,⟨Z⟩)\vec r=(\expval{X},\expval{Y},\expval{Z}) and use ∣ψ⟩ ⁣⟨ψ∣=12(I+r⃗⋅σ⃗)\dyad{\psi}=\tfrac12(\id+\vec r\cdot\vec\sigma).
  • Prove ∣⟨ϕ∣ψ⟩∣2=12(1+r⃗⋅s⃗)\abs{\braket{\phi|\psi}}^2=\tfrac12(1+\vec r\cdot\vec s), so that orthogonal states are antipodal.
  • Show that Rn^(θ)=e−iθ n^⋅σ⃗/2R_{\hat n}(\theta)=e^{-i\theta\,\hat n\cdot\vec\sigma/2} rotates the sphere by θ\theta about n^\hat n, and that every single-qubit unitary is such a rotation up to global phase.

Four real numbers become two angles

A state ∣ψ⟩=α∣0⟩+β∣1⟩\ket\psi=\alpha\ket0+\beta\ket1 is fixed by two complex numbers, that is, four real numbers. Two of them are not physical. Normalization ∣α∣2+∣β∣2=1\abs\alpha^2+\abs\beta^2=1 removes one. The global phase removes another, because ∣ψ⟩\ket\psi and eiγ∣ψ⟩e^{i\gamma}\ket\psi give identical statistics for every measurement.

Two real parameters survive, and two parameters is exactly what it takes to label the points of a sphere.

DerivationThe Bloch parametrization
  1. α=∣α∣eiγ,β=∣β∣ei(γ+φ)\alpha=\abs\alpha e^{i\gamma},\qquad \beta=\abs\beta e^{i(\gamma+\varphi)}

    Write both amplitudes in polar form. φ\varphi is the phase of β\beta relative to α\alpha.

  2. ∣α∣2+∣β∣2=1  ⟹  ∣α∣=cos⁡θ2,∣β∣=sin⁡θ2,θ∈[0,π]\abs\alpha^2+\abs\beta^2=1\;\Longrightarrow\;\abs\alpha=\cos\tfrac\theta2,\quad\abs\beta=\sin\tfrac\theta2,\qquad\theta\in[0,\pi]

    Two non-negative numbers whose squares sum to 1 are a cosine and a sine. The half-angle is a choice, justified below.

  3. ∣ψ⟩=eiγ(cos⁡θ2∣0⟩+eiφsin⁡θ2∣1⟩)\ket\psi=e^{i\gamma}\left(\cos\tfrac\theta2\ket0+e^{i\varphi}\sin\tfrac\theta2\ket1\right)

    Factor out the common phase.

  4. ∣ψ⟩≃cos⁡θ2∣0⟩+eiφsin⁡θ2∣1⟩  ⟷  r⃗=(sin⁡θcos⁡φ, sin⁡θsin⁡φ, cos⁡θ)\ket\psi\simeq\cos\tfrac\theta2\ket0+e^{i\varphi}\sin\tfrac\theta2\ket1\;\longleftrightarrow\;\vec r=(\sin\theta\cos\varphi,\ \sin\theta\sin\varphi,\ \cos\theta)

    Drop the unobservable eiγe^{i\gamma}. Read θ\theta as the polar angle and φ∈[0,2π)\varphi\in[0,2\pi) as the azimuth: each state is a point on the unit sphere, the Bloch sphere.

Check your understanding

The state 32∣0⟩+12∣1⟩\tfrac{\sqrt3}{2}\ket0+\tfrac12\ket1 has polar angle θ=\theta= ?

  1. π/6\pi/6
  2. π/3\pi/3
  3. π/4\pi/4
  4. 2π/32\pi/3
Show the answer

B. π/3\pi/3

cos⁡θ2=32\cos\frac\theta2=\frac{\sqrt3}{2} gives θ2=π6\frac\theta2=\frac\pi6, so θ=π3\theta=\frac\pi3. The Bloch vector is (32,0,12)(\frac{\sqrt3}{2},0,\frac12), and indeed P(0)=34=1+cos⁡θ2P(0)=\frac34=\frac{1+\cos\theta}{2}.

The Bloch vector is a list of expectation values

There is a coordinate-free way to find r⃗\vec r: measure the three Pauli observables. For the parametrized state, a two-line computation gives

⟨X⟩=2 Re(α∗β)=sin⁡θcos⁡φ,⟨Y⟩=2 Im(α∗β)=sin⁡θsin⁡φ,⟨Z⟩=∣α∣2−∣β∣2=cos⁡θ.\expval X=2\,\mathrm{Re}(\alpha^*\beta)=\sin\theta\cos\varphi,\quad \expval Y=2\,\mathrm{Im}(\alpha^*\beta)=\sin\theta\sin\varphi,\quad \expval Z=\abs\alpha^2-\abs\beta^2=\cos\theta.

So r⃗=(⟨X⟩,⟨Y⟩,⟨Z⟩)\vec r=(\expval X,\expval Y,\expval Z): the point on the sphere is the list of expectation values.

Overlaps and probabilities from geometry

Because pure states are projectors, overlaps become dot products. Let ∣ψ⟩\ket\psi and ∣ϕ⟩\ket\phi have Bloch vectors r⃗\vec r and s⃗\vec s.

DerivationOverlap = dot product
  1. ∣⟨ϕ∣ψ⟩∣2=Tr⁡ ⁣(∣ϕ⟩ ⁣⟨ϕ∣ ∣ψ⟩ ⁣⟨ψ∣)\abs{\braket{\phi|\psi}}^2=\Tr\!\big(\dyad\phi\,\dyad\psi\big)

    The Born-rule probability, written as a trace of two projectors.

  2. =14Tr⁡ ⁣[(I+s⃗⋅σ⃗)(I+r⃗⋅σ⃗)]=\tfrac14\Tr\!\big[(\id+\vec s\cdot\vec\sigma)(\id+\vec r\cdot\vec\sigma)\big]

    Insert the projector form of both states.

  3. =14[2+0+0+Tr⁡((s⃗⋅σ⃗)(r⃗⋅σ⃗))]=14[2+2 s⃗⋅r⃗]=\tfrac14\big[2+0+0+\Tr\big((\vec s\cdot\vec\sigma)(\vec r\cdot\vec\sigma)\big)\big]=\tfrac14\big[2+2\,\vec s\cdot\vec r\big]

    Paulis are traceless and Tr⁡(σjσk)=2δjk\Tr(\sigma_j\sigma_k)=2\delta_{jk}.

  4. ∣⟨ϕ∣ψ⟩∣2=12(1+r⃗⋅s⃗)=cos⁡2Θ2\abs{\braket{\phi|\psi}}^2=\tfrac12\left(1+\vec r\cdot\vec s\right)=\cos^2\tfrac{\Theta}{2}

    Θ\Theta is the angle between the Bloch vectors: Hilbert-space angles are half of sphere angles.

Two consequences:

  • Orthogonal means antipodal. ⟨ϕ∣ψ⟩=0\braket{\phi|\psi}=0 exactly when r⃗⋅s⃗=−1\vec r\cdot\vec s=-1. States 90∘90^\circ apart on the sphere, such as ∣0⟩\ket0 and ∣+⟩\ket+, overlap with probability 12\tfrac12.
  • Measuring along any axis. The outcome "up along n^\hat n" is the state with Bloch vector n^\hat n, so P(+n^)=12(1+r⃗⋅n^)P(+\hat n)=\tfrac12(1+\vec r\cdot\hat n). Measuring ZZ, XX or YY reads off one component of r⃗\vec r.
Predict before you look

A qubit's Bloch vector lies in the xx–zz plane, 60∘60^\circ from +z+z toward +x+x. You measure XX. What is the probability of the outcome ++, in percent?

Show the answer

93 %

r⃗=(sin⁡60∘,0,cos⁡60∘)≈(0.866,0,0.5)\vec r=(\sin60^\circ,0,\cos60^\circ)\approx(0.866,0,0.5), so P(+)=12(1+rx)≈0.933P(+)=\tfrac12(1+r_x)\approx0.933. A ZZ measurement gives P(0)=12(1+0.5)=0.75P(0)=\tfrac12(1+0.5)=0.75, and a YY measurement gives 50%50\%.

Every gate is a rotation

For a unit vector n^\hat n define Rn^(θ)=e−iθ n^⋅σ⃗/2R_{\hat n}(\theta)=e^{-i\theta\,\hat n\cdot\vec\sigma/2}. Since (n^⋅σ⃗)2=I(\hat n\cdot\vec\sigma)^2=\id, the exponential series splits into even and odd powers:

Rn^(θ)=cos⁡θ2 I−isin⁡θ2 n^⋅σ⃗.R_{\hat n}(\theta)=\cos\tfrac\theta2\,\id-i\sin\tfrac\theta2\,\hat n\cdot\vec\sigma.

States transform as ρ↦UρU†\rho\mapsto U\rho U^\dagger, so to see what Rn^(θ)R_{\hat n}(\theta) does to the sphere, conjugate the Paulis.

DerivationConjugation rotates the Bloch vector (z-axis)
  1. Rz(θ)=(e−iθ/200eiθ/2)R_z(\theta)=\begin{pmatrix}e^{-i\theta/2}&0\\0&e^{i\theta/2}\end{pmatrix}

    A zz-rotation is diagonal.

  2. Rz(θ) X Rz(θ)†=(0e−iθeiθ0)=cos⁡θ X+sin⁡θ YR_z(\theta)\,X\,R_z(\theta)^\dagger=\begin{pmatrix}0&e^{-i\theta}\\e^{i\theta}&0\end{pmatrix}=\cos\theta\,X+\sin\theta\,Y

    The off-diagonal entries of XX pick up phases e∓iθe^{\mp i\theta}.

  3. Rz(θ) Y Rz(θ)†=cos⁡θ Y−sin⁡θ X,Rz(θ) Z Rz(θ)†=ZR_z(\theta)\,Y\,R_z(\theta)^\dagger=\cos\theta\,Y-\sin\theta\,X,\qquad R_z(\theta)\,Z\,R_z(\theta)^\dagger=Z

    Same computation for YY; ZZ commutes with RzR_z.

  4. (rx,ry,rz)↦(rxcos⁡θ−rysin⁡θ, rxsin⁡θ+rycos⁡θ, rz)(r_x,r_y,r_z)\mapsto(r_x\cos\theta-r_y\sin\theta,\ r_x\sin\theta+r_y\cos\theta,\ r_z)

    Substitute into 12(I+r⃗⋅σ⃗)\tfrac12(\id+\vec r\cdot\vec\sigma): the Bloch vector turns by θ\theta counterclockwise about +z+z (right-hand rule).

Rn^(θ) (r⃗⋅σ⃗) Rn^(θ)†=[cos⁡θ r⃗+sin⁡θ (n^×r⃗)+(1−cos⁡θ)(n^⋅r⃗) n^]⋅σ⃗R_{\hat n}(\theta)\,(\vec r\cdot\vec\sigma)\,R_{\hat n}(\theta)^\dagger=\big[\cos\theta\,\vec r+\sin\theta\,(\hat n\times\vec r)+(1-\cos\theta)(\hat n\cdot\vec r)\,\hat n\big]\cdot\vec\sigma
The general axis gives Rodrigues' rotation formula in Pauli form. Check that it reduces to the derivation above for n^=z^\hat n=\hat z.

The rotation theorem, and what the sphere hides

Check your understanding

Up to global phase, the TT gate diag⁡(1,eiπ/4)\diag(1,e^{i\pi/4}) equals Rz(θ)R_z(\theta) for which θ\theta?

  1. π/8\pi/8
  2. π/2\pi/2
  3. π/4\pi/4
  4. π\pi
Show the answer

C. π/4\pi/4

Rz(π4)=diag⁡(e−iπ/8,eiπ/8)R_z(\tfrac\pi4)=\diag(e^{-i\pi/8},e^{i\pi/8}), and eiπ/8Rz(π4)=diag⁡(1,eiπ/4)=Te^{i\pi/8}R_z(\tfrac\pi4)=\diag(1,e^{i\pi/4})=T. So TT turns the Bloch sphere by 45∘45^\circ about zz.

Think first A 2π2\pi rotation returns every Bloch vector to itself. Is Rn^(2π)R_{\hat n}(2\pi) the identity matrix?

No: Rn^(2π)=cos⁡π I−isin⁡π n^⋅σ⃗=−IR_{\hat n}(2\pi)=\cos\pi\,\id-i\sin\pi\,\hat n\cdot\vec\sigma=-\id. On a lone qubit that is an unobservable global phase. On the target of a controlled rotation it becomes a relative phase that flips the control from ∣+⟩\ket+ to ∣−⟩\ket-. The map from SU(2)SU(2) to rotations is two-to-one.

Key takeaways

  • Normalization and global phase leave two real parameters: cos⁡θ2∣0⟩+eiφsin⁡θ2∣1⟩\cos\tfrac\theta2\ket0+e^{i\varphi}\sin\tfrac\theta2\ket1 is the point (sin⁡θcos⁡φ,sin⁡θsin⁡φ,cos⁡θ)(\sin\theta\cos\varphi,\sin\theta\sin\varphi,\cos\theta).
  • The Bloch vector is r⃗=(⟨X⟩,⟨Y⟩,⟨Z⟩)\vec r=(\expval X,\expval Y,\expval Z), and ∣ψ⟩ ⁣⟨ψ∣=12(I+r⃗⋅σ⃗)\dyad\psi=\tfrac12(\id+\vec r\cdot\vec\sigma).
  • ∣⟨ϕ∣ψ⟩∣2=12(1+r⃗⋅s⃗)\abs{\braket{\phi|\psi}}^2=\tfrac12(1+\vec r\cdot\vec s): orthogonal states are antipodal, and P(+n^)=12(1+r⃗⋅n^)P(+\hat n)=\tfrac12(1+\vec r\cdot\hat n).
  • Rn^(θ)=e−iθn^⋅σ⃗/2R_{\hat n}(\theta)=e^{-i\theta\hat n\cdot\vec\sigma/2} rotates the sphere by θ\theta about n^\hat n, and every single-qubit unitary is eiαRn^(θ)e^{i\alpha}R_{\hat n}(\theta).
  • The correspondence is two-to-one: Rn^(2π)=−IR_{\hat n}(2\pi)=-\id, a sign the sphere cannot show.

Check yourself

In the interactive lesson these are scored with your confidence, and what you miss comes back for review.

Question 1

What is the Bloch vector of 12∣0⟩+1+i2∣1⟩\tfrac1{\sqrt2}\ket0+\tfrac{1+i}{2}\ket1?

  1. (12,12,0)(\tfrac12,\tfrac12,0)
  2. (12,12,0)(\tfrac1{\sqrt2},\tfrac1{\sqrt2},0)
  3. (12,0,12)(\tfrac1{\sqrt2},0,\tfrac1{\sqrt2})
  4. (1,1,0)(1,1,0)
Show the answer

B. (12,12,0)(\tfrac1{\sqrt2},\tfrac1{\sqrt2},0)

∣α∣=∣β∣\abs\alpha=\abs\beta, so rz=0r_z=0. α∗β=1+i22\alpha^*\beta=\tfrac{1+i}{2\sqrt2}, hence rx=2 Re(α∗β)=12r_x=2\,\mathrm{Re}(\alpha^*\beta)=\tfrac1{\sqrt2} and ry=2 Im(α∗β)=12r_y=2\,\mathrm{Im}(\alpha^*\beta)=\tfrac1{\sqrt2}. This is T∣+⟩T\ket+, on the equator at φ=π/4\varphi=\pi/4.

Question 2

Up to global phase, what is Rx(π/2)∣0⟩R_x(\pi/2)\ket0?

  1. ∣+i⟩\ket{+i}
  2. ∣+⟩\ket{+}
  3. ∣−i⟩\ket{-i}
  4. ∣1⟩\ket1
Show the answer

C. ∣−i⟩\ket{-i}

Rx(π2)=12(1−i−i1)R_x(\tfrac\pi2)=\tfrac1{\sqrt2}\begin{pmatrix}1&-i\\-i&1\end{pmatrix}, so Rx(π2)∣0⟩=12(∣0⟩−i∣1⟩)=∣−i⟩R_x(\tfrac\pi2)\ket0=\tfrac1{\sqrt2}(\ket0-i\ket1)=\ket{-i}. Geometrically, a right-handed quarter turn about +x+x carries +z^+\hat z to −y^-\hat y.

Question 3

A state's Bloch vector makes an angle of 60∘60^\circ with the axis n^\hat n. What is the probability of the outcome "up along n^\hat n"?

  1. 14\tfrac14
  2. 12\tfrac12
  3. 32\tfrac{\sqrt3}{2}
  4. 34\tfrac34
Show the answer

D. 34\tfrac34

P=12(1+cos⁡60∘)=34=cos⁡230∘P=\tfrac12(1+\cos60^\circ)=\tfrac34=\cos^230^\circ. The Hilbert-space angle is half the Bloch angle.

Question 4

Which pair of states is orthogonal?

  1. ∣0⟩\ket0 and ∣+⟩\ket+
  2. ∣+i⟩\ket{+i} and ∣−i⟩\ket{-i}
  3. ∣+⟩\ket+ and ∣+i⟩\ket{+i}
  4. ∣0⟩\ket0 and −∣0⟩-\ket0
Show the answer

B. ∣+i⟩\ket{+i} and ∣−i⟩\ket{-i}

∣±i⟩\ket{\pm i} sit at ±y^\pm\hat y. They are antipodal, so r⃗⋅s⃗=−1\vec r\cdot\vec s=-1 and the overlap 12(1+r⃗⋅s⃗)\tfrac12(1+\vec r\cdot\vec s) vanishes. The first and third pairs are 90∘90^\circ apart and overlap with probability 12\tfrac12.

Question 5

Which statement about Rn^(2π)R_{\hat n}(2\pi) is true?

  1. It equals I\id for every axis
  2. It equals −I-\id, and leaves every Bloch vector unchanged
  3. It equals −I-\id, which sends every Bloch vector r⃗\vec r to −r⃗-\vec r
  4. It depends on the axis n^\hat n
Show the answer

B. It equals −I-\id, and leaves every Bloch vector unchanged

Rn^(2π)=cos⁡π I−isin⁡π n^⋅σ⃗=−IR_{\hat n}(2\pi)=\cos\pi\,\id-i\sin\pi\,\hat n\cdot\vec\sigma=-\id for every n^\hat n. Conjugation by −I-\id does nothing, so every Bloch vector is unchanged. On one qubit the sign is a global phase.

Go deeper

Further reading

  • M. A. Nielsen & I. L. Chuang, Quantum Computation and Quantum Information, §1.2 and §4.2 (Cambridge, 10th anniv. ed., 2010).
  • J. Preskill, Lecture Notes for Physics 219: Quantum Computation, Ch. 2 (Caltech).
  • F. Bloch, Nuclear induction, Physical Review (1946).