Interactive lab › The price of exp(−iHt)
Interactive lab · 37/101 · Algorithms · Hamiltonian dynamics
The price of exp(−iHt)
Simulating quantum dynamics on a quantum computer means building exp(−iHt) from rotations exp(−iθP) about single Pauli strings. Product formulas apply every term of H in a fixed order, many times; higher orders cancel more of the error per step but cost more per step. qDRIFT instead draws terms at random in proportion to their strength, and its cost depends on the total strength λ, not on the number of terms. Pick a Heisenberg chain, an Ising chain or a molecule-like Hamiltonian with many small terms, and compare the bills.
What you are seeing
- The main plot is infidelity against the number of rotations, both on log scales. Product formulas fall as straight lines whose slope doubles with the order; qDRIFT falls as 1/N.
- The circles mark where each method meets your target ε; the readouts give the cost. The fourth order is best only when ε is small; at modest accuracy its five-fold cost per step does not pay.
- Switch to the molecule-like Hamiltonian: many terms, most of them small. Trotter must apply every one of them each step; qDRIFT spends its rotations where the weight is.
- “Cost to reach ε” extrapolates with the known scalings: t^{1+1/p} for order p, t² for qDRIFT. Long simulations favour high orders.
The numbers in the model
| Hamiltonian | H = Σ_j h_j P_j, λ = Σ|h_j| |
|---|---|
| Product formulas | 1st, 2nd (Strang), 4th (Suzuki, s = 1/(4 − 4^{1/3})) |
| qDRIFT | term j with probability |h_j|/λ, angle λt/N; average of 6 sequences |
| Error measure | 1 − |⟨ψ_exact|ψ⟩|² |
| Size | up to 6 qubits, exact reference from diagonalisation |
Go further
- Glossary: Trotterisation
- Glossary: product formula
- Lab: the same formulas on neutral-atom hardware
- Lab: Hamiltonian engineering