Fast Fourier Transform
The fast Fourier transform is an algorithm for computing discrete Fourier transforms efficiently. In numerical quantum mechanics, FFTs are used to move between position and momentum grids, compute spectral derivatives, apply kinetic-energy phases, analyze wave packets, and implement split-operator time evolution.
The FFT is not a new Fourier convention. It is a fast way to compute a finite transform. The physics still depends on the chosen grid, normalization, sign convention, and mapping between array indices and physical momenta.
Discrete Fourier Transform
Section titled “Discrete Fourier Transform”For complex samples , one common computational convention is
with inverse
Many libraries use this convention or a close variant. Some put the factor on the forward transform, and some use a unitary factor in both directions. Always check the convention before interpreting amplitudes physically.
The continuous position-momentum convention used elsewhere is reviewed in Fourier Transform Conventions.
Quantum Fourier Transform applies a unitary discrete transform to amplitudes of a quantum register; unlike this classical FFT, it does not accept and return an explicitly readable array of all coefficients. The shared matrix does not make the two input-output contracts interchangeable.
Why the FFT Is Fast
Section titled “Why the FFT Is Fast”A direct discrete Fourier transform computes output numbers, each as a sum over inputs, so it costs order operations.
The FFT exploits the periodic structure of the roots of unity. For many values of , especially powers of two or products of small primes, the transform can be decomposed into smaller transforms. This reduces the cost to order
That difference is decisive for wave packets, spectral methods, and multidimensional grids. The FFT is why Fourier-grid methods can apply kinetic energy in momentum space without forming a dense derivative matrix.
Position Grid and Momentum Grid
Section titled “Position Grid and Momentum Grid”Take a periodic interval of length with
Do not include both endpoints and as distinct grid points. A periodic grid identifies them.
The corresponding wave numbers are spaced by
For the DFT ordering above, the physical wave number associated with index is commonly read as
The Nyquist mode for even needs convention care. Many libraries store it as a single real-frequency boundary mode for real-input transforms. For complex quantum wavefunctions, keep the full complex convention explicit.
Momentum values are
This is the finite periodic-box version of the position-momentum Fourier relation.
Physical Normalization
Section titled “Physical Normalization”Suppose and the continuum state is normalized by
The grid norm is
If the periodic basis functions are , then the Fourier-series coefficient is approximated by
With the computational DFT, this is a scaled version of . The scale matters: raw FFT output is not automatically a normalized momentum-space wavefunction.
Discrete Parseval consistency should give
If this check fails, the likely causes are a missing factor of , a misplaced factor of , or a sign convention mismatch.
Spectral Differentiation
Section titled “Spectral Differentiation”On a periodic grid, differentiation is simple in Fourier space. If
then
and
Thus the kinetic-energy operator for a free particle is diagonal in the Fourier grid:
This is the computational version of the momentum-space simplification described in Momentum Representation and Spectral Methods.
Split-Operator Connection
Section titled “Split-Operator Connection”For a Hamiltonian
the potential is diagonal in position space and the kinetic energy is diagonal in momentum space. A standard second-order split step is
Here denotes the discrete Fourier transform with the chosen normalization. The two FFTs move the state to momentum space and back.
This formula is powerful because it avoids forming dense matrices. Its accuracy still depends on time-step size, operator noncommutativity, grid resolution, and boundary periodicity. The time-step issues are introduced in Time-Stepping Methods.
Periodicity and Wraparound
Section titled “Periodicity and Wraparound”The DFT represents periodic data. A wave packet leaving the right edge of the interval reappears at the left edge unless the physical model, boundary treatment, or domain size prevents it.
This wraparound is not a small numerical detail. It is the boundary condition of the Fourier grid. For free-particle wave packets, choose a domain large enough that the packet does not hit the boundary during the simulated time, or use a method designed for open boundaries.
Endpoint mismatch also matters. If a nonperiodic function is placed on a Fourier grid, the periodic extension has a jump or kink. Fourier coefficients then decay slowly, spectral derivatives become contaminated, and Gibbs oscillations may appear.
Aliasing
Section titled “Aliasing”Products in position space become convolutions in Fourier space. Multiplying can create modes beyond the represented cutoff. Those modes can fold back into the resolved band as aliasing.
Aliasing is especially visible in nonlinear equations, but it also appears in linear quantum mechanics when the potential is rough or under-resolved. Diagnostics include increasing , smoothing only with physical justification, comparing with finite differences, and monitoring high-frequency Fourier coefficients.
Practical Checklist
Section titled “Practical Checklist”Before trusting an FFT-based quantum calculation, record:
- the physical interval length and grid spacing ;
- whether endpoints are repeated;
- the DFT sign and normalization convention;
- the ordering of positive, negative, and Nyquist modes;
- the mapping ;
- the discrete norm check used in position and momentum space;
- whether the wavefunction remains negligible near periodic boundaries;
- the treatment of aliasing and high-frequency modes;
- the time-step and split-operator error checks.
These details determine the physical meaning of the array.
Common Mistakes
Section titled “Common Mistakes”- Treating raw FFT output as a continuum momentum wavefunction without scaling.
- Repeating both endpoints on a periodic grid.
- Forgetting that FFT frequencies wrap from positive to negative values.
- Mixing library DFT signs with the physics Fourier convention.
- Ignoring the Nyquist mode for even .
- Applying Fourier differentiation to a nonperiodic function without checking endpoint mismatch.
- Letting a wave packet wrap around the periodic box and interpreting it as physical recurrence.
- Assuming split-operator error is only a Fourier-grid issue rather than also a time-step issue.
- Confusing wave number with physical momentum .
Cross-Links
Section titled “Cross-Links”- Fourier Transform Conventions
- Fourier Series
- Fourier Transform
- Inverse Fourier Transform
- Momentum Representation
- Plancherel and Parseval Theorems
- Discretization
- Spectral Methods
- Time-Stepping Methods
- Matrix Exponentials Numerically
- Finite Difference Methods
- Free-Particle Propagator Notebook
References
Section titled “References”- J. W. Cooley and J. W. Tukey, “An algorithm for the machine calculation of complex Fourier series”, Mathematics of Computation 19, 297-301, 1965.
- M. Frigo and S. G. Johnson, “The design and implementation of FFTW3”, Proceedings of the IEEE 93, 216-231, 2005.
- L. N. Trefethen, Spectral Methods in MATLAB, SIAM, 2000.
- J. P. Boyd, Chebyshev and Fourier Spectral Methods, 2nd ed., Dover, 2001.
- J. M. Thijssen, Computational Physics, 2nd ed., Cambridge University Press, 2007.
- D. J. Tannor, Introduction to Quantum Mechanics: A Time-Dependent Perspective, University Science Books, 2007.
Exercises
Section titled “Exercises”- For a periodic interval of length with grid points, derive the wave-number spacing .
Solution
Periodic modes satisfy
Thus , so for integer . Adjacent allowed wave numbers differ by
- Explain why the endpoint should not be stored as an additional point on a periodic FFT grid.
Solution
On a periodic interval, and represent the same physical point. Storing both duplicates one point, breaks the uniform -point periodic sampling assumed by the DFT, and changes the implied spacing and normalization.
- A computational DFT uses no normalization on the forward transform and on the inverse. Why must a physical Fourier coefficient include factors involving or ?
Solution
The continuum coefficient is an integral against a normalized basis function. A grid approximation to the integral contains a quadrature factor , and the periodic basis contributes . The raw DFT sum is only the unweighted finite sum, so it must be scaled before it has the physical units and normalization of a Fourier coefficient.
- Why is the kinetic-energy step diagonal in the Fourier representation for a free particle?
Solution
Fourier modes satisfy
Since the free-particle kinetic energy is , each Fourier mode is multiplied by
Therefore the kinetic operator is diagonal in the Fourier basis.