Quantum
mechanics lab

Seven experiments that run in your browser. Change the state and watch the mathematics respond.

A wavepacket meets a barrier taller than its average energy. Height is |ψ|², colour is the phase of ψ, read off the wheel. Part of the packet tunnels through; the rest reflects.

Quantum mechanics is not an FFT. A state can be written in different bases, and its position and momentum descriptions are related by a Fourier transform. The FFT is only a fast way to evaluate that transform on a grid. Here it drives the solver in experiment 1 and the spectra in experiment 2 — a numerical tool, not the physics.

1

The Schrödinger equation

A Gaussian wavepacket moving through a potential you choose. This is a genuine numerical solution — split-step Fourier on 1024 points — so barriers reflect and tunnel, and wells hold the packet in.

Momentum distribution |φ(p)|²

time t
0
⟨x⟩
0
⟨p⟩
0
spread σx
0
beyond x = 0
0
still in view
1

Click or tap the plot to relaunch the packet from that point. The dashed line is the packet’s average energy.

2

Position and momentum

The same state, seen twice. The right plot is the numerical Fourier transform of the left one. Squeeze the packet in position and it widens in momentum.

Position ψ(x)

Momentum φ(p)

Uncertainty product σxσp against the bound ℏ/2

σx
—
σp
—
σxσp
—
⟨p⟩
—
3

Energy levels

Confinement allows only standing waves that fit. Pick one energy eigenstate and |ψ|² stays frozen while its phase turns; mix in a second and the probability starts to slosh.

first state E
—
second state E
—
slosh period
—
⟨x⟩ now
—

Set the share to 0 or 1 for a pure eigenstate. Animation time is rescaled so one cycle always takes about three seconds.

4

Pauli exclusion

Two identical particles in a box. The map is their joint wavefunction Ψ(x₁, x₂): colour is its sign, strength is its size. Fermions must change sign when mirrored across the diagonal.

Joint wavefunction Ψ(x₁, x₂)

Filling the box with N particles

under exchange
—
both in same half
—
closer than L/10
—
fermion / boson energy
—

Put both fermions in the same state and the map goes blank: the wavefunction is zero everywhere.

5

Measurement

Two packets heading towards each other, in superposition. Each measurement returns one position, drawn from |ψ|², and resets the state to a narrow packet there — which then spreads again.

predicted P(x < 0)
—
measured x < 0
—
measurements
0
last outcome
—
6

The double slit

Single photons, one at a time. Each lands as a single dot at a random place; the fringes only appear as the dots accumulate. Add which-path information and they wash out.

fringe spacing
—
central envelope
—
fringe visibility
—
photons detected
0
7

Entanglement

A spin singlet is split between Alice and Bob. Each sees a random ±1, whatever the settings. The structure is only in how their results agree — and it breaks a limit that any local model must obey.

CHSH test |S|

angle between analyzers
—
predicted E
—
measured E
—
++ / +− / −+ / −−
0 / 0 / 0 / 0

Measure 1000 pairs, move Bob’s analyzer, measure again. The dots trace out the quantum curve, not the straight classical one.