Matrix Exponentials
For a time-independent finite Hamiltonian, the propagator is . The matrix exponential is defined by a convergent power series, but evaluating that series naively is rarely the most reliable algorithm. The computational choice is also different when only is needed rather than the complete dense matrix.
Helpful background. Matrix diagonalization supplies Hermitian eigensystems; the numerical Schrödinger equation supplies trajectory checks.
Spectral evaluation for Hermitian matrices
Section titled “Spectral evaluation for Hermitian matrices”If with orthonormal , then
For one state, first compute , multiply its components by the phases, and transform back. Once diagonalization is complete, many times or initial vectors can reuse it. Degenerate eigenvectors may rotate, but the propagator remains invariant because equal eigenvalues receive equal phases.
The decomposition costs dense cubic work and quadratic storage. It is valuable as a reference for moderate matrices, but storing explicitly adds no benefit when an action on a few vectors suffices. For a non-Hermitian or highly non-normal generator, an eigenvector decomposition can be ill-conditioned or fail at a defective matrix; use an appropriate general matrix-function method.
Scaling, rational approximation, and actions
Section titled “Scaling, rational approximation, and actions”Scaling and squaring uses
and approximates the small-norm exponential, commonly by a Padé rational function. Linear solves evaluate the rational function; repeated squaring restores the scale. The scaling and approximation degree must balance truncation and roundoff. Large unnecessary scaling can itself worsen accuracy, so use a tested implementation instead of a fixed arbitrary number of squarings.
For large sparse problems, exponential-action algorithms approximate without forming , which is usually dense. Krylov propagation and scaled truncated-Taylor actions are two approaches. A sparse input does not imply a sparse exponential.
For , exact is unitary. Numerical algorithms approximate it to a tolerance; check when the full matrix is available and norm changes for representative vectors otherwise. Neither check alone establishes phase accuracy.
Shifts and a scalar invariance test
Section titled “Shifts and a scalar invariance test”A scalar shift gives
Subtracting a convenient energy center can reduce the spectral scale of the generator. For one isolated state trajectory, this changes only a global phase. Preserve that phase when comparing amplitudes against a reference with a fixed energy origin.
For , , so the power series separates into even and odd terms:
This exact expression checks the full matrix, not merely its norm. Also compare the semigroup identity for a fixed . Floating-point discrepancies should decrease with numerical tolerance until roundoff dominates.
Time dependence and conditioning
Section titled “Time dependence and conditioning”For , exponentiating is generally wrong because Hamiltonians at distinct times need not commute. Products of short-time exponentials approximate time ordering; Magnus methods incorporate commutator corrections systematically.
A long propagation time magnifies an energy error into a phase error: . Therefore highly accurate matrix exponentiation cannot compensate for inaccurate Hamiltonian eigenvalues from a coarse spatial basis. Bound the time horizon for the desired phase accuracy and refine the representation accordingly.
Exercises
Section titled “Exercises”Suppose two implementations use Hamiltonians differing by . Which comparisons should agree, and which need a phase adjustment?
Solution
Probabilities and expectation values of the same operators agree for the same initial state. State vectors and propagator matrices differ by the global phase . Their raw vector or matrix difference is therefore not a valid error measure until the energy-origin phase is accounted for.
References
Section titled “References”- Al-Mohy, A. H., and N. J. Higham, “Computing the action of the matrix exponential, with an application to exponential integrators,” SIAM Journal on Scientific Computing 33, 488–511 (2011), author-hosted record — action algorithms and backward-error control.
- Higham, N. J., Functions of Matrices: Theory and Computation, SIAM, 2008 — scaling and squaring, conditioning, and general matrix functions.