loading...
Double slit: time-integrated intensity on the detector column (gold) and the path-difference theory (blue). Other systems: density along x through y = 0
running...
The science
The equation. In units hbar = m = 1 a particle in a potential V is described by a complex wavefunction ψ(x, t) that obeys the time-dependent Schrödinger equation
i ∂ψ/∂t = −½ ∂2ψ/∂x2 + V(x) ψ
The Born rule says |ψ(x)|2 dx is the probability of finding the particle between x and x + dx, so the norm ∫|ψ|2 dx = 1 must be kept for all times; the evolution is unitary. The momentum-space wavefunction φ(k) is the Fourier transform of ψ(x), and the uncertainty relation Δx Δp ≥ ½ follows from the Fourier pair (a Gaussian saturates it).
The solver. The page integrates the equation with the second-order split-step Fourier (Strang) method. One step of length dt is
ψ ← e−iV dt/2 · F−1[ e−i k2 dt/2 · F[ e−iV dt/2 ψ ] ]
where F is the fast Fourier transform. Each factor is a pure phase, so the scheme is exactly unitary (the norm stays 1 to rounding error) and the only error is the commutator of kinetic and potential terms, which is of order dt2. The box is periodic (an FFT property); the optional absorbing edges multiply the wave by a smooth damping factor near the walls, and the lost probability is counted as left or right outflow so the totals still add up.
Two dimensions. The 3D page solves the same equation on a 128 × 128 grid (a 36 × 36 plane) with i ∂ψ/∂t = [−½∇2 + V(x, y)]ψ, using the same split-step method with a two-dimensional FFT. The height of the landscape is |ψ|2 (or |ψ| or Re ψ, your choice) and the colour is the phase arg ψ, so the wave crests, the phase fronts and the interference nodes are all visible. The height can be auto-scaled to the current peak (otherwise it keeps the scale of the initial packet, so spreading is visible as flattening).
Double slit. A wavepacket with k0 = 5 (wavelength λ = 2π/k0) hits a wall with one or two slits (V = 60 inside the wall, so it is effectively hard). Behind the slits each opening acts as a source of circular waves; they interfere, and at the detector column the time-integrated density ∫|ψ(xs, y, t)|2 dt shows the fringe pattern. The path difference to a point at height y is Δ = r1 − r2 with r1,2 = √(D2 + (y ∓ d/2)2), where D is the distance from the wall to the detector, and the bright fringes lie at Δ = nλ; for D >> d this gives the familiar spacing λD/d. The theory curve combines cos2(πΔ/λ) with the single-slit envelope sinc2(π w sinθ /λ) of slit width w. A single slit gives only the envelope (diffraction). The detector strip on the plinth shows the pattern building up.
Tunnelling wall. A wall of height V0 and thickness a stops a packet of energy E = k02/2 < V0 only partly: a small wave emerges on the far side, with probability falling like e−2κa, κ = √(2(V0 − E)). The graph of probability left and right of the wall shows the split. The bowl V = ½ω2r2 has eigenstates ψnx(x)ψny(y) (Hermite functions) with energy (nx + ny + 1)ω; a packet with the ground-state width circles without spreading (coherent state). The ring trap V = ½ω2(r − R)2, R = 7, confines a packet to an annulus, and the crystal lattice V = V0/4 (1 + cos(2πx/d))(1 + cos(2πy/d)) scatters waves with wavelength 2d (Bragg condition k = π/d).
Measurement. The button picks a point from the Born distribution |ψ|2 and multiplies the wave by a Gaussian of the chosen resolution there (red marker), then renormalises.
Checks run in the page. (1) The 2D free packet width against the closed form; (2) the 2D norm after 125 split-steps; (3) the oscillator ground state stays stationary; (4) its energy 〈H〉 = ω (the kinetic part is taken from the 2D FFT spectrum); (5) the first side fringe of a double slit (d = 5, k0 = 5) against the exact path-difference prediction; (6) the central fringe is brighter than the first dark band.
Honest simplifications. One particle in two dimensions (no spin, no interaction, no decoherence). Units hbar = m = 1 (one length unit of 1 nm is an energy unit of 0.076 eV and a time unit of 8.7 fs for an electron). A 128-point grid with dx = 0.28 resolves wavelengths down to about 0.6; the slit wall is a numerical hard wall of V = 60. The detector integrates probability density over time, which is proportional to the particle flux for a packet of nearly constant speed, so it reproduces the pattern of many single-particle detections but not their random individual arrival points (use Measure position for a single Born-rule sample). The absorbing sponge at the edges (darker rim) removes the outgoing wave; the lost probability is counted and shown. Wave heights are plotted, not physical distances, and the Blender plinth, frame and walls are scenery.