Skip to content

Magnus Expansion

The Magnus expansion rewrites time-dependent evolution as a single exponential whose exponent is built from integrals and nested commutators of the Hamiltonian. It is a systematic way to replace time-ordered evolution by an effective generator while preserving unitarity order by order.

For a time-dependent Hamiltonian, the exact evolution operator is

U(t,t0)=Texp⁡[−iℏ∫t0tH(t′) dt′].U(t,t_0) = \mathcal T \exp \left[ - \frac{i}{\hbar} \int_{t_0}^{t}H(t')\,dt' \right].

The Magnus expansion writes the same operator as

U(t,t0)=eΩ(t,t0).U(t,t_0)=e^{\Omega(t,t_0)}.

The exponent Ω\Omega is not usually just the integral of H(t)H(t). Noncommutativity at different times produces commutator corrections.

It is useful to write the evolution equation as

dUdt=A(t)U(t),A(t)=−iℏH(t).\frac{dU}{dt}=A(t)U(t), \qquad A(t)=-\frac{i}{\hbar}H(t).

Then the Magnus series is

Ω(t,t0)=Ω1+Ω2+Ω3+⋯ .\Omega(t,t_0) = \Omega_1+\Omega_2+\Omega_3+\cdots.

The first term is

Ω1=∫t0tdt1 A(t1).\Omega_1 = \int_{t_0}^{t}dt_1\,A(t_1).

The second term is

Ω2=12∫t0tdt1∫t0t1dt2 [A(t1),A(t2)].\Omega_2 = \frac12 \int_{t_0}^{t}dt_1 \int_{t_0}^{t_1}dt_2\, [A(t_1),A(t_2)].

In Hamiltonian language,

Ω1=−iℏ∫t0tdt1 H(t1),\Omega_1 = - \frac{i}{\hbar} \int_{t_0}^{t}dt_1\,H(t_1),

and

Ω2=−12ℏ2∫t0tdt1∫t0t1dt2 [H(t1),H(t2)].\Omega_2 = - \frac{1}{2\hbar^2} \int_{t_0}^{t}dt_1 \int_{t_0}^{t_1}dt_2\, [H(t_1),H(t_2)].

The second term vanishes if the Hamiltonian commutes with itself at all pairs of times.

Over a finite interval of length

T=t−t0,T=t-t_0,

define an effective Hamiltonian by

U(t0+T,t0)=exp⁡[−iℏHeffT].U(t_0+T,t_0) = \exp \left[ - \frac{i}{\hbar} H_{\mathrm{eff}}T \right].

Then

Heff=iℏTΩ(t0+T,t0).H_{\mathrm{eff}} = \frac{i\hbar}{T} \Omega(t_0+T,t_0).

Keeping only Ω1\Omega_1 gives the average Hamiltonian

Heff(1)=1T∫t0t0+Tdt H(t).H_{\mathrm{eff}}^{(1)} = \frac1T \int_{t_0}^{t_0+T}dt\,H(t).

Keeping Ω2\Omega_2 adds the leading commutator correction:

Heff(2)=−i2ℏT∫t0t0+Tdt1∫t0t1dt2 [H(t1),H(t2)].H_{\mathrm{eff}}^{(2)} = - \frac{i}{2\hbar T} \int_{t_0}^{t_0+T}dt_1 \int_{t_0}^{t_1}dt_2\, [H(t_1),H(t_2)].

Because [H(t1),H(t2)][H(t_1),H(t_2)] is anti-Hermitian for Hermitian Hamiltonians, the factor −i-i makes this correction Hermitian.

The Dyson series expands the time-ordered exponential directly:

U=I+U1+U2+⋯ .U=I+U_1+U_2+\cdots.

The Magnus expansion instead expands the logarithm of the same evolution:

U=eΩ1+Ω2+⋯.U=e^{\Omega_1+\Omega_2+\cdots}.

Both contain the same physics when summed exactly. Their truncations behave differently. A finite Dyson truncation is not exactly unitary. A finite Magnus truncation is unitary when the retained Ω\Omega is anti-Hermitian and exponentiated exactly.

This makes Magnus methods attractive in control, numerical time propagation, periodically driven systems, and semiclassical approximations where preserving unitarity is structurally important.

For the complementary use of a finite Dyson truncation to organize transition paths, intermediate states, and probability bookkeeping, see Dyson Expansion for Transition Amplitudes.

If

[H(t1),H(t2)]=0[H(t_1),H(t_2)]=0

for all times, every commutator correction vanishes. The exact result reduces to the ordinary exponential

U(t,t0)=exp⁡[−iℏ∫t0tH(t′) dt′].U(t,t_0) = \exp \left[ - \frac{i}{\hbar} \int_{t_0}^{t}H(t')\,dt' \right].

This is the special case in which time ordering is unnecessary.

For a periodic Hamiltonian

H(t+T)=H(t),H(t+T)=H(t),

the one-period evolution operator is

U(T,0)=exp⁡[−iℏHFT],U(T,0) = \exp \left[ - \frac{i}{\hbar} H_FT \right],

where HFH_F is a Floquet effective Hamiltonian, up to branch choices in the logarithm. The Magnus expansion gives one systematic route to approximating HFH_F in high-frequency or weak-driving regimes.

At leading order, HFH_F is the time average of H(t)H(t). Higher orders encode the noncommutativity of different parts of the drive cycle. This is why pulse order matters even when the time-averaged Hamiltonian is the same.

The Magnus expansion is not guaranteed to converge for arbitrary time intervals and Hamiltonians. A common sufficient condition is that the integrated operator norm of A(t)A(t) be smaller than a number of order π\pi:

∫t0tdt′ ∥A(t′)∥<π.\int_{t_0}^{t} dt'\,\|A(t')\| < \pi.

In Hamiltonian units this is roughly

1ℏ∫t0tdt′ ∥H(t′)∥<π.\frac1\hbar \int_{t_0}^{t} dt'\,\|H(t')\| < \pi.

This condition is sufficient, not necessary. In applications, one often combines it with physical checks: high drive frequency, small commutator corrections, comparison with exact numerics for small systems, or stability under adding the next term.

The first Magnus term is what one would write if all Hamiltonians at different times commuted. The second term measures the leading failure of that simplification. It is sensitive not just to how much Hamiltonian was applied, but to the order in which noncommuting pieces were applied.

For two short pulses generated by HAH_A and HBH_B, reversing the order changes the sign of the leading commutator contribution. Average Hamiltonian Theory applies this algebra to toggling-frame control cycles, NMR selective averaging, sequence symmetry, and dynamical-decoupling corrections.

Magnus Expansion Error tests this two-pulse algebra against an exact propagator, measures the first four truncation orders, and shows separately how unitarity, convergence bounds, long-time accuracy, and logarithm branches can fail to answer the same question.

  • Replacing the time-ordered exponential by an ordinary exponential when Hamiltonians at different times do not commute.
  • Forgetting that the Magnus expansion is an expansion for the logarithm of UU, not for UU itself.
  • Assuming convergence without checking the time interval or scale of the Hamiltonian.
  • Ignoring branch choices when defining an effective Hamiltonian from a logarithm over a period.
  • Dropping commutator terms in a pulse sequence where pulse order is physically important.
  • W. Magnus, “On the exponential solution of differential equations for a linear operator,” Communications on Pure and Applied Mathematics 7, 649-673, 1954.
  • S. Blanes, F. Casas, J. A. Oteo, and J. Ros, “The Magnus expansion and some of its applications,” Physics Reports 470, 151-238, 2009.
  • U. Haeberlen, High Resolution NMR in Solids: Selective Averaging, Academic Press, 1976.
  • C. Cohen-Tannoudji, J. Dupont-Roc, and G. Grynberg, Atom-Photon Interactions, Wiley, 1992.
  • J. J. Sakurai and J. Napolitano, Modern Quantum Mechanics, 3rd ed., Cambridge University Press, 2020.
  1. Show that the second Magnus term vanishes when H(t)=f(t)H0H(t)=f(t)H_0 for a fixed Hamiltonian H0H_0.
Solution

For H(t)=f(t)H0H(t)=f(t)H_0,

[H(t1),H(t2)]=f(t1)f(t2)[H0,H0]=0.[H(t_1),H(t_2)] = f(t_1)f(t_2)[H_0,H_0] =0.

Therefore Ω2=0\Omega_2=0. All higher nested commutators also vanish, so the exact evolution is the ordinary exponential of the time integral of H(t)H(t).

  1. Consider two constant Hamiltonians applied in sequence: HAH_A for time τ\tau and then HBH_B for time τ\tau. Use the second Magnus term to identify the leading commutator correction to the effective Hamiltonian over the full time 2τ2\tau.
Solution

The first term gives

Heff(1)=HA+HB2.H_{\mathrm{eff}}^{(1)} = \frac{H_A+H_B}{2}.

The commutator contributes only when t1t_1 lies in the HBH_B interval and t2t_2 lies in the earlier HAH_A interval. Thus

∫02τdt1∫0t1dt2 [H(t1),H(t2)]=τ2[HB,HA].\int_0^{2\tau}dt_1 \int_0^{t_1}dt_2\, [H(t_1),H(t_2)] = \tau^2[H_B,H_A].

Using T=2τT=2\tau,

Heff(2)=−iτ4ℏ[HB,HA].H_{\mathrm{eff}}^{(2)} = - \frac{i\tau}{4\hbar} [H_B,H_A].

Reversing the pulse order changes the sign of this correction.