Magnus Expansion Numerics
Magnus integrators approximate the time-ordered propagator by the exponential of a matrix built from Hamiltonians and their commutators. For Hermitian Hamiltonians, the truncated exponent remains anti-Hermitian, so its exact exponential is unitary. This structural property coexists with time-discretization error and with whatever error is introduced when applying the exponential.
Helpful background. Matrix exponentials supplies exponential evaluation; the time-evolution operator explains time ordering.
Commutators encode the order of the drive
Section titled “Commutators encode the order of the drive”Write , with . On one interval, write and expand
If Hamiltonians commute at all pairs of times, all commutator terms vanish and the ordinary exponential of the integral is exact. Otherwise accounts for the noncommuting order of the drive.
Commutators of anti-Hermitian matrices are anti-Hermitian. Hence truncating the Magnus series preserves that algebraic structure. A common sufficient convergence condition for finite matrices is on the interval; it is not necessary and does not by itself set an accuracy tolerance. Long evolution is handled through short steps, not by assuming one truncated exponent works globally.
Practical second- and fourth-order steps
Section titled “Practical second- and fourth-order steps”The exponential midpoint rule uses
For sufficiently smooth , it has local error and global order two. To obtain order four, evaluate at two Gauss nodes,
and use
The sign follows the evolution convention and the chronological ordering of the nodes. Reversing a commutator without reversing its coefficient changes the method. Apply with a controlled dense or Krylov exponential action.
Explicit commutators can destroy sparsity. Their action can sometimes be evaluated as without forming a matrix, although this increases each action’s cost. Commutator-free exponential compositions are another option; their coefficients and order conditions should come from a verified scheme.
A linear-generator sign check
Section titled “A linear-generator sign check”On , let . Then
so
The two-node formula reproduces both terms because . This symbolic check catches a frequent sign error before any large propagation. The midpoint exponential includes exactly for this example but omits the leading ordering correction.
A constant Hamiltonian gives , so the formula reduces to the exact constant-generator exponential. This tests the limiting case but does not measure fourth-order convergence.
Refinement and nonsmooth controls
Section titled “Refinement and nonsmooth controls”For a smooth noncommuting drive, compare final states at and verify the expected factor of about in differences for the fourth-order method. Keep exponential-action error below this scale. Check observables and phase-sensitive distances as well as unitarity.
Split integration at pulse jumps or derivative discontinuities. High-order quadrature across an unresolved discontinuity loses its smooth-problem order. A narrow pulse can require small steps even when its integrated area is moderate. If the Hamiltonian depends on the evolving state, a linear Magnus step with frozen state dependence needs an additional nonlinear treatment.
Exercises
Section titled “Exercises”If for a fixed matrix , what error remains after all commutator terms vanish?
Solution
The exact exponent is . A numerical method can still approximate that scalar integral inaccurately, and the exponential action can have its own error. Commutativity removes time-ordering error, not quadrature or matrix-function error.
References
Section titled “References”- Blanes, S., F. Casas, J. A. Oteo, and J. Ros, “The Magnus expansion and some of its applications,” Physics Reports 470, 151–238 (2009), doi:10.1016/j.physrep.2008.11.001 — convergence, quadrature formulas, and numerical integrators.
- Saad, Y., “Analysis of some Krylov subspace approximations to the matrix exponential operator,” SIAM Journal on Numerical Analysis 29, 209–228 (1992), doi:10.1137/0729014 — controlled exponential actions.