DiracDirac

Part II · Dynamics and the Wave · Chapter 5

Time and Change

Four postulates describe a frozen world; the fifth sets it ticking. We meet it the way nature serves it: a molecule that cannot make up its mind, a spin that runs like a clock, and the trick — resonance — by which we talk back.

Sources: Feynman III, Chs. 8–11 · Cohen-Tannoudji I, Ch. IV · Sakurai §§2.1–2.2 · Susskind, Lecture 4

What this chapter covers

  • 5.1The restless molecule. ammonia's nitrogen atom tunnels between two homes, 24 billion times a second — the phenomenon that powered the first maser, live on your screen.
  • 5.2What motion must look like. from one demand — probability must survive — to unitary evolution, the Schrödinger equation, stationary states, and the secret identity of energy: frequency.
  • 5.3The flip-flop, solved. the two-level Hamiltonian diagonalized; splitting, beat notes, and why a tilted molecule stops flipping — the formula that will chase us all chapter.
  • 5.4The spin as a clock. Larmor precession on the Bloch sphere — the motion your MRI reads — and what a resonant nudge does to it.
  • 5.5Talking to atoms. Rabi flopping and the resonance line: how a whisper at the right frequency overturns a spin, tested against the exact lab-frame Schrödinger equation.
  • 5.6The lab. an RK4 integrator for the time-dependent Schrödinger equation (TDSE) in Rust, refereed against exact solutions and a counting experiment — including the sign bug it caught in its own author.

Ammonia, NH₃, is a squat little pyramid: three hydrogens in a triangular base, one nitrogen perched above. Or — below. Both are perfectly good homes, mirror images, same energy. A classical marble in one of two valleys would simply stay where it was put; the wall between the valleys is far too high to climb. But this is a quantum nitrogen. It does not climb the wall. It leaks through, the way amplitude leaked through both slits in Chapter 1, and so the real molecule is never settled: put the nitrogen definitely on top, wait, and you will find the probability sloshing — top, bottom, top, bottom — about twenty-four billion round trips per second.

NN upNN downtunnelVbarrier−AN upN down|−⟩ antisym.+A|+⟩ symm.−A2A2A / h = 24 GHz
Figure 5.1. Ammonia as a two-state system. Left: the two mirror homes — nitrogen sitting above, or below, the plane of the three hydrogens. Centre: along the nitrogen's path the energy is a double well, one valley per home, separated by a barrier too tall to climb; the amplitude to leak through it (per unit time) is . Right: that leakage splits the single classical level into a doublet — the symmetric blend below and the antisymmetric above, separated by . The gap is exactly the GHz the gas absorbs and emits.

Nobody deduced this from a lecture; the sloshing broadcasts itself. A gas of ammonia absorbs and emits microwaves at exactly 24 GHz (a wavelength of about a centimeter), and in 1954 that oscillation was persuaded to run the first maser — the laser's microwave parent. Here is the molecule's inner life, with the knobs exposed:

start in:
max transfer = 1.000

With ε = 0 the probability sloshes completely, left to right and back, at the tunneling frequency. Tilt the molecule (ε > 0 — an electric field pushing on the nitrogen) and the transfer becomes partial: the maximum is A²/(A² + ε²/4), a resonance curve we will meet again in Section 5.5 wearing different clothes. And press ground state: the bars freeze. Nothing observable moves — only an overall phase turns, and Chapter 3 proved overall phases are invisible. A stationary state is not a state where the molecule stops; it is a state where the probabilities stop.

A word on the clock, since it is not the molecule's. Time here is in units of 1/A and advances 1.6 units per second of wall clock, so one round trip takes a second or two on screen. Real ammonia, whose 2A/h = 24 GHz doublet sets its own units, gets through twenty-four billion round trips in that second.

Two knobs, two discoveries. The asymmetry knob tilts the two homes apart in energy — and the sloshing chokes off. Amplitude only flows freely between options of equal energy; remember that, it is the germ of every resonance. And the ground state button: press it and all motion stops dead, forever. There exist special states that do not slosh — and finding them, for any system whatsoever, is the entire technical content of quantum dynamics. Let us see why.

That upper level is not just a curiosity — it can be put to work. Sort a beam of ammonia so that only the higher-energy molecules survive, coax them past a resonant cavity tuned to 24 GHz, and each one dumps its energy into the cavity in step with the radiation already there. The result is a self-sustaining microwave oscillator of extraordinary purity — the maser (microwave amplification by stimulated emission of radiation). Figure 5.2 is the machine.

source(NH₃ oven)state selectorupper state |−⟩ focused inlower state ejectedcavity24 GHzcoherent
Figure 5.2. The ammonia-beam maser. An oven emits a beam of NH₃ molecules in a mix of states. An electrostatic state selector focuses the upper-state molecules toward the axis while throwing the lower-state ones aside, so a population inverted beam enters the cavity. There each molecule is stimulated to drop to , emitting a 24 GHz photon locked in phase with the field — a coherent, self-sustaining oscillation.

We get to derive the shape of all quantum motion from one non-negotiable demand: the probabilities must keep adding to one. An atom that is somewhere now is somewhere later. Write the evolution over time t as an operator, . Conservation of total probability says always, i.e. — evolution is unitary: a rigid rotation of the state space. Nothing stretches, nothing tears; the arrow of state just turns.

Now look at an infinitesimal turn. Any unitary close to the identity has the form with Hermitian — check it: unitarity to first order demands exactly . So a Hermitian operator generates time evolution, and stacking infinitesimal turns gives

(5.1)

That is the time-dependent Schrödinger equation (TDSE) — not pulled from a hat, but forced by “probability survives.” Erwin Schrödinger wrote it down in 1926, in the fourth of the six papers that founded wave mechanics; we have simply recovered it from a single demand rather than guessed it.

One caveat on that exponential, and it will matter in Section 5.5. The compact form holds only when does not itself depend on time. If it does — and a spin being shouted at by a rotating field is exactly that case — then the infinitesimal turns no longer commute with one another, the exponents refuse to add, and stacking them gives a time-ordered product instead of a single exponential. The differential equation remains exactly true; it is only the closed-form solution that is lost. That is precisely why the lab of Section 5.6 integrates step by numerical step rather than exponentiating a matrix.

Which Hermitian operator is it? Here we take the one clue nature gives: the states that do not move. Feed an eigenstate into (5.1):

(5.2)

an overall phase — invisible, as you proved in Chapter 3's hard exercise. Nothing measurable changes: these are the stationary states, the frozen bars of the widget above. And their frequency of invisible turning is — the generator's eigenvalue is energy, and energy is nothing but the rate of the quantum phase clock. Planck's is not a law about light; it is the definition of what energy is in quantum mechanics.

Then where does visible motion come from? From superpositions. Two energy components turn at different rates, and their relative phase — which is measurable — beats at the difference frequency:

(5.3)

All quantum dynamics is beat notes between energy levels. Spectral lines, chemical reaction rates, the color of gold, the ammonia maser — every “how fast?” in the quantum world is answered by an energy difference. One corollary before we cash this in: using (5.1), any observable's average moves as

(5.4)

so whatever commutes with is conserved — the deepest sentence in physics (symmetries make conservation laws) arriving here as a one-line consequence of Chapter 3's commutator.

Back to ammonia, now with tools. Two base states, and , same energy (call it zero), and one crucial off-diagonal number: the amplitude per unit time to leak through the wall, . The Hamiltonian and its eigenstates:

(5.5)

The stationary states are not “left” or “right” but the symmetric and antisymmetric blends — the molecule's true energy levels, split by . Start the nitrogen at and let (5.3) do the rest: the two components beat at , and

(5.6)

Complete flip-flop, at the beat frequency of the doublet — and 24 GHz is nothing but for ammonia's actual tunneling amplitude (about 50 µeV — a millionth of a chemical bond, which is why the wall is opaque to classical thinking and translucent to amplitudes). Tilt the two wells by ε (an electric field pulls on the molecule's dipole) and the same algebra gives a maximum transfer of — the choking you found with the slider. File that formula's shape away; in two sections it becomes the most famous curve in spectroscopy.

5.4The spin as a clock: precession

C · ConceptsF · Formalism

The same mathematics wears a more graceful costume on the Bloch sphere. Put a spin-1/2 in a magnetic field along z: , stationary states up and down, splitting . Any other state is a superposition of the two, so by (5.3) it beats at — and on the sphere that beat is pure geometry: the Bloch vector sweeps a cone about the field axis. Larmor precession. The spin is a gyroscope whose rate reads the field:

⟨σz⟩ (up-ness)
1.000
elapsed t (1 unit = 1 second of wall clock)
0.0

Drive off: the tilted spin sweeps a cone — precession at the Larmor rate, the fastest clock in physics (your MRI scan reads exactly this motion in your body's protons). Drive on, at resonance (δ = 0): the spin is relaunched from the north pole, and a feeble transverse field, several times weaker than the main one, winds it clear down to the south pole and back — because it rotates in step and its little pushes add coherently, like timing your shoves on a playground swing. Detune it and the pushes fall out of step: the spin wobbles but never gets far. Off-beat shoves, however strong, mostly cancel.

The clock here is honest: one second of wall-clock time is one unit of simulated t, so the elapsed-t readout is a stopwatch. Time one full pole-to-pole-and-back roll on resonance and you should get 2π/Ω — at the current Ω = 0.40, that is 15.7 seconds. Integrated as dr/dt = B(t) × r with the same RK4 stepper and the same co-rotating drive as the Rust lab.

Now switch on the drive and watch the second act — a tiny transverse field, rotating in step with the precession. In the spin's own rotating point of view that little field stands still, and a constant field does what constant fields do: precess the spin around itself, slowly, majestically, all the way from north to south and back. That slow roll is Rabi flopping, and the swing-pushing analogy is exact: on the beat, tiny pushes accumulate without limit; off the beat, they cancel. Nature runs on the same trick your six-year-old discovered at the playground.

5.5Talking to atoms: the resonance line

F · FormalismC · ConceptsP · Practice

Make the rotating-frame argument honest. Split the spin by , drive at frequency ω with strength Ω, and transform to the frame rotating with the drive. The algebra (exercise 5, and exact for a circularly rotating drive) leaves a time-independent two-level Hamiltonian with diagonal splitting (detuning ) and off-diagonal coupling which is precisely the tilted ammonia molecule of Section 5.3. Same matrix, same solution, new names:

(5.7)

One formula, three appearances in one chapter — the tunneling doublet, the tilted molecule, the driven spin. When the same equation keeps arriving in different costumes, you have found one of nature's load-bearing walls. The Rust lab integrated the true lab-frame Schrödinger equation — the drive wiggling many times faster than the flopping it causes, with no rotating-wave shortcut anywhere — and then ran the counting experiment. The ratio it actually used is printed on the chart:

Loading /data/ch05/dynamics.json… (run cargo run --release in Rust-QP/ch05-dynamics)

The lab Rust-QP/ch05-dynamics is our first numerical integrator — the workhorse skill for the rest of the book, where Hamiltonians stop being analytically solvable. The classic fourth-order Runge–Kutta stepper, applied to , is fifteen lines:

Rust-QP/ch05-dynamics/src/main.rs — RK4 for the TDSE
1/// i dc/dt = H(t) c => dc/dt = -i H(t) c. One RK4 step of size dt.
2fn rk4_step(h: &dyn Fn(f64) -> [[C; 2]; 2], t: f64, dt: f64, y: State) -> State {
3 let f = |t: f64, y: State| -> State {
4 let m = h(t);
5 [
6 -c(0.0, 1.0) * (m[0][0] * y[0] + m[0][1] * y[1]),
7 -c(0.0, 1.0) * (m[1][0] * y[0] + m[1][1] * y[1]),
8 ]
9 };
10 let add = |a: State, b: State, s: f64| -> State { [a[0] + b[0] * s, a[1] + b[1] * s] };
11 let k1 = f(t, y);
12 let k2 = f(t + dt / 2.0, add(y, k1, dt / 2.0));
13 let k3 = f(t + dt / 2.0, add(y, k2, dt / 2.0));
14 let k4 = f(t + dt, add(y, k3, dt));
15 [
16 y[0] + (k1[0] + k2[0] * 2.0 + k3[0] * 2.0 + k4[0]) * (dt / 6.0),
17 y[1] + (k1[1] + k2[1] * 2.0 + k3[1] * 2.0 + k4[1]) * (dt / 6.0),
18 ]
19}

And a confession worth more than the code. Our first run of the driven-spin experiment failed its own assertion: the numeric flip probability disagreed with equation (5.7) by a factor of nearly one. The bug: the drive's rotation sense — one sign in one exponent — was counter-rotating against the spin's precession, pushing the swing exactly off the beat. The physics caught the physicist:

Rust-QP/ch05-dynamics/src/main.rs — the drive, with the sign that matters
1/// Lab-frame Hamiltonian of a driven spin: splitting w0, circularly
2/// rotating transverse drive of amplitude Omega at frequency w.
3/// H(t) = (w0/2) sigma_z + (Omega/2)[cos(wt) sigma_x + sin(wt) sigma_y]
4/// Matrix form: upper-right element (Omega/2) e^{-i w t}. The sign matters:
5/// the drive must co-rotate with the spin's own precession — flip it and
6/// you drive the resonance at -w0 instead (our first buggy run proved it).
7fn rabi_h(w0: f64, omega: f64, w: f64) -> impl Fn(f64) -> [[C; 2]; 2] {
8 move |t: f64| {
9 let phase = c(0.0, -w * t).exp() * (omega / 2.0);
10 [[c(w0 / 2.0, 0.0), phase], [phase.conj(), c(-w0 / 2.0, 0.0)]]
11 }
12}

With the sense fixed, the referees pass. Each one is a race between two independent code paths — an RK4 integration on one side, a closed form or a counting experiment on the other — and each tolerance is parked at the accuracy actually achieved, with a small factor of headroom and no more. A tolerance set four orders above what your code delivers is not a referee; it is a rubber stamp that will keep stamping long after the physics has rotted. Note the order of the two assertions inside push: finite first, small second. A NaN is smaller than nothing at all.

Rust-QP/ch05-dynamics/src/main.rs — the scoreboard
1// --- the referees: assert FINITE before asserting small ---------------
2 let mut referees: Vec<Referee> = Vec::new();
3 let mut push = |name: &str, value: f64, tol: f64| {
4 assert!(value.is_finite(), "{name} is not finite: {value}");
5 referees.push(Referee { name: name.into(), value, tol, pass: value < tol });
6 };
7 // Tolerances sit at the achieved accuracy (~1.3x headroom), never above it.
8 push("Norm drift, time-independent H (ammonia)", norm_err, 2e-14);
9 push("Norm drift, time-dependent H(t) (driven spin)", rabi_norm_err, 6e-14);
10 push("Ammonia flip: RK4 vs sin²(A t)", flip_err, 1e-12);
11 push("Larmor: RK4 ⟨σx⟩ vs cos(ω₀ t)", prec_err, 2e-12);
12 push("Rabi traces: lab frame vs rotating frame", rabi_err, 5e-11);
13 push("Resonance peak: RK4 P(t*) vs Ω²/(Ω²+δ²)", peak_err, 1e-12);
14 push("Counting experiment: |measured − theory| in σ", count_sigma, 3.5);

And here is that scoreboard, read live out of the JSON the lab just wrote — not transcribed into this page by hand, which is how published numbers go stale:

Loading /data/ch05/dynamics.json… (run cargo run --release in Rust-QP/ch05-dynamics)

Two of them are worth a second look. The norm drift is measured twice, because conserving probability under a frozen Hamiltonian is the easy half; the driven spin's turns over many times per Rabi period, and it is that harder number the scoreboard reports. And the last referee is a statistical one: the whole detuning sweep of synthetic atoms, graded in standard deviations rather than absolute error, because a counting experiment that agreed to 10⁻¹² would mean the noise had been faked. When you write your own labs, keep the assertions merciless — they are the difference between a simulation and a cartoon.

Chapter 5 — what you now own

  • The law of motion: probability conservation forces unitary evolution, generated by a Hermitian .
  • The identity of energy: stationary states turn only in phase, at rate — energy is phase frequency, and all visible dynamics is beats between levels.
  • The master system: the two-level Hamiltonian solved once, worn three ways — ammonia's 24 GHz flip-flop, the tilted molecule, Rabi flopping — all governed by .
  • The geometry: on the Bloch sphere, dynamics is precession; resonance is a co-rotating whisper that walks the pole.
  • The craft: an RK4 integrator for the TDSE with merciless self-checks — which caught a real sign error in its own construction.

5.7Exercises

F · FormalismC · ConceptsP · Practice
  1. (F) Show that is unitary if and only if is Hermitian, and derive equation (5.4) from the Schrödinger equation and its conjugate.
  2. (F) For the ammonia Hamiltonian (5.5), carry out the two-line diagonalization and verify (5.6). Then add the tilt ε and derive the choked maximum .
  3. (C) In the driven-spin widget, set δ/Ω = 0, switch the drive on (which relaunches the spin from the north pole with the clock at zero), and read the elapsed-t counter when returns to . Simulated time runs 1:1 with the wall clock, so that number should be 2π/Ω for the displayed Ω. Then find the detuning at which the spin never drops below the equator, and verify it is δ = Ω.
  4. (F, hard) Energy–time uncertainty, done honestly: there is no time operator, so derive the Mandelstam–Tamm relation instead. Combine Robertson (4.5) for with equation (5.4) to show — the time for any observable to change by one standard deviation. Evaluate for the ammonia flip and check it against (5.6).
  5. (F, hard) Do the rotating-frame transformation without shortcuts: with and the lab Hamiltonian of the Rust lab, compute and show it is exactly time-independent for a circularly rotating drive — then show it is not for a linearly polarized one, and identify the leftover term (the seed of the Bloch–Siegert shift in exercise 6).
  6. (P) Change the lab's drive to linear polarization, . The resonance survives (half the amplitude works with you, half against), but the peak moves. Sweep carefully and measure the shift for several Ω; compare with the Bloch–Siegert prediction .
  7. (P, hard) Spin echo. Simulate 1,000 spins with random detunings drawn from a Gaussian (an inhomogeneous sample). Apply a π/2 pulse, watch the net transverse signal decay as the spins fan out (T₂* dephasing) — then hit a π pulse at time τ and watch the fan close into an echo at 2τ. Plot signal vs time. You have reproduced Hahn's 1950 discovery, the foundation of MRI contrast — and proved this “decay” was never true information loss.

The bridgeChapter 6: Wave Mechanics

Where you stand. You can move a quantum state: unitary evolution from probability conservation, energy as phase frequency, and the two-level solution worn three ways — tunneling doublet, tilted molecule, driven spin.

The open question. Two levels made dynamics easy because the state was two numbers. But an electron in a wire, an atom in a trap — position is a CONTINUUM of base states. What does the Schrödinger equation become when the state is a function ψ(x)?

What comes next. Wave mechanics: wave packets that move and spread, momentum as wavelength, quantum tunneling through real barriers, and bound states as standing waves — with a split-operator FFT solver in Rust to watch it all happen.

Continue to Chapter 6