|q⟩ Bad Qubits

advanced · Programming · Advanced Hamiltonian Simulation

Beyond Trotter

The task of Hamiltonian simulation is to implement the time-evolution operator U(t)=eiHtU(t) = e^{-iHt} for a given Hamiltonian HH as a sequence of quantum gates, up to a chosen accuracy ε\varepsilon. Lloyd's 1996 result showed this is efficient for local Hamiltonians, and the workhorse of that argument is the Trotter–Suzuki product formula: split H=jHjH = \sum_j H_j into easy-to-exponentiate pieces and approximate

eiHt(jeiHjt/r)r.e^{-iHt} \approx \left(\prod_j e^{-iH_j t/r}\right)^{r}.

This module assumes you already know the first-order Trotter step. Here we map out the landscape of methods that improve on it, before working through the most practical ones in code.

Why look beyond first-order Trotter?

A single first-order Trotter step over the whole time tt incurs an error set by the non-commutativity of the pieces,

eiHtjeiHjt=O ⁣(t2j<k[Hj,Hk]).\Bigl\lVert e^{-iHt} - \prod_j e^{-iH_j t}\Bigr\rVert = O\!\left(t^2 \sum_{j<k} \lVert [H_j, H_k] \rVert\right).

Splitting the evolution into rr steps of length t/rt/r each shrinks the per-step error quadratically, so the total error scales as O(t2/r)O(t^2/r). To reach accuracy ε\varepsilon you need r=O(t2/ε)r = O(t^2/\varepsilon) steps. That linear-in-1/ε1/\varepsilon cost is the weak point: high-accuracy simulations become expensive fast.

The methods beyond first-order Trotter attack this from two directions:

The roadmap of this module

| Method | Core idea | Error dependence | | --- | --- | --- | | First-order Trotter | jeiHjt/r\prod_j e^{-iH_j t/r} | O(1/ε)O(1/\varepsilon) steps | | Higher-order Suzuki | recursively cancel error terms | O((1/ε)1/2k)O((1/\varepsilon)^{1/2k}) steps | | LCU | implement αU\sum_\ell \alpha_\ell U_\ell via an ancilla | O(log(1/ε))O(\log(1/\varepsilon)) | | Qubitization | walk operator with eigenphases ±arccos(E/α)\pm\arccos(E/\alpha) | O(t+log(1/ε))O(t + \log(1/\varepsilon)) | | QSP | polynomial transform of eigenvalues | O(t+log(1/ε))O(t + \log(1/\varepsilon)) |

What "cost" means

Two resources dominate:

  1. Gate count / circuit depth — how long the circuit is. This sets the runtime and, on noisy hardware, the accumulated error.
  2. Ancilla qubits — extra workspace. Product formulas use none; LCU and qubitization use a "select/prepare" ancilla register of size O(logL)O(\log L) for an LL-term Hamiltonian.

A recurring theme is that you trade ancillas and structural complexity for a far better dependence on accuracy. Knowing where each method sits on that trade-off curve is the practical payoff of this module.

Looking ahead

The next lessons make these ideas concrete on the simulator: you will build a symmetric (2nd-order) Trotter step, measure its error scaling, simulate a Heisenberg spin chain, extract dynamical observables, and handle a time-dependent Hamiltonian. The LCU, qubitization, and QSP lessons stay at the conceptual level — their full circuits need block-encodings beyond a single state-vector exercise — but you will understand exactly what they buy you and why.

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