|q⟩ Bad Qubits

beginner · Physics · Spin & the Stern–Gerlach Experiment

Spin and the Bloch Sphere

Every pure spin-12\tfrac{1}{2} state lives in a two-dimensional complex Hilbert space, and every state in that space has a natural home on a unit sphere called the Bloch sphere. Understanding this map turns abstract state vectors into geometric objects you can visualize and reason about intuitively.

The general spin-½ state

The most general normalized single-qubit (spin-12\tfrac{1}{2}) state can be written

ψ=cos ⁣θ20+eiϕsin ⁣θ21,|\psi\rangle = \cos\!\frac{\theta}{2}\,|0\rangle + e^{i\phi}\sin\!\frac{\theta}{2}\,|1\rangle,

where θ[0,π]\theta \in [0, \pi] and ϕ[0,2π)\phi \in [0, 2\pi) are real angles. The phase factors are chosen so that the coefficient of 0|0\rangle can always be taken as real and non-negative, which removes the unobservable global phase from the parametrization. You can verify normalization directly:

cosθ22+eiϕsinθ22=cos2 ⁣θ2+sin2 ⁣θ2=1.\left|\cos\frac{\theta}{2}\right|^2 + \left|e^{i\phi}\sin\frac{\theta}{2}\right|^2 = \cos^2\!\frac{\theta}{2} + \sin^2\!\frac{\theta}{2} = 1. \checkmark

Mapping angles to the sphere

The pair (θ,ϕ)(\theta, \phi) are precisely the polar and azimuthal angles of a point on the unit sphere. We define the Bloch vector n^=(sinθcosϕ,sinθsinϕ,cosθ)\hat{n} = (\sin\theta\cos\phi,\,\sin\theta\sin\phi,\,\cos\theta) and assign:

The key points on the equator have direct physical meaning:

| ϕ\phi | State | Physical interpretation | |--------|-------|------------------------| | 00 | 12(0+1)=+x\tfrac{1}{\sqrt{2}}(|0\rangle + |1\rangle) = |{+x}\rangle | Spin-up along +x+x | | π\pi | 12(01)=x\tfrac{1}{\sqrt{2}}(|0\rangle - |1\rangle) = |{-x}\rangle | Spin-down along +x+x | | π/2\pi/2 | 12(0+i1)=+y\tfrac{1}{\sqrt{2}}(|0\rangle + i|1\rangle) = |{+y}\rangle | Spin-up along +y+y | | 3π/23\pi/2 | 12(0i1)=y\tfrac{1}{\sqrt{2}}(|0\rangle - i|1\rangle) = |{-y}\rangle | Spin-down along +y+y |

Why a sphere and not a circle?

A general vector α0+β1\alpha|0\rangle + \beta|1\rangle has two complex amplitudes, i.e. four real degrees of freedom. Normalization α2+β2=1|\alpha|^2 + |\beta|^2 = 1 removes one, leaving three. The remaining reduction comes from the fact that the overall global phase eiγe^{i\gamma} of a state vector is unobservable (it cancels in every Born-rule probability), so two vectors related by a global phase represent the same physical state. Dividing out this equivalence removes one more degree of freedom, leaving two. Those two free real parameters — equivalently the modulus and argument of the global-phase-invariant ratio β/α\beta/\alpha — are exactly the angles θ\theta and ϕ\phi. The result is a two-sphere S2S^2 — the Bloch sphere.

Spin eigenstates as Bloch vectors

When you measure Sn^=n^SS_{\hat{n}} = \hat{n} \cdot \mathbf{S} (spin along an arbitrary unit vector n^\hat{n}), the eigenstates with eigenvalue +/2+\hbar/2 and /2-\hbar/2 correspond to the Bloch vectors +n^+\hat{n} and n^-\hat{n} respectively. In other words, antipodal points on the Bloch sphere are orthogonal states. This is a distinguishing feature of spin-12\tfrac{1}{2}: in ordinary 33-d space, orthogonal vectors are 90°90° apart, but orthogonal spin states are 180°180° apart on the Bloch sphere.

Measurement probabilities from the Bloch vector

Given a state ψ|\psi\rangle with Bloch vector n^=(sinθcosϕ,sinθsinϕ,cosθ)\hat{n} = (\sin\theta\cos\phi, \sin\theta\sin\phi, \cos\theta), the probability of obtaining spin-up (+/2+\hbar/2) when measuring along the zz-axis is

P(+z)=0ψ2=cos2 ⁣θ2.P(+z) = |\langle 0|\psi\rangle|^2 = \cos^2\!\frac{\theta}{2}.

For θ=0\theta = 0 (north pole, 0|0\rangle) this gives P(+z)=1P(+z) = 1, as expected. For θ=π/2\theta = \pi/2 (equator) it gives P(+z)=cos2(π/4)=1/2P(+z) = \cos^2(\pi/4) = 1/2, the 50/50 result for a spin state pointing along a horizontal axis and measured along zz. For θ=π\theta = \pi (south pole, 1|1\rangle) it gives P(+z)=cos2(π/2)=0P(+z) = \cos^2(\pi/2) = 0.

Try it

The equator of the Bloch sphere represents spin states pointing along horizontal axes. Prepare the spin eigenstate +x|{+x}\rangle (spin-up along the xx-axis), which has θ=π/2\theta = \pi/2 and ϕ=0\phi = 0:

+x=12(0+1).|{+x}\rangle = \frac{1}{\sqrt{2}}\bigl(|0\rangle + |1\rangle\bigr).

Starting from 0|0\rangle (north pole), apply the single gate that lands your Bloch vector on the +x+x point of the equator.

Run your code to see the quantum state.

Sign in on the full site to ask questions and join the discussion.