The SI second is defined as 9,192,631,770 periods of the radiation for the hyperfine transition F=3, mF=0 ↔ F=4, mF=0 of caesium-133 at rest, unperturbed. Here a thermal beam from an oven (373 K) passes a state selector, then a Ramsey cavity: two short microwave zones (2 cm) a distance L apart. A detector counts atoms that ended in F=4.
With Rabi rate Ω, pulse time τ = l/v, drift T = L/v and detuning Δ = 2π(f - fc), the transition probability is P = 4(Ω/Ωg)2 sin2(Ωgτ/2) [cos(ΔT/2) cos(Ωgτ/2) - (Δ/Ωg) sin(ΔT/2) sin(Ωgτ/2)]2, Ωg = √(Ω2 + Δ2). The central fringe is only about 1/(2T) wide; the plot is the average over the beam's speed distribution f(v) ∝ v3 e-v²/α², which washes out the side fringes.
The oscillator is steered by a servo that probes both sides of the central fringe and moves the frequency until the two signals match (with realistic shot noise). The clock counts oscillator cycles, so a frequency error δ makes it gain or lose δ/f0 seconds per second. Systematic shifts matter: the C-field that defines the quantisation axis shifts the clock transition by 427.45 B2 Hz (B in gauss; checked here against the Breit-Rabi formula). Without correction the lock sits on the shifted peak; the correction uses a measured B with a 1 % error. If the oscillator starts a fringe period away the servo can lock onto a side fringe, as real clocks must guard against.
The checks compare the Ramsey formula with an RK4 integration of the Schrödinger equation and with exact Bloch-vector rotations, the fringe width with 1/(2T), the Zeeman coefficient, the exact counting of 9,192,631,770 cycles and the servo lock point.
Simplifications: a two-level atom with a single Rabi rate, ideal square pulses (no phase shift between cavity arms, no Doppler or cavity-pulling shifts, no collisions), a Maxwell beam, and a model servo with 105 detected atoms per probe. Modern primary standards are caesium fountains with cold atoms and T near 0.5 s (fringes about 1 Hz wide); this is the older thermal-beam design. The scene is not to scale and the beam is drawn in slow motion. The quartz comparison clock is a simple fixed fractional error.
Running numerical checks...