This simulation needs WebAssembly, and it could not start in this browser.
The image is a frame from a real run. Check that JavaScript is on, or try another browser.
Erwin Schrödinger published his wave equation in 1926 and used it to derive the energy levels of the hydrogen atom. Later that year Max Born read the wave function as a probability amplitude: is the probability density of finding the particle at . Two years later George Gamow explained alpha decay with the same equation, as a particle tunneling through an energy barrier it could not cross classically. This simulation follows a Gaussian wave packet on a ring of 512 cells through four potentials.
What you see
The filled curve is the probability density , colored by the phase : a moving packet shows bands of color whose spacing is its wavelength. The curve is rescaled every frame so that its highest point fills the panel, so a spreading packet keeps its drawn height. The line in the band below is the potential , scaled to its own largest value. The ends are joined: a packet leaving on the right comes back on the left.
Governing equation
The simulation uses and a cell width of 1, and writes . On the grid a plane wave has the energy and moves with the group velocity . The real and imaginary parts of are advanced in turn, half a step apart, an explicit scheme described by P. B. Visscher in 1991. It is stable while ; with the value stays at or below 1.5 over the whole slider range. The energy drifts by at most 0.3 % over 120,000 steps in every preset, and the total probability is held at 1. The page runs 24 steps per frame, 216 time units per second at 60 frames per second.
The starting state is with cells and , three tenths of the way along.
Presets
Harmonic trap: with , and the packet starts at rest 102 cells left of the center. It swings like a classical particle with angular frequency , a period of 804 time units or 5362 steps. Because the energy levels of a harmonic oscillator are equally spaced, returns to its starting shape after each period: the measured revival comes at 5424 steps (3.8 s), 1.2 % late because of the grid. The packet is wider than the ground state of this trap, so its width breathes between 6 and 23 cells twice per period instead of spreading for good.
Free packet: no potential, . The packet moves at 0.78 cells per time unit, as predicts, and goes once around the ring in about 3 s. It spreads as : after 180 time units the measured width is 22.7 cells, against 22.9 from the formula and 21.2 at the start. The fast and slow momentum components drift apart; a classical particle would keep its shape.
Tunneling: a barrier 9 cells wide and high in the middle, hit by a packet with and mean energy . 98 % of the packet’s momentum distribution lies below the barrier top, so classically almost nothing would pass. The measured transmitted probability is 13.4 %, against 13.9 % from the exact transmission coefficient of a rectangular barrier averaged over the packet; 94 % of that share comes from components below the barrier top, which pass by tunneling. Reflected and transmitted packets separate about 2 s after the start.
Potential well: over 82 cells, , with the packet starting in the middle of the well. Its kinetic energy of 0.09 is less than the depth, and the total energy is negative, so most of it is bound. It bounces between the walls. The tails of the starting Gaussian hold 5 % outside the well, a few percent more escape in the first two seconds, and 89 % is still inside after 3000 frames.
Parameters
Potential: harmonic trap, free, barrier or well. Changing it launches a new packet at once.
Potential strength V₀: , from 0 to 2: the depth of the well, the height of the barrier, or the trap’s value at the edge of the ring. It acts at once on the running packet.
Wave number k₀ (radians per cell): , from to ; negative values send the packet left. Changing it launches a new packet at once.
Dispersion coefficient ħ²/2m: , from 0.25 to 2. It acts at once and speeds up the whole motion: the group velocity grows as and the trap frequency as .