|q⟩ Bad Qubits

intermediate · Physics · Spin-½ Systems & Pauli Algebra

Spin in a Magnetic Field

A spinning charge carries a magnetic moment, so a spin-½ particle in an external magnetic field has its energy split according to its spin orientation. This is the Zeeman effect, and its dynamics — Larmor precession — are the foundation of nuclear magnetic resonance, MRI, and qubit control.

The magnetic moment and the Hamiltonian

The magnetic moment of a spin-½ is proportional to its spin,

μ=γS,\boldsymbol{\mu} = \gamma\,\mathbf{S},

where γ\gamma is the gyromagnetic ratio. The energy of a moment in a field B\mathbf{B} is μB-\boldsymbol{\mu}\cdot\mathbf{B}, so the Hamiltonian is

H=μB=γSB.H = -\boldsymbol{\mu}\cdot\mathbf{B} = -\gamma\,\mathbf{S}\cdot\mathbf{B}.

Choosing the field along zz, B=Bz^\mathbf{B} = B\hat{z},

H=γBSz=γB2σz.H = -\gamma B\,S_z = -\frac{\gamma B \hbar}{2}\,\sigma_z.

Energy eigenstates and the splitting

Since HH is proportional to σz\sigma_z, its eigenstates are 0|0\rangle and 1|1\rangle with energies

E=γB2,E=+γB2.E_\uparrow = -\frac{\gamma B \hbar}{2}, \qquad E_\downarrow = +\frac{\gamma B \hbar}{2}.

(For γ>0\gamma > 0 the spin-up state is the lower-energy ground state — the moment prefers to align with the field.) The gap between them is

ΔE=EE=γB=ωL,ωLγB,\Delta E = E_\downarrow - E_\uparrow = \gamma B \hbar = \hbar\omega_L, \qquad \omega_L \equiv \gamma B,

defining the Larmor angular frequency ωL\omega_L.

Larmor precession

A spin not aligned with the field is a superposition of the two energy eigenstates. Under time evolution eiHt/e^{-iHt/\hbar} the relative phase between them winds at rate ωL\omega_L, which makes the Bloch vector precess about the field axis at the Larmor frequency:

Sx(t)=Sx(0)cosωLt+Sy(0)sinωLt,\langle S_x\rangle(t) = \langle S_x\rangle(0)\cos\omega_L t + \langle S_y\rangle(0)\sin\omega_L t,

with Sz\langle S_z\rangle constant. The transverse spin rotates exactly like a classical gyroscope in a field — one of the cleanest correspondences between quantum and classical mechanics.

Try it

For γ=5\gamma = 5 and B=0.4B = 0.4 (with =1\hbar = 1), compute the Larmor angular frequency ωL=γB\omega_L = \gamma B. It should equal 22, which is also the energy splitting ΔE=ωL\Delta E = \hbar\omega_L.

Run your code to see the quantum state.

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