Units
Choose a length scale and particle mass. The displayed numbers use these dimensionless variables; the code uses unit mass and reduced Planck constant.
Q010 · Eigenstate / superposition / displacement
Prepare an energy eigenstate, mix adjacent levels coherently, or displace the ground state. Connect nodes, energy occupations and position records without inventing a hidden particle orbit.
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 admits discrete stationary states with nodes and nonzero ground energy.
Why it mattersSuperposition adds relative phase dynamics; displacement translates the ground-state cloud.
Start with the essentials
Choose a length scale and particle mass. The displayed numbers use these dimensionless variables; the code uses unit mass and reduced Planck constant.
The trap is exactly quadratic at every displayed amplitude. Frequency changes reprepare the state. Equal spacing and nonzero ground energy belong to this ideal Hamiltonian.
The normalized Hermite recurrence generates levels zero through nine. An eigenstate changes only its global phase; its density stays still while kinetic and potential energies remain nonzero.
Changing relative phase moves interference in position space. Occupation weights remain constant during ideal evolution. Energy bars are not positions inside the trap.
The centroid follows the classical oscillator while the packet retains its width. This is an ensemble mean, not the path of a hidden point particle. The analytic displaced state is not truncated to the displayed levels.
The first nine levels are shown separately and all higher probabilities are grouped. The model tracks the additional tail beyond level 32 without renormalizing the visible bars.
Each event starts from a new preparation. Position and momentum records are separate ensembles. One standard error estimates uncertainty of a sample mean; sample spread estimates preparation uncertainty.
Typical misconceptionA moving density is a known path of one particle.
Better mental modelThe cloud is a preparation distribution. Each recorded point comes from a new preparation, not continuous tracking.
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 moves; the probability density does not.Select Three nodes, then change the level and trap frequency.
What to observe: Nodes count the eigenstate index; the trap changes the scale.Mix adjacent levels; vary their weight and phase.
What to observe: Density moves while the level occupations remain fixed.Displace the ground state and sample nine position times.
What to observe: Measured centroids oscillate; the cloud retains nonzero width.