Project: Hamiltonian Simulation Study
Simulating quantum dynamics — evolving a state under — was the original motivation for quantum computers. There is no single best method: product formulas (Trotter), linear combination of unitaries, qubitization, and classical tensor networks each win in different regimes. This capstone implements the workhorse Trotter step on a concrete model so you can study the accuracy–cost trade-off that distinguishes the methods.
The model
We simulate the two-site transverse-field Ising model
The two pieces and do not commute, so in general — which is exactly why a method is needed.
First-order Trotter
The Lie–Trotter formula splits the evolution into a product of the individually-easy exponentials:
Each step of size is a short circuit. The factor compiles to and the field factor to two rotations, using (hence the factor of ).
Comparing methods
The first-order error per step scales as , so total error is — halving the step size halves the error but doubles the gate count. A second-order (symmetric) Trotter step costs roughly as many gates but cuts the error to , usually a better deal. Post-Trotter methods (qubitization, LCU) reach error with cost scaling as instead of — asymptotically far better, but with larger constant overhead. Studying which wins for a given on a given is precisely a "Hamiltonian simulation study."
Try it
Build one first-order Trotter step for , , starting from . The grader checks the resulting statevector.
Sign in on the full site to ask questions and join the discussion.