Skip to content
DAH
Wiki/Quantum SimulationAlgorithmActive

Hamiltonian simulation: product formulas, LCU and qubitization

Algorithms that implement the time evolution e^(−iHt) of a quantum system on a quantum computer, from Lloyd's product formulas to qubitization and quantum signal processing with optimal query cost.

On this page16 sections
Why other work relies on it

Simulating physics and chemistry is the most natural use of a quantum computer, and Hamiltonian simulation is also the subroutine inside phase estimation, linear-system solvers and Gibbs samplers.

Turning how a quantum system changes over time into a quantum circuit: the most natural quantum computing task.

  1. 1Quantum systems overwhelm classical memory
  2. 2Write energy as simple pieces
  3. 3Apply pieces in short time slices
  4. 4Smarter polynomial methods reach optimum
  5. 5Basis for chemistry and materials

Goal. The Schrödinger equation says a state evolves as ∣ψ(t)⟩=e−iHt∣ψ(0)⟩|\psi(t)\rangle=e^{-iHt}|\psi(0)\rangle, where the Hamiltonian HH is the energy matrix. For nn qubits HH is 2n×2n2^n\times2^n, but physical Hamiltonians are sums of a few simple local pieces, H=∑jHjH=\sum_j H_j. The task is a circuit that implements e−iHte^{-iHt} to accuracy ε\varepsilon.

Product formulas (Trotter). If the pieces commuted, e−iHte^{-iHt} would equal ∏je−iHjt\prod_j e^{-iH_jt}. They usually do not, but over a short time step the error is small. Splitting tt into rr steps, e−iHt≈(∏je−iHjt/r)r,e^{-iHt}\approx\Big(\prod_j e^{-iH_jt/r}\Big)^r, with error shrinking like t2/rt^2/r times the size of the commutators [Hj,Hk]=HjHk−HkHj[H_j,H_k]=H_jH_k-H_kH_j. Symmetric and higher-order versions do better. Each small exponential is a short circuit.

Optimal methods. Writing HH as a weighted sum of unitaries and embedding it in a bigger unitary (a block encoding) lets algorithms apply polynomials of HH. Quantum signal processing and qubitization approximate e−iHte^{-iHt} with a polynomial using about λt+log⁡(1/ε)\lambda t+\log(1/\varepsilon) queries, where λ\lambda is the sum of the weights, which is provably optimal.

Limits. No general method can simulate time tt with cost much less than proportional to tt (no fast-forwarding). For local lattice models the best gate count is proportional to the number of qubits times tt, up to logarithms, and this is also proven optimal.

Example. For a chain of nn spins with nearest-neighbour coupling, HH splits into two groups of commuting terms (even bonds and odd bonds). Each Trotter step applies all even bonds in parallel, then all odd bonds, so one step is a circuit of depth two regardless of nn. The number of steps needed grows with the total time tt and the desired accuracy, so the total gate count grows roughly like ntnt times a slowly growing factor.

Choosing a method. Product formulas need no extra qubits and are often favoured for early machines; qubitization needs extra qubits for the block encoding but has the best asymptotic cost, and is used in most chemistry resource estimates.

Go deeper

The full technical text.

The task

Given a Hamiltonian HH on nn qubits (a sum of local terms, or a sparse matrix with oracle access to its entries), a time tt and an accuracy ε\varepsilon, implement a circuit within ε\varepsilon of e−iHte^{-iHt}. Feynman (1982) proposed using quantum devices to simulate quantum physics, and Lloyd (Science 1996) showed that local Hamiltonians can be simulated efficiently. The problem is BQP-complete, since any quantum circuit can be encoded as the evolution of a suitable Hamiltonian. The no-fast-forwarding theorem (Berry et al., 2007) shows that for general Hamiltonians the cost must grow at least linearly in tt.

Product formulas

Write H=∑jHjH=\sum_j H_j with each e−iHjτe^{-iH_j\tau} easy to implement. The first-order Lie–Trotter formula approximates e−iHte^{-iHt} by (∏je−iHjt/r)r\big(\prod_j e^{-iH_jt/r}\big)^r, with error governed by the commutators [Hj,Hk][H_j,H_k] and shrinking as 1/r1/r; Suzuki's higher-order formulas of order 2k2k do better. Childs, Su, Tran, Wiebe and Zhu (PRX 2021) gave a theory of Trotter error in terms of nested commutators that is close to tight in examples. For geometrically local lattice Hamiltonians, Haah, Hastings, Kothari and Low (FOCS 2018) gave an algorithm with O(nT polylog(nT/ε))O(nT\,\mathrm{polylog}(nT/\varepsilon)) gates and proved a matching Ω~(nT)\tilde\Omega(nT) lower bound. Product formulas need no ancilla qubits, and in practice they are often competitive for lattice models (Childs, Maslov, Nam, Ross and Su, PNAS 2018).

Beyond product formulas

Berry, Ahokas, Cleve and Sanders (2007) simulated sparse Hamiltonians with oracle access. Childs and Wiebe (2012) introduced the linear combination of unitaries (LCU) method, and Berry, Childs, Cleve, Kothari and Somma (PRL 2015) used a truncated Taylor series to reach cost logarithmic in 1/ε1/\varepsilon. Low and Chuang's quantum signal processing (PRL 2017) achieved query complexity O(td∥H∥max⁡+log⁡(1/ε)/log⁡log⁡(1/ε))O\big(td\|H\|_{\max}+\log(1/\varepsilon)/\log\log(1/\varepsilon)\big) for dd-sparse HH, matching lower bounds in all parameters, and qubitization (Quantum 2019) achieved O(λt+log⁡(1/ε))O(\lambda t+\log(1/\varepsilon)) queries for a Hamiltonian given as a block-encoding with normalisation λ\lambda, using at most two extra qubits. The quantum singular value transformation (Gilyén, Su, Low and Wiebe, STOC 2019) generalises these methods to polynomial transformations of block-encoded matrices and unifies much of quantum algorithm design.

Use in chemistry and materials

For electronic structure, qubitization combined with compressed representations of the Hamiltonian is the basis of most fault-tolerant cost estimates: Babbush et al. (PRX 2018) encoded electronic spectra with linear T complexity, and Lee et al. (PRX Quantum 2021) used tensor hypercontraction. Product formulas remain attractive for lattice models because they preserve locality.

Thermal states

Simulating dynamics is the building block for preparing thermal states with quantum Gibbs samplers, which run a dissipative evolution whose steady state is e−βH/Ze^{-\beta H}/Z and call Hamiltonian simulation as a subroutine.

Words on this page (7)
Words on this page
Hamiltonian
The operator that gives a system's energy and drives its evolution.
Schrödinger equation
The equation describing how a quantum state changes in time.
commutator
AB − BA; zero when the order of two operations does not matter.
Trotter formula
Approximating the evolution under a sum by alternating short evolutions under each piece.
block encoding
Placing a matrix inside a corner of a larger unitary so a quantum computer can apply it.
qubitization
A method that turns a block-encoded Hamiltonian into a walk whose phases encode its energies.
phase estimation
A routine that reads out energies from time evolution.
New to this? Read first (2)
New to this? Read first

Understanding map

map of the whole wiki →

What to read before Hamiltonian simulation: product formulas, LCU and qubitization (left), and what builds on it: entries that depend on it and its open problems (right). Every box links to its page.

  1. Start with
  2. Step 2
  3. Step 3
  4. Then

Open problems & questions

No open problems or questions on this entry.

Progress timeline

  1. Dec 18, 2019
    Theory of Trotter error

    Childs et al. gave commutator-scaling error bounds for product formulas.

    source
  2. Jun 5, 2018
    Quantum singular value transformation

    Gilyén, Su, Low and Wiebe unified Hamiltonian simulation and other algorithms.

    source
  3. Oct 20, 2016
    Qubitization

    Low and Chuang gave optimal simulation for block-encoded Hamiltonians.

    source
  4. Jun 8, 2016
    Quantum signal processing

    Low and Chuang gave query-optimal sparse Hamiltonian simulation.

    source
  5. Dec 15, 2014
    Truncated Taylor series

    Berry, Childs, Cleve, Kothari and Somma reached cost logarithmic in the inverse error.

    source
  6. Aug 23, 1996
    Universal quantum simulators

    Lloyd showed local Hamiltonians can be simulated efficiently with product formulas.

    source