Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

L11: Hamiltonian Simulation (Trotterization & Mapping Matter to Qubits)

Learning Objectives

  • Explain why simulating quantum matter is the ‘native’ application of quantum computers.

  • Decompose eiHte^{-iHt} via Lie-Trotter-Suzuki formulas and bound the error.

  • Map spin Hamiltonians (Ising, Heisenberg) directly to circuits.

  • Map fermions to qubits (Jordan-Wigner; Bravyi-Kitaev in outline).

Feynman’s Charge

Classical cost of an nn-site quantum system grows as 2n2^n; a quantum computer stores the state in nn qubits.

Target problems for materials science: ground-state energies, band structures, reaction barriers, dynamics after a quench, correlated phases (Hubbard physics, high-TcT_c).

Eureka! Simulation is the application where quantum advantage needs the least algorithmic magic: the computer and the problem obey the same physics.

The Task

Given H=khkHkH=\sum_{k} h_k H_k (each HkH_k a local/Pauli term), implement U(t)=eiHtU(t)=e^{-iHt} as a circuit.

Problem: the HkH_k generally do not commute, so eiHtkeihkHkte^{-iHt} \ne \prod_k e^{-ih_kH_kt}.

Trotterization

First-order Lie–Trotter:

eiHt=(keihkHkt/r)r+O ⁣(t2rj<k[Hj,Hk]).e^{-iHt} = \left(\prod_k e^{-i h_k H_k t/r}\right)^{r} + \mathcal{O}\!\left(\frac{t^2}{r}\sum_{j<k}\|[H_j,H_k]\|\right).

Second-order (Suzuki) symmetric splitting reduces error to O(t3/r2)\mathcal{O}(t^3/r^2).

Eureka! Error is governed by commutators: terms that commute cost nothing to split. Locality of physical Hamiltonians is what makes simulation efficient.

Circuit Primitives for Pauli Evolutions

  • eiθZe^{-i\theta Z}: an Rz(2θ)R_z(2\theta) gate.

  • eiθZZe^{-i\theta Z\otimes Z}: CNOT ladder Rz(2θ)\to R_z(2\theta) \to CNOT ladder.

  • Any Pauli string eiθPe^{-i\theta P}: basis change (HH for XX, SHS^\dagger H for YY), then the ZZZZZ\cdots Z pattern.

Worked example on board: one Trotter step of the transverse-field Ising model H=JjZjZj+1gjXjH = -J\sum_j Z_jZ_{j+1} - g\sum_j X_j.

Fermions to Qubits: Jordan-Wigner

Creation/annihilation operators need antisymmetry; qubits do not have it natively.

aj(k<jZk)Xj+iYj2.a_j \mapsto \left(\prod_{k<j} Z_k\right)\frac{X_j + iY_j}{2}.
  • Preserves {ai,aj}=δij\{a_i, a_j^\dagger\}=\delta_{ij}; cost: strings of ZZ’s (nonlocality).

  • Bravyi--Kitaev: O(logn)\mathcal{O}(\log n)-weight strings; parity/ternary-tree variants.

  • Pipeline: molecule/lattice \to second quantization \to qubit Hamiltonian (openfermion, qiskit-nature).

Eureka! After JW, any electronic-structure problem is a sum of Pauli strings — exactly what our Trotter and VQE (L12) machinery consumes.

Measuring Observables

  • Energy: H=khkPk\langle H\rangle = \sum_k h_k \langle P_k\rangle; measure each Pauli string by basis rotation + ZZ-basis shots.

  • Grouping commuting strings reduces the number of measurement settings.

  • Dynamics: measure correlators Zj(t)Zk(0)\langle Z_j(t) Z_k(0)\rangle after Trotterized evolution.

Beyond Trotter (One-Slide Horizon)

qDRIFT (randomized compiling of terms), linear combination of unitaries (LCU), qubitization / quantum signal processing achieve optimal tt and ε\varepsilon scaling — the fault-tolerant-era toolkit built on the QFT/QPE ideas of L08-L09.

Mini-Lab

  • Simulate a 4-spin transverse-field Ising quench; compare Trotter steps r=1,2,4,8r=1,2,4,8 against exact diagonalization (NumPy).

  • Verify the O(1/r)\mathcal{O}(1/r) error scaling on a log-log plot.

  • Map H2_2 (STO-3G, 2 qubits after reduction) to a qubit Hamiltonian and print its Pauli decomposition.

Takeaways

  • eiHte^{-iHt} is compiled by splitting HH into local terms; commutators set the price.

  • Pauli-string evolution circuits are the universal subroutine.

  • Jordan-Wigner turns electrons into qubits; materials problems become Pauli sums.