Dimensionless units
Pick a length scale and a particle mass. All displayed numbers use these dimensionless variables, and the code sets the mass and the reduced Planck constant to unity.
Q010 · Eigenstates, superpositions and displacement
If the probability density of a quantum oscillator never changes, is its energy zero? No. In an energy eigenstate the probability density never changes, yet the momentum still has a spread, and even the ground state keeps half a quantum of zero-point energy. No particle is orbiting behind that steady density.
Prepare an energy eigenstate, a coherent mix of neighboring levels or a displaced ground state. See how the nodes, the energy occupations and the position records fit together, with no hidden orbit assumed for the particle.
Simulated independent preparations
Blue bars are recorded frequencies; the gray curve is a separate model density. Time-series dots show sample means with one standard error; orange dots show sample standard deviations. These are not confidence intervals or particle paths.
Current sample mean and spread
Current measured uncertainty product
Grid norm and boundary mass
Model occupation beyond level 32
Hermite eigenstates and displaced-state evolution are analytic. Position and Fourier momentum are sampled on a 2,048-point interval of length 64. The occupation display groups higher levels; its tail does not truncate the evolved displaced state.
Model sources: MIT 8.04 · Coherent-state evolution
Physics tutorial
BackgroundA harmonic trap has discrete stationary states with nodes, and even its ground state has nonzero energy.
Why it mattersIn a superposition of levels the relative phase changes in time, and a displacement moves the whole ground-state cloud.
Start with the essentials
Pick a length scale and a particle mass. All displayed numbers use these dimensionless variables, and the code sets the mass and the reduced Planck constant to unity.
The potential stays exactly quadratic over the whole displayed amplitude. Changing the frequency prepares the state again. Equally spaced levels and a nonzero ground energy are properties of this ideal Hamiltonian.
A normalized Hermite recurrence generates levels zero through nine. An eigenstate only changes its global phase, so its density stays still, yet its kinetic and potential energies are both nonzero.
Changing the relative phase moves the interference pattern in space. The occupation weights stay constant during ideal evolution. The energy bars are not positions inside the trap.
The center moves like a classical oscillator, and the packet keeps its width. This is an ensemble average, not the path of a hidden point particle. The exact displaced state is not cut off at the displayed levels.
The first nine levels get their own bars, and all higher levels are grouped together. The model also tracks the tail beyond level 32 and does not renormalize the visible bars.
Each event starts from a new preparation, and position and momentum records come from separate ensembles. The standard error says how uncertain a sample mean is; the sample spread estimates the uncertainty of the prepared state.
Typical misconceptionThe moving density is the known path of one particle.
Better mental modelThe cloud is the distribution of the prepared state. Each recorded point comes from a new preparation, not from tracking one particle continuously.
Typical misconceptionMore shots fix every error.
Better mental modelMore shots reduce sampling noise. They do not correct grid spacing, a periodic boundary, imperfect apparatus or a wrong physical model.
Replay the ground state and inspect the complex amplitude.
What to observe: The global phase turns, but the probability density does not move.Select Three nodes, then change the level and trap frequency.
What to observe: The number of nodes equals the eigenstate index; the trap frequency changes the length scale.Mix adjacent levels and vary their weight and phase.
What to observe: The density moves, but the level occupations stay fixed.Displace the ground state and sample positions at nine times.
What to observe: The measured centers oscillate, and the cloud keeps a nonzero width.