Quantum Mechanics Explorer
What does it mean for a particle to be confined, in superposition, or measured?
One particle in a one-dimensional box, put to four tests: its stationary states, a superposition of them evolving in time, its odds of crossing a barrier it classically couldn't, and what repeated measurement of its position actually samples.
Potential and energy levels
Wavefunction ψₙ(x) and probability density |ψₙ(x)|²
- ψₙ(x) — signed amplitude
- |ψₙ(x)|² — probability density, never negative
- Energy Eₙ
- 4.935
- Eₙ / E₁
- 1.00
- Nodes inside (0, L)
- 0
- ∫|ψₙ|² dx (numeric)
- 1.000000
Energy scales as n² — doubling n quadruples Eₙ, visible above as levels spreading apart, not staying evenly spaced. It also scales as 1/L² and 1/m: a wider well or a heavier particle both lower every level, a narrower one raises them. The last readout integrates |ψₙ|² numerically, as a check — it should read 1 to several decimal places for any n and L, since ψₙ is normalized analytically, not approximately.
The model
A particle of mass confined to an infinite square well of width — a box with impenetrable walls at and — has stationary states
each already normalized () and mutually orthogonal. Natural units are used throughout — — so mass, length and energy are dimensionless sliders, not measured quantities; see OpenStax University Physics Volume 3, §7.4, “The Quantum Particle in a Box”, for the same derivation worked from the boundary conditions up.
A. Particle in a Box draws and directly from this, alongside the energy ladder — , so the levels spread apart rather than stay evenly spaced, and , so a wider well or heavier particle lowers every level at once. The panel distinguishes the two curves on purpose: changes sign times inside the well, while — what a measurement actually samples — never goes negative.
B. Superposition & Time Evolution combines a few with independent, renormalized weights into , each term carrying its own energy-dependent phase. A single active term is a bare stationary state, whose density never changes — for any real — which is the precise sense in which it is “stationary”. With two or more terms of different energy the cross terms between them beat at , and the density genuinely redistributes over time, repeating every .
C. Quantum Tunneling replaces the well with a finite rectangular barrier of height and width , and asks for the transmission and reflection probabilities of a particle of energy incident on it — solved exactly from the boundary-matched scattering state, not approximated:
with , , and exactly, by construction. At both expressions above divide by zero while their numerators also vanish; the instrument uses the closed-form limit, , confirmed to match the value either formula approaches as . Above the barrier () the particle is classically free to pass, yet still — part of the wave reflects even there, which a classical particle rolling over a rise never would. and are probabilities; they are not read off the height of the wavefunction plot, which shows an amplitude.
D. Measurement & Probability draws simulated position measurements directly from by rejection sampling — ‘s maximum is exactly 1, so the sampling envelope is exact, not estimated — using a small seeded generator (mulberry32), so the same seed and count reproduce the exact same positions every time. The growing histogram is compared against the theoretical curve it was drawn from. This samples the distribution a measurement is already known to follow; it is not a simulation of a classical particle’s trajectory inside the well, which quantum mechanics does not assign it.
What this does not claim
Every quantity above is dimensionless and relative — nothing here is calibrated to a real material, trap, or laboratory measurement. The barrier in Mode C is an idealized rectangle, not any particular physical junction. “Measurement” in Mode D means sampling the Born-rule distribution; it says nothing about the physical process of measurement itself, a question this instrument does not take a position on.