Sound Synthesis of a Gaussian Quantum Particle in an Infinite Square Well

Interactive companion to Rodrigo F. Cádiz and Javier Ramos, Computer Music Journal 38(4): 53–67, 2014 · doi:10.1162/COMJ_a_00268

Model parameters ħ = 1

Time N m alpha p0 x0 L
Paste a parameter list in the Max patch format; it sets all seven values and restarts.

Engine

Clock period (ms)metro interval between time steps
Frequency scalefn = n · scale / L (Hz)
Classical drift of x₀x₀ += (p₀/m)Δt each step, as in qmodel.java
qmodel weighting of the A term√(2πα/L²) applies to A only, as compiled
Stereo from |ψ|²pan = probability in the right half of the well
Leveladaptive keeps level steady; fixed keeps the model's own loudness
Output gain

Position space

|ψ(x,t)|²Re ψ(x,t)classical ball

Momentum · oscillator bank

Cn(t) > 0Cn(t) < 0envelope Bnn₀ = p₀L/π

Spectrogram synth

Waveform S(t) Σ Cn(t) sin(ωnt)

The model in eight equations
V(x) = 0 for 0 < x < L, ∞ otherwise(3)
pn = nπ/L,  En = n²π²/(2mL²) = n²E0(5–6)
ψ(x,0) = (α√π)−½ e−(x−x₀)²/2α² eip₀(x−x₀)(11)
A = e−α²(p₀+nπ/L)²/2,  B = e−α²(p₀−nπ/L)²/2(20)
Cn(t) = C[cos(n²E0t − nπx₀/L)A − cos(n²E0t + nπx₀/L)B](22)
Tcl = 2π/|E′(n₀)|,  Trev = 2π/E0(27, 29)
n₀ = p₀L/π(40)
ψ = Σ sin(knx)Cn(t)  ⇔  S(t) = Σ sin(knt)Cn(t)(43)

Each eigenfunction sin(nπx/L) becomes a sinusoidal oscillator of frequency n·f₀, and the spectrum of S(t) at each instant is the momentum distribution of the packet. The engine here is a direct port of qmodel.java from the Max/MSP implementation (gaussian-rev3.maxpat): every clock tick advances t by Δt, recomputes Cn(t) for n = 1…N, and the bank interpolates the amplitudes over the tick, like the list-interpolate → ioscbank~ chain. Partials above Nyquist are muted.

Two switches expose details of the compiled code. Classical drift: qmodel also moves x₀ by (p₀/m)Δt on every step, on top of the phase evolution in Eq. 22; the packet then travels at about twice p₀/m, and the full revival is exact only when 2n₀ is an integer. A-term weighting: in the Java expression the normalization √(2πα)/L multiplies only the A term, so packets with p₀ < 0 are much quieter (this is why Audio Example 5 starts near 70 Hz). Turn both off to hear Eq. 22 as printed.

A quantum particle you can hear

A Gaussian wave packet bounces between the infinite walls of a square well. Its momentum distribution, the coefficients Cn(t) of the eigenstate expansion, drives a bank of harmonic oscillators. Start the audio, then try the paper examples on the right or move the parameters on the left.