|q⟩ Bad Qubits

intermediate · Physics · Spin-½ Systems & Pauli Algebra

Spin-½ as a Two-Level System

A spin-½ particle — an electron, a proton, a neutron, or a silver atom's valence electron — carries an intrinsic angular momentum whose measured component along any axis takes only two values: +2+\tfrac{\hbar}{2} or 2-\tfrac{\hbar}{2}. There is no third outcome. This is the experimental heart of the Stern–Gerlach experiment, and it is precisely what makes spin-½ the physical archetype of a qubit.

Two states, two basis vectors

Because a measurement along a chosen axis (conventionally zz) yields exactly two results, the quantum state lives in a two-dimensional complex Hilbert space. We label the two eigenstates of the zz-component of spin

Sz=+2,Sz=2,S_z\,|{\uparrow}\rangle = +\tfrac{\hbar}{2}\,|{\uparrow}\rangle, \qquad S_z\,|{\downarrow}\rangle = -\tfrac{\hbar}{2}\,|{\downarrow}\rangle,

and we identify them with the computational basis of a qubit:

0,1.|{\uparrow}\rangle \equiv |0\rangle, \qquad |{\downarrow}\rangle \equiv |1\rangle.

The most general spin-½ state is a normalized complex superposition

ψ=α0+β1,α2+β2=1.|\psi\rangle = \alpha\,|0\rangle + \beta\,|1\rangle, \qquad |\alpha|^2 + |\beta|^2 = 1.

This is exactly the qubit state vector. Spin-½ and the qubit are the same mathematical object: a unit vector in C2\mathbb{C}^2.

Spin along other axes

Measuring spin along the xx-axis also gives only two outcomes, ±2\pm\tfrac{\hbar}{2}, with eigenstates

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

The state +x|{+x}\rangle is what emerges from a Stern–Gerlach magnet oriented along xx when we keep the deflected-upward beam. In qubit language +x|{+x}\rangle is the familiar +|{+}\rangle state, and it is produced by acting with the Hadamard gate on 0|0\rangle:

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

Why the mapping matters

Identifying spin-½ with a qubit lets us reuse every tool from quantum computing — gates, the Bloch sphere, measurement statistics — to reason about a real physical system, and conversely lets the intuition built on spins (precession, Stern–Gerlach filtering, magnetic resonance) illuminate abstract qubit manipulations. Throughout this module we will keep both pictures in view at once.

Try it

Prepare the spin-up-along-xx state +x=(0+1)/2|{+x}\rangle = (|0\rangle + |1\rangle)/\sqrt{2} on a single qubit starting from 0|0\rangle. The Bloch panel should show the arrow pointing along +x+x after you run it.

Run your code to see the quantum state.

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