In a quantum box the wave packet does not spread forever: because energies go as n squared, the packet spreads, forms mirror copies and then comes back exactly as it started.
The curve is the probability density of finding the particle at each position in a box of width 1. Start with a bump moving right (dashed = the starting shape). It spreads out, bounces off the walls, and at half the revival time reappears as a mirror image of the start (left-right flipped). At the full revival time it is the same as the start (overlap = 1). Use the buttons to jump to those special times.
Eigenstates: phi_n(x) = sqrt(2/L) sin(n pi x / L), energies E_n = n^2 pi^2 hbar^2 / (2 m L^2). A packet is psi(x,t) = sum c_n phi_n(x) e^(-i E_n t / hbar). Because E_n is proportional to n^2, all phases line up again after T_rev = 4 m L^2 / (pi hbar) (units here: hbar = m = L = 1, so T_rev = 4/pi = 1.273). At T_rev/2 the packet is the mirror image of the start (x to L-x).
Simplifications: 1D, infinite walls, 120 modes, no decoherence or measurement. Real systems are never perfectly isolated, so true revivals fade; this is the ideal case.