B10 · Lesson 13 · Wave packet lab
Spreading, oscillating and tunneling packets, computed with the FFT and the split-step method
Lessons 8 to 12 solved for stationary states and plane waves. Real electrons arrive as packets, localized in space, with a spread of momenta, and moving. A computer can follow a packet directly: in momentum space a free particle's evolution is just a phase factor, and the split-step Fourier method alternates between position space, where the potential acts, and momentum space, where the kinetic energy acts, using the FFT. In this lab you'll write that solver and use it to watch a packet spread, oscillate in a well and split at a barrier, checking each against the formulas you already know. Units are those where ħ = m = 1.
- A free Gaussian packet's width against time, in units with ħ = m = 1.
- A narrow packet spreads quickly; a wide one barely changes. The readout gives the time for the width to double, .
- Your FFT propagator in step 2 must reproduce this curve exactly, since free evolution in momentum space is exact.
Predict
A packet aims at a barrier whose plane-wave transmission at the packet's central energy is exactly 50%. What fraction of the packet gets through?
Close to 50%, but not exactly. A packet is a superposition of plane waves with a spread of momenta, and each component tunnels with its own probability; the packet's transmission is their weighted average. Because transmission bends with energy, the average differs from the value at the center unless the packet is very wide.
Name it
Free evolution in momentum space
Transform ψ(x) with the FFT to get its momentum amplitudes; each one evolves by (in units ħ = m = 1); transform back. This is exact for a free particle, at any time, with no time steps at all.
The split-step method
With a potential V(x), the time-step operator is approximated by
applying the potential's half-steps in position space and the kinetic step in momentum space. Each factor is a pure phase, so the method conserves probability exactly, and its error per step goes as .
What to check
- A free packet's width follows and its center moves at .
- A coherent state in a harmonic well (ω = 1) swings to the opposite side in half a period, π, keeping its shape.
- A packet hitting a barrier splits; the transmitted probability is the plane-wave transmission averaged over the packet's momentum distribution, .
Probability current
(with ħ = m = 1) is the flow of probability; for a plane wave it's , the density times the velocity.
Worked example
A packet with = 2 and = 1 moves freely. Where is it, and how wide, at t = 10?
Show the solution
- Position. Its center has moved .
- Width.
- Compare with the simulation. The FFT propagator gives 3.2016, matching to every digit shown, because the evolution in momentum space is exact.
- What it means. The width grew by 60% in the time the packet moved five widths: a packet of electrons in a device spreads noticeably over the distances it travels.
Answer its center has moved 10 from where it started, and the packet is 3.20 wide.
Worked example
A coherent state () starts at x = 5 in a harmonic well with ω = 1. Where is it after t = π?
Show the solution
- Half a period. With ω = 1, t = π is half a period, so it's at x = −5, the mirror point, with the same shape.
- Compare with the simulation. The split-step solver with Δt = 0.01 puts the center at −4.99999 and keeps the total probability at 1 to thirteen digits.
- Why the method is used. That it conserves probability exactly, whatever the step, is why it's the standard tool for laser pulses in fibers and wave packets in semiconductor structures.
Answer at x = −5, the mirror point, with the same shape.
Worked example
A packet with = 15 and = 1.2 (energy 0.72) meets a barrier of height 1 and width 1. How much gets through?
Show the solution
- Plane-wave transmission. At the central energy it's 0.545.
- Average over the packet. Averaged over the packet's momentum spread it's 0.545 too, since the spread is small:
- The simulation. A split-step simulation on a grid of spacing 0.0977, though, finds 0.500.
- The culprit is the grid. 11 grid points fall inside the barrier, so the simulated barrier is effectively 1.074 wide, and the averaged transmission for that width is 0.503.
- A better-placed grid. On a grid of spacing 0.1 placed so exactly 10 points fall inside, the simulation gives 0.544. Tunneling depends so steeply on width that how a grid samples a sharp barrier is the main source of error.
Answer about 0.545 of the packet gets through; a simulation only finds this when its grid samples the barrier's width correctly.
Check
Step 1. Write gauss(x, s, k0, x0) returning a normalized Gaussian packet on the grid x, and stats(x, psi) returning its width and center from .
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Step 2. Write free(x, psi, t) that evolves a free packet by time t (ħ = m = 1) exactly, using the FFT: multiply each momentum component by , with k from np.fft.fftfreq. gauss and stats are included.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Step 3. Write ssfm(x, psi, V, dt, n) that takes n split-step Fourier steps: half a potential step, a full kinetic step in momentum space, and another half potential step. gauss and stats are included.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Step 4. Write transmitted(s, k0, V0, d) that sends a packet of width s and wavenumber k0 from x = −80 at a barrier of height V0 and width d centered at 0, on the grid for i = 0 to 7999 (so a width-1 barrier covers exactly 10 points), runs the split-step solver (Δt = 0.05) until t = 240/k0, and returns the probability beyond the barrier. Then write average_T(s, k0, V0, d), the plane-wave transmission averaged over the packet's momentum distribution. gauss and ssfm are included.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Step 5. Write current(x, psi) returning the probability current on the grid, computing the derivative with the FFT (multiply by ik).
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
In units where ħ = m = 1, how long does a free packet of initial width 1 take to double in width?
Check
A packet has width 15 (ħ = m = 1). What is its spread in wavenumber?
Explain why
Why does the split-step method conserve probability exactly, no matter how large its time step?
Each step multiplies the wave function by pure phase factors: the potential's half steps by at each point, and the kinetic step by for each momentum component. A phase factor has magnitude 1, so it can't change at any point in position space, and the Fourier transforms between the two spaces preserve the total probability by Parseval's theorem. So the total probability is unchanged by every factor. The step size controls how accurately the method separates the kinetic and potential effects, which affects where the probability goes, but never how much there is.
Practice
Keep practicing
4 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.