|q⟩ Bad Qubits

beginner · Physics · Spin & the Stern–Gerlach Experiment

Spin in a Magnetic Field

When a spin-12\tfrac{1}{2} particle is placed in a uniform magnetic field B=B0z^\mathbf{B} = B_0\,\hat{z}, two things happen simultaneously: the energy levels split into two distinct values (Zeeman splitting), and any spin state that is not an energy eigenstate precesses around the field direction at a characteristic frequency. Both effects flow directly from the Hamiltonian that couples spin to the field.

The spin Hamiltonian

The interaction energy of a magnetic dipole moment μ\boldsymbol{\mu} with a field B\mathbf{B} is

H=μB.H = -\boldsymbol{\mu} \cdot \mathbf{B}.

For an electron the spin magnetic moment is

μ=gse2meS,\boldsymbol{\mu} = -\frac{g_s e}{2m_e}\,\mathbf{S},

where gs2g_s \approx 2 is the electron gg-factor, ee is the elementary charge, and mem_e is the electron mass. Defining the Larmor angular frequency

ω0=gseB02me=eB0me\omega_0 = \frac{g_s e B_0}{2m_e} = \frac{e B_0}{m_e}

(the last equality uses gs=2g_s = 2), the Hamiltonian for a field along z^\hat{z} becomes

H=ω0Sz,H = \omega_0\, S_z,

where Sz=2σzS_z = \tfrac{\hbar}{2}\,\sigma_z and σz\sigma_z is the Pauli zz-matrix.

Zeeman splitting

Because SzS_z has eigenvalues ±2\pm\tfrac{\hbar}{2}, the Hamiltonian has two energy eigenvalues:

E±=±ω02.E_{\pm} = \pm\frac{\hbar\omega_0}{2}.

The spin-up state +z|{+z}\rangle (eigenvalue ms=+12m_s = +\tfrac{1}{2}) has energy E+=+ω02E_+ = +\tfrac{\hbar\omega_0}{2}, and the spin-down state z|{-z}\rangle has energy E=ω02E_- = -\tfrac{\hbar\omega_0}{2}. The gap between them is

ΔE=E+E=ω0.\Delta E = E_+ - E_- = \hbar\omega_0.

This splitting of a single degenerate level into two sub-levels by an applied magnetic field is called the Zeeman effect. For a proton in a field of B0=1TB_0 = 1\,\text{T}, the relevant quantity is the proton Larmor frequency ω0/(2π)42.6MHz\omega_0 / (2\pi) \approx 42.6\,\text{MHz}, which lies in the radio-frequency band — the basis of magnetic resonance imaging (MRI).

Time evolution and Larmor precession

The energy eigenstates ±z|{\pm z}\rangle are stationary: they pick up only an overall phase under time evolution and give constant expectation values for all observables. A spin state that is not aligned with the field, however, is a superposition of the two eigenstates:

ψ(0)=α+z+βz,α2+β2=1.|\psi(0)\rangle = \alpha\,|{+z}\rangle + \beta\,|{-z}\rangle, \qquad |\alpha|^2 + |\beta|^2 = 1.

Applying the Schrödinger time-evolution operator eiHt/e^{-iHt/\hbar} independently to each eigenstate gives

ψ(t)=αeiω0t/2+z+βe+iω0t/2z.|\psi(t)\rangle = \alpha\,e^{-i\omega_0 t/2}\,|{+z}\rangle + \beta\,e^{+i\omega_0 t/2}\,|{-z}\rangle.

The relative phase between the two components advances at rate ω0\omega_0. Computing the expectation values of SxS_x and SyS_y from this state reveals that the spin vector rotates around the zz-axis at the same rate. Specifically, if the spin starts in the xzxz-plane at polar angle θ\theta from +z+z:

Sx(t)=2sinθcos(ω0t),\langle S_x(t) \rangle = \frac{\hbar}{2}\sin\theta\cos(\omega_0 t), Sy(t)=2sinθsin(ω0t),\langle S_y(t) \rangle = \frac{\hbar}{2}\sin\theta\sin(\omega_0 t), Sz(t)=2cosθ.\langle S_z(t) \rangle = \frac{\hbar}{2}\cos\theta.

The zz-component is constant while the transverse component traces a circle. This is Larmor precession: the spin expectation value revolves around the field axis at angular frequency ω0\omega_0, completing one full revolution in period T=2π/ω0T = 2\pi/\omega_0.

Resonance

If an oscillating field at frequency ω0\omega_0 is applied perpendicular to B\mathbf{B}, it drives transitions between +z|{+z}\rangle and z|{-z}\rangle. This resonance condition ω=ω0\omega = \omega_0 is the cornerstone of nuclear magnetic resonance (NMR) and electron spin resonance (ESR). A pulse lasting exactly the right time can rotate the spin from +z|{+z}\rangle to z|{-z}\rangle — the quantum analogue of flipping a bit — because the oscillating field continuously accumulates phase with the precessing spin.

Connection to the qubit

The two energy levels E±E_\pm map directly onto the computational basis states 0|0\rangle and 1|1\rangle of a qubit. Single-qubit rotations in a quantum computer are often implemented physically by driving spin resonance: a carefully timed microwave or radio-frequency pulse precesses the spin by a controlled angle, executing a rotation gate. The energy gap ΔE=ω0\Delta E = \hbar\omega_0 sets the qubit transition frequency and must be known precisely for gate calibration.

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