Skip to content
Iris (Jieun) Kim — home

Little Laboratory/ V

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

0L0191.9xE123456

Wavefunction ψₙ(x) and probability density |ψₙ(x)|²

0L1.410−1.41xψₙ, |ψₙ|²
  • ψₙ(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.

One quantum particle, confined to a one-dimensional box — four ways of putting the same model to the test. Natural units throughout (ħ = 1): mass, length and energy are dimensionless sliders here, not measured quantities. Switching modes keeps the well width and mass you have set.

The model

A particle of mass mm confined to an infinite square well of width LL — a box with impenetrable walls at x=0x=0 and x=Lx=L — has stationary states

ψn(x)=2L sin⁡ ⁣(nπxL),En=n2π2ℏ22mL2,n=1,2,3,…\psi_n(x) = \sqrt{\tfrac{2}{L}}\,\sin\!\left(\frac{n\pi x}{L}\right), \qquad E_n = \frac{n^2\pi^2\hbar^2}{2mL^2}, \qquad n = 1, 2, 3, \dots

each already normalized (∫0Lψn2 dx=1\int_0^L \psi_n^2\,dx = 1) and mutually orthogonal. Natural units are used throughout — ℏ=1\hbar = 1 — 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 ψn\psi_n and ∣ψn∣2|\psi_n|^2 directly from this, alongside the energy ladder — En∝n2E_n \propto n^2, so the levels spread apart rather than stay evenly spaced, and En∝1/mL2E_n \propto 1/mL^2, so a wider well or heavier particle lowers every level at once. The panel distinguishes the two curves on purpose: ψn\psi_n changes sign n−1n-1 times inside the well, while ∣ψn∣2|\psi_n|^2 — what a measurement actually samples — never goes negative.

B. Superposition & Time Evolution combines a few ψn\psi_n with independent, renormalized weights cnc_n into Ψ(x,t)=∑ncn ψn(x) e−iEnt\Psi(x,t) = \sum_n c_n\,\psi_n(x)\,e^{-iE_nt}, each term carrying its own energy-dependent phase. A single active term is a bare stationary state, whose density ∣Ψ∣2=ψn(x)2|\Psi|^2 = \psi_n(x)^2 never changes — ∣e−iθ∣=1|e^{-i\theta}| = 1 for any real θ\theta — 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 ∣En−Em∣|E_n - E_m|, and the density genuinely redistributes over time, repeating every 2π/∣En−Em∣2\pi/|E_n-E_m|.

C. Quantum Tunneling replaces the well with a finite rectangular barrier of height V0V_0 and width aa, and asks for the transmission and reflection probabilities of a particle of energy EE incident on it — solved exactly from the boundary-matched scattering state, not approximated:

T=[1+V02sinh⁡2(κa)4E(V0−E)]−1 ⁣ ⁣(E<V0),T=[1+V02sin⁡2(k′a)4E(E−V0)]−1 ⁣ ⁣(E>V0),T = \left[1 + \frac{V_0^2 \sinh^2(\kappa a)}{4E(V_0-E)}\right]^{-1}\!\! (E<V_0), \quad T = \left[1 + \frac{V_0^2 \sin^2(k'a)}{4E(E-V_0)}\right]^{-1}\!\! (E>V_0),

with κ=2m(V0−E)\kappa=\sqrt{2m(V_0-E)}, k′=2m(E−V0)k'=\sqrt{2m(E-V_0)}, and R=1−TR = 1-T exactly, by construction. At E=V0E=V_0 both expressions above divide by zero while their numerators also vanish; the instrument uses the closed-form limit, T=[1+mV0a2/2]−1T = \left[1+mV_0a^2/2\right]^{-1}, confirmed to match the value either formula approaches as E→V0E\to V_0. Above the barrier (E>V0E>V_0) the particle is classically free to pass, yet T<1T<1 still — part of the wave reflects even there, which a classical particle rolling over a rise never would. TT and RR 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 ∣ψn(x)∣2|\psi_n(x)|^2 by rejection sampling — sin⁡2\sin^2‘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.

Connected ideas

See this on the full Investigation Board