Skip to content

Math Needed for Computational QM

This crosswalk is for readers preparing for computational quantum mechanics: Hamiltonian matrix construction, grids, basis truncations, diagonalization, time evolution, wave-packet propagation, scattering numerics, many-body exact diagonalization, open-system solvers, quantum-circuit simulation, benchmark problems, and reproducible notebooks.

The planned Computational QM volume will own reusable algorithms, notebooks, testing policies, and software-facing guidance. Computational Quantum Matter owns material-facing workflow and evidence routing. This page gathers the mathematical tools that determine whether a calculation is meaningful: numerical linear algebra, discretization, ODE and PDE solvers, FFTs, Monte Carlo, stability, convergence, and error estimates.

Start with states and operators as arrays, basis choice, inner products, norms, Hermitian matrices, tensor products, matrix diagonalization, sparse matrices, sparse eigensolvers, discretization, finite differences, spectral methods, numerical quadrature, FFTs, matrix exponentials, ODE solvers, PDE solvers, Monte Carlo, floating-point arithmetic, conditioning and stability, error estimates, convergence tests, and benchmark problems.

The basic computational move is to replace an abstract quantum problem by a controlled finite representation:

Hc=Ec,r=Hc−Ec,∥r∥≪∥H∥ ∥c∥.Hc=Ec, \qquad r=Hc-Ec, \qquad \lVert r\rVert \ll \lVert H\rVert\,\lVert c\rVert.

The residual rr is one of the simplest honesty checks: an eigenvalue printed by software is not yet a validated quantum result.

For dynamics, the corresponding move is to approximate the propagator or its action:

ψ(t+Δt)≈UΔtψ(t),UΔt≈exp⁡(−iHΔtℏ).\psi(t+\Delta t) \approx U_{\Delta t}\psi(t), \qquad U_{\Delta t} \approx \exp\left(-\frac{iH\Delta t}{\hbar}\right).

Different algorithms preserve different structures: norm, phase accuracy, energy conservation, positivity, trace preservation, locality, or symplectic structure. A reliable calculation states which structure matters and how it was checked.

Computational topicMathematical tools
States and operators as arraysfinite-dimensional Hilbert spaces, bases and coordinates, matrices as linear maps, inner products
Basis choice and truncationorthonormal bases, change of basis, direct sums, error estimates
Dense eigenproblemseigenvalues and eigenvectors, Hermitian operators, matrix diagonalization, residual checks
Large sparse Hamiltonianssparse matrices, sparse eigensolvers, conditioning and stability, convergence tests
Grid wavefunctionsdiscretization, finite difference methods, boundary conditions, numerical quadrature
Spectral and pseudospectral methodsspectral methods, Fourier series, Fourier transform, fast Fourier transform
Time evolutionmatrix exponentials, matrix exponentials numerically, time-stepping methods, ODE solvers
Schrödinger PDEspartial differential equations, PDE solvers, finite difference methods, spectral methods
Wave packets and FFT workflowswave packets, momentum representation, FFT, convolution
Variational numericsvariational principle, Rayleigh–Ritz method, trial wavefunctions, basis-set convergence
Scattering numericsboundary conditions, ODE solvers, Phase-Shift Extraction, benchmark problems
Many-body exact diagonalizationMath Needed for Many-Body QM, tensor products, occupation-number basis, sparse eigensolvers
Open-system simulationMath Needed for Open Systems, density operators, matrix exponentials numerically, Monte Carlo basics
Quantum-information simulationMath Needed for Quantum Information, tensor products, Pauli matrices, Bloch sphere geometry
Statistical estimatesMonte Carlo basics, expectation values, variance and covariance, error estimates
Validation and reproducibilityfloating-point arithmetic, conditioning and stability, convergence tests, benchmark problems

For representation and algebra, read Dirac Notation as Linear Algebra, Bases and Coordinates, Matrices as Linear Maps, Inner Products, Norms and Metrics, Hermitian Operators, Unitary Operators, Tensor Products, and Direct Sums.

For numerical linear algebra, read Floating-Point Arithmetic, Conditioning and Stability, Matrix Diagonalization, Sparse Matrices, Sparse Eigensolvers, Matrix Functions and Exponentials, and Matrix Exponentials Numerically.

For grid, basis, and continuum calculations, read Discretization, Boundary Conditions, Finite Difference Methods, Spectral Methods, Numerical Quadrature, ODE Solvers, PDE Solvers, Fast Fourier Transform, and Fourier Transform Conventions.

For uncertainty and reproducibility, read Error Estimates, Convergence Tests, Benchmark Problems, Monte Carlo Basics, Expectation Values, and Variance and Covariance.

For a Monte Carlo estimate, the statistical object is usually a sample mean such as

fˉN=1N∑j=1Nf(Xj),SE⁡(fˉN)≈Var⁡(f)Neff.\bar f_N = \frac{1}{N}\sum_{j=1}^N f(X_j), \qquad \operatorname{SE}(\bar f_N) \approx \sqrt{\frac{\operatorname{Var}(f)}{N_{\mathrm{eff}}}}.

The effective sample size NeffN_{\mathrm{eff}} may be much smaller than NN when samples are correlated. A computational result should not hide that distinction.

When the computational volume is added, these planned pages should use this crosswalk as their prerequisite map:

Computational Many-Body QM is the current physics-facing chapter entry. Its Computational Many-Body Overview uses the tools below to choose among finite-vector, stochastic, compressed-state, and dynamical representations without duplicating their numerical derivations.

Planned pageCurrent prerequisite homes
foundations/states-operators-arraysbases, matrices as linear maps, inner products, norms
foundations/basis-choice-representationorthonormal bases, change of basis, direct sums, truncation error
foundations/dense-vs-sparsematrix diagonalization, sparse matrices, conditioning
foundations/convergence-studiesconvergence tests, error estimates, benchmark problems
single-particle/finite-difference-schrodinger-equationdiscretization, finite differences, boundary conditions, PDE solvers
single-particle/benchmark-particle-in-boxbenchmark problems, finite differences, quadrature, exact solutions
single-particle/benchmark-harmonic-oscillatorharmonic oscillator, spectral methods, basis truncation
time-dynamics/matrix-exponentialsmatrix functions, matrix exponentials numerically, unitarity checks
time-dynamics/split-operator-methodFFTs, Fourier conventions, operator splitting, error estimates
spectral-variational/matrix-diagonalizationHermitian eigenproblems, residuals, degeneracies
spectral-variational/sparse-eigensolverssparse matrices, Krylov methods, residual diagnostics
scattering-continuum/phase-shift-extractionODE solvers, boundary conditions, scattering conventions
many-body-exact/exact-diagonalizationtensor products, occupation bases, sparse matrices, symmetry sectors
open-systems-control/lindblad-master-equation-solversdensity operators, matrix exponentials, ODE solvers, trace checks
quantum-matter-computation/chern-number-computationBerry connection, Chern numbers, convergence tests
reproducibility-benchmarks-data/benchmark-problem-designbenchmark problems, error estimates, metadata, validation
  • Reporting an eigenvalue without a residual, convergence check, or benchmark comparison.
  • Normalizing grid wavefunctions without quadrature weights.
  • Confusing basis truncation error with solver tolerance.
  • Using a time-stepper that is stable but not appropriate for the conserved quantity being studied.
  • Treating a finite box as the continuum without checking box-size dependence.
  • Forgetting tensor-product ordering or fermionic sign conventions in many-body code.
  • Reporting Monte Carlo error bars without checking autocorrelation and systematic error.
  • Comparing results that use different units, Fourier conventions, boundary conditions, or basis orderings.
  • Mistaking a package default for a physical convention.
  • L. N. Trefethen and D. Bau III, Numerical Linear Algebra, SIAM, 1997.
  • Y. Saad, Numerical Methods for Large Eigenvalue Problems, 2nd ed., SIAM, 2011.
  • R. J. LeVeque, Finite Difference Methods for Ordinary and Partial Differential Equations, SIAM, 2007.
  • J. M. Thijssen, Computational Physics, 2nd ed., Cambridge University Press, 2007.
  • M. E. J. Newman and G. T. Barkema, Monte Carlo Methods in Statistical Physics, Oxford University Press, 1999.
  • H. Fehske, R. Schneider, and A. Weisse, eds., Computational Many-Particle Physics, Springer, 2008.
  1. A sparse eigensolver returns an approximate eigenpair (E,c)(E,c). What simple residual should you compute first?
Solution

Compute

r=Hc−Ec.r=Hc-Ec.

Then compare ∥r∥\lVert r\rVert to a relevant scale such as ∥H∥∥c∥\lVert H\rVert\lVert c\rVert or to the spectral gap when resolving nearly degenerate states. A small change in the printed eigenvalue alone is not enough.

  1. Why does a grid representation of ψ(x)\psi(x) require quadrature weights in normalization?
Solution

The continuum norm is an integral:

∫∣ψ(x)∣2 dx.\int \lvert\psi(x)\rvert^2\,dx.

A grid approximation replaces this by a weighted sum. On a uniform grid the weight is usually Δx\Delta x; on nonuniform grids or quadrature rules the weights vary. Normalizing only the array entries can give the wrong continuum norm.

  1. Name three independent checks for a time-evolution simulation.
Solution

Possible checks include norm conservation for closed unitary evolution, energy conservation for a time-independent Hamiltonian when the method should preserve it approximately, convergence under time-step refinement, comparison to an exactly solvable benchmark, agreement between two independent methods, and absence of boundary reflections in a finite computational box.