|q⟩ Bad Qubits

advanced · Programming · Advanced Hamiltonian Simulation

Higher-Order Product Formulas

The first-order Trotter formula ei(A+B)teiAteiBte^{-i(A+B)t} \approx e^{-iAt}e^{-iBt} is asymmetric, and its error is dominated by a single leftover commutator term at order t2t^2. The symmetric (Strang, or 2nd-order Suzuki) splitting fixes the asymmetry — and cancels that t2t^2 term entirely.

The symmetric splitting

For H=A+BH = A + B the second-order product formula is

S2(t)=eiAt/2  eiBt  eiAt/2.S_2(t) = e^{-iA t/2}\;e^{-iB t}\;e^{-iA t/2}.

Sandwiching the BB-evolution between two half-steps of AA makes the formula time-reversal symmetric: S2(t)=S2(t)1S_2(-t) = S_2(t)^{-1}. That symmetry forces every even power of tt in the error expansion (after the leading 11) to vanish, so the error starts at O(t3)O(t^3) per step instead of O(t2)O(t^2):

eiHtS2(t)=O(t3).\bigl\lVert e^{-iHt} - S_2(t)\bigr\rVert = O(t^3).

Suzuki's recursion to higher order

Suzuki showed how to bootstrap S2S_2 into arbitrarily high even orders. The fourth-order formula is built from five fractional S2S_2 steps,

S4(t)=S2(st)2  S2((14s)t)  S2(st)2,s=1441/3,S_4(t) = S_2(s\,t)^2\;S_2\bigl((1 - 4s)\,t\bigr)\;S_2(s\,t)^2, \qquad s = \frac{1}{4 - 4^{1/3}},

with one step run backwards in time (the middle factor uses a negative coefficient since 14s<01 - 4s < 0). The pattern continues: S2kS_{2k} is assembled recursively from S2k2S_{2k-2}, giving error O(t2k+1)O(t^{2k+1}) per step at the cost of an exponentially growing (in kk) number of exponentials.

Mapping exponentials to rotation gates

On a single qubit, the Pauli exponentials are rotation gates. With the convention RP(θ)=eiθP/2R_P(\theta) = e^{-i\theta P/2} used by this simulator,

eiXϕ=RX(2ϕ),eiZϕ=RZ(2ϕ).e^{-iX\,\phi} = R_X(2\phi), \qquad e^{-iZ\,\phi} = R_Z(2\phi).

Take the toy Hamiltonian H=X+ZH = X + Z (so A=XA = X, B=ZB = Z). The symmetric step S2(t)S_2(t) becomes

S2(t)=eiXt/2eiZteiXt/2=RX(t)  RZ(2t)  RX(t).S_2(t) = e^{-iX t/2}\,e^{-iZ t}\,e^{-iX t/2} = R_X(t)\;R_Z(2t)\;R_X(t).

Each half-step eiXt/2e^{-iX t/2} is RX(t)R_X(t) (because RX(t)=eiXt/2R_X(t) = e^{-iX t/2}), and the full BB-step eiZte^{-iZ t} is RZ(2t)R_Z(2t).

Try it

Build one symmetric 2nd-order Trotter step for H=X+ZH = X + Z at t=0.4t = 0.4. Apply RX(t)R_X(t), then RZ(2t)R_Z(2t), then RX(t)R_X(t) on the single qubit. The grader checks the full unitary, so the angles and the symmetric ordering must be exact.

Run your code to see the quantum state.

Sign in on the full site to ask questions and join the discussion.