|q⟩ Bad Qubits

intermediate · Programming · Hamiltonian Simulation & Trotterization

Resource Scaling

A Trotter simulation is built from a simple recipe: chop the total evolution time tt into rr steps, approximate each step with a product of local exponentials, and repeat. The important question for any practical application is: how do the required resources — circuit depth, gate count, qubit overhead — grow as we demand higher accuracy or longer simulation times?

The first-order error budget

Recall the first-order Lie–Trotter product formula for two non-commuting terms AA and BB:

ei(A+B)t=(eiAt/reiBt/r)r+O ⁣(t2[A,B]r).e^{-i(A+B)t} = \left(e^{-iAt/r}\,e^{-iBt/r}\right)^r + O\!\left(\frac{t^2 \|[A,B]\|}{r}\right).

The error in a single step of size δ=t/r\delta = t/r is O(δ2[A,B])O(\delta^2 \|[A,B]\|); after rr steps the errors accumulate to O(rδ2)=O(t2[A,B]/r)O(r \cdot \delta^2) = O(t^2\|[A,B]\|/r). To keep the total error below a target ε\varepsilon we need

r    t2Λε,r \;\geq\; \frac{t^2\,\Lambda}{\varepsilon},

where Λ=[A,B]\Lambda = \|[A, B]\| is a norm capturing the non-commutativity of the Hamiltonian terms. For a kk-term Hamiltonian H=j=1kHjH = \sum_{j=1}^k H_j the analogous bound involves the sum of all pairwise commutator norms.

Second-order (symmetric) Trotterization

The symmetric Suzuki–Trotter formula

ei(A+B)t/reiAt/(2r)eiBt/reiAt/(2r)e^{-i(A+B)t/r} \approx e^{-iAt/(2r)}\,e^{-iBt/r}\,e^{-iAt/(2r)}

cancels the leading-order error by symmetry. Each step costs roughly twice as many gates, but the accumulated error per step is O(δ3)O(\delta^3), giving a total error of O(rδ3)=O(t3/r2)O(r \cdot \delta^3) = O(t^3/r^2). To reach accuracy ε\varepsilon with this formula we need

r    (t3Λε)1/2,r \;\geq\; \left(\frac{t^3 \Lambda'}{\varepsilon}\right)^{1/2},

where Λ\Lambda' absorbs higher commutator norms. The step count grows as t3/2/ε1/2t^{3/2}/\varepsilon^{1/2} rather than t2/εt^2/\varepsilon — a significant improvement when tt or 1/ε1/\varepsilon is large.

More generally, the 2k2k-th order Suzuki formula achieves error O(t2k+1/r2k)O(t^{2k+1}/r^{2k}), giving a step count scaling as t1+1/(2k)/ε1/(2k)t^{1 + 1/(2k)}/\varepsilon^{1/(2k)}, which approaches linear in tt (with vanishing ε\varepsilon-dependence) as the order kk grows.

Gate count and circuit depth

For a Hamiltonian with Γ\Gamma Pauli terms, each Trotter step requires Γ\Gamma elementary rotations (one eihjPjδe^{-i h_j P_j \delta} per term). Each such rotation compiles to a constant number of CNOT gates and single-qubit gates. The total gate count is therefore

gates    rΓg,\text{gates} \;\sim\; r \cdot \Gamma \cdot g,

where gg is the per-term gate cost. For a geometrically local Hamiltonian on nn qubits (each term acting on at most \ell neighbouring sites), one can often parallelise non-overlapping terms, so the circuit depth is smaller than the gate count by a factor up to nn.

Putting it together: a scaling table

The table below summarises how the Trotter step count rr (and hence circuit depth) scales with simulation time tt and target error ε\varepsilon for the most common product formulas.

| Formula | Step count rr | Error per step | |---|---|---| | First-order | O(t2/ε)O(t^2/\varepsilon) | O(δ2)O(\delta^2) | | Second-order | O(t3/2/ε)O(t^{3/2}/\sqrt{\varepsilon}) | O(δ3)O(\delta^3) | | 2k2k-th order | O ⁣(t1+1/(2k)/ε1/(2k))O\!\left(t^{1+1/(2k)}/\varepsilon^{1/(2k)}\right) | O(δ2k+1)O(\delta^{2k+1}) |

Practical takeaways

Choosing the step count. Given a simulation time tt, an error tolerance ε\varepsilon, and an estimate of Λ\Lambda from the Hamiltonian structure, the required step count rr is set by the appropriate formula above. Increasing rr beyond the minimum adds unnecessary circuit depth without improving accuracy.

Error accumulates, not averages. Trotter errors add coherently over steps, not randomly. The O(t2/r)O(t^2/r) bound for first order is a worst-case bound; in practice the effective constant can be smaller, but conservative resource estimates should use the analytic bound.

Gate parallelism matters. On hardware with limited qubit connectivity, the mapping from logical to physical qubits can substantially increase the CNOT count. Accurate resource estimates must account for compilation overhead, not just the abstract gate count.

The accuracy–time trade-off. Longer simulation times demand more steps. For tt much larger than 1/Λ1/\Lambda, even high-order formulas require deep circuits; this is why fault-tolerant hardware is considered necessary for simulating long-time dynamics of strongly-interacting systems.

Summary

The first-order Trotter formula requires r=O(t2/ε)r = O(t^2/\varepsilon) steps; higher-order symmetric formulas reduce this to r=O((t/ε)1+1/(2k))r = O((t/\varepsilon)^{1+1/(2k)}). Circuit depth is proportional to rr times the per-step cost, which grows linearly with the number of Hamiltonian terms. Understanding these scalings is essential for estimating whether a target simulation is within reach of a given quantum device.

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