Skip to content

Digital Quantum Simulation

Digital quantum simulation uses a programmable sequence of discrete quantum operations to approximate the states, dynamics, spectra, or observables of a specified quantum model. The target degrees of freedom are encoded into qubits or qudits; the target generator is represented through implementable operators or access oracles; a simulation algorithm produces a logical circuit; that circuit is compiled to a device; and repeated measurements produce a classical estimate of the requested quantity.

The word digital describes the control interface, not the scientific output. A digital simulator does not print an exponentially long wavefunction. It returns samples, expectation values, correlation functions, eigenvalue estimates, or a prepared quantum state whose useful properties must still be measured. Nor does universality make every simulation efficient. State preparation, long-time evolution, controlled access, native compilation, fault tolerance, and output extraction can each dominate the cost.

Required background. What Is Quantum Simulation? explains target models and encoded dynamics; the circuit model supplies gate composition, and unitary evolution supplies the Hamiltonian propagator.

Hamiltonian, input state, and requested output

Section titled “Hamiltonian, input state, and requested output”

A closed-system dynamical task can be specified by

T=(H,ρ0,O,T,ϵ,δ),\mathfrak T = \left( H, \rho_0, \mathcal O, \mathcal T, \epsilon, \delta \right),

where HH is the target Hamiltonian, ρ0\rho_0 the initial state, O\mathcal O a declared observable set, T\mathcal T a set or interval of times, ϵ\epsilon an accuracy target, and δ\delta an allowed failure probability. For O∈OO\in\mathcal O, the ideal quantity may be

μO(t)=Tr⁡[Oe−iHtρ0eiHt],\mu_O(t) = \operatorname{Tr} \left[ Oe^{-iHt}\rho_0e^{iHt} \right],

using units with ℏ=1\hbar=1 unless restored explicitly.

The following sections connect the encoding, preparation, evolution, compilation, and measurement needed for this calculation. An algorithm that assumes a prepared state or an oracle can still be useful, but its quoted cost is conditional on that access. Realizing the assumption is part of a physical implementation.

For a broad class of local Hamiltonians

H=∑ℓ=1LHℓ,H = \sum_{\ell=1}^{L}H_\ell,

where the local dimension is finite, each HℓH_\ell acts on a bounded number of subsystems, and the number of terms, term norms, and description precision are controlled, a universal gate-based quantum computer can approximate the corresponding finite-time evolution with resources polynomial in system size, the relevant energy–time scales, and inverse accuracy under the assumptions of the chosen algorithm. Locality alone would not make an exponentially large coupling strength a small resource. This is the central content of universal digital simulation.

It does not establish that:

  • an arbitrary dense matrix supplied as a classical table can be loaded efficiently;
  • an unknown ground state can be prepared efficiently;
  • evolution for exponentially long physical time can generically be compressed into polynomial cost;
  • every target observable can be estimated with polynomially many shots;
  • physical gate errors remain bounded without mitigation or fault tolerance;
  • the best classical method for the requested output is exponentially slow.

For generic black-box Hamiltonians, no-fast-forwarding results show that cost must grow at least linearly with simulated time in the worst case. Structured exceptions exist: commuting models, known spectra, free systems, fast-forwardable families, and tasks involving restricted observables can be easier. The correct statement is model- and access-dependent, not “quantum evolution is always exponentially faster.”

The first computational decision is a representation. An isometry

V:Htar(trunc)⟶(C2)⊗nV: \mathcal H_{\rm tar}^{(\rm trunc)} \longrightarrow (\mathbb C^2)^{\otimes n}

embeds a finite target subspace into nn qubits. The encoded Hamiltonian and observables are

Hq=VHtruncV†,Oq=VOtruncV†,H_q = V H_{\rm trunc}V^\dagger, \qquad O_q = V O_{\rm trunc}V^\dagger,

on the code subspace. Choosing VV determines qubit count, operator locality, symmetry visibility, circuit depth, and readout complexity.

A spin-1/21/2 degree of freedom maps directly to one qubit. A local system of dimension dd can use ⌈log⁡2d⌉\lceil\log_2 d\rceil qubits in a compact binary encoding, or more qubits in a unary or one-hot encoding. Compact encodings save qubits but may turn local operators into longer Pauli strings. Redundant encodings can make constraints and transitions simpler to implement.

Bosonic modes require a cutoff, basis, and encoding. A number cutoff nmax⁡n_{\max} replaces an infinite-dimensional Fock space by dimension nmax⁡+1n_{\max}+1. The resulting truncation error is physical and state-dependent; it is not a gate error. Convergence must be demonstrated by increasing the cutoff or bounding the effect of discarded levels on the evolution and requested observable. Small discarded probability alone does not control an unbounded moment such as energy; a tail or moment bound is then needed.

Fermionic creation and annihilation operators cannot be replaced naively by local qubit raising and lowering operators because anticommutation signs must be preserved. Jordan–Wigner, parity, and Bravyi–Kitaev-style maps trade Pauli weight, parity bookkeeping, and circuit structure differently. Jordan–Wigner Transformation derives the one-dimensional mapping and its parity strings.

Gauge constraints, fixed particle number, parity, and point-group sectors can be handled by an encoding that satisfies them identically, by penalty terms, or by detection and postprocessing. These choices are not equivalent. A penalty Hamiltonian changes the spectrum and introduces another energy scale; postselection changes sampling cost; symmetry-preserving encodings can reduce the accessible Hilbert space but complicate gates.

Every nn-qubit Hermitian operator has a Pauli expansion

Hq=∑ℓ=1LhℓPℓ,Pℓ∈{I,X,Y,Z}⊗n,H_q = \sum_{\ell=1}^{L}h_\ell P_\ell, \qquad P_\ell \in \{I,X,Y,Z\}^{\otimes n},

with real coefficients

hℓ=12nTr⁡(PℓHq).h_\ell = \frac{1}{2^n} \operatorname{Tr}(P_\ell H_q).

The formal upper bound is L≤4nL\leq4^n, so a Pauli expansion is useful only when the target structure makes it sparse, compressible, or efficiently queryable. A polynomial number of local terms is very different from an arbitrary list of exponentially many Pauli strings.

State Preparation Is Part of the Algorithm

Section titled “State Preparation Is Part of the Algorithm”

Digital evolution begins from a state, not from a Hamiltonian alone. Easy inputs include computational-basis product states, simple stabilizer states, and shallow states created by known local rotations. Harder tasks include interacting ground states, thermal states, scattering wave packets, and states with topological or gauge constraints.

Common preparation routes include:

  • direct basis-state or low-depth circuit preparation;
  • adiabatic interpolation from an easy Hamiltonian;
  • variational preparation with a classical optimization loop;
  • dissipative or measurement-based preparation;
  • spectral filtering or phase estimation from a trial state;
  • postselection into a symmetry or energy sector.

If the desired eigenstate is ∣E0⟩|E_0\rangle and the prepared trial state is

∣ψtrial⟩=p ∣E0⟩+1−p ∣E⊥⟩,|\psi_{\rm trial}\rangle = \sqrt p\,|E_0\rangle + \sqrt{1-p}\,|E_\perp\rangle,

then an ideal projective energy measurement produces the desired energy only with probability pp. Repetition costs order 1/p1/p preparations unless an additional coherent amplification or filtering method is available. Quantum Phase Estimation explains spectral overlap, finite energy resolution, and controlled-evolution costs. Here ∣E⊥⟩|E_\perp\rangle is normalized and orthogonal to the chosen nondegenerate eigenstate; an energy measurement cannot distinguish states within a degenerate eigenspace.

Preparation quality should be tied to the final task. If the actual and ideal initial states have trace distance

D(ρ0,ρ~0)=12∥ρ0−ρ~0∥1,D(\rho_0,\widetilde\rho_0) = \frac12 \lVert\rho_0-\widetilde\rho_0\rVert_1,

then ideal unitary evolution preserves that distance, and every bounded observable satisfies

∣Tr⁡[O(ρt−ρ~t)]∣≤2∥O∥∞D(ρ0,ρ~0).\left| \operatorname{Tr} \left[ O(\rho_t-\widetilde\rho_t) \right] \right| \leq 2\lVert O\rVert_\infty D(\rho_0,\widetilde\rho_0).

This gives a rigorous task-independent conversion from state-preparation error to observable error. A much smaller observable-specific error may be possible, but it must be demonstrated rather than assumed.

The Hamiltonian representation determines which simulation methods are available. There is no universally best algorithm after logical gates, ancillas, constants, connectivity, and output cost are included.

Method family Input or access model Main strength Main cost or caveat
product formulas exponentials of terms HℓH_\ell direct circuits, few ancillas, exploits commutation and locality step error and term ordering; depth grows with step count
randomized formulas sampled implementable terms can reduce dependence on term count and coherent ordering bias produces a randomized channel and requires seed/variance accounting
LCU and truncated Taylor methods efficient linear combination of unitaries strong precision dependence and coherent error control state preparation, select operations, ancillas, and amplification
qubitization and QSP block encoding with normalization α\alpha near-optimal dependence on αt\alpha t and precision constructing controlled block-encoding oracles may dominate
variational compilation trainable circuit and objective shallow task-specific approximation on available hardware optimization, generalization, certification, and training cost
fault-tolerant synthesis logical access to the chosen method controllably small logical error code cycles, magic states, routing, and physical-qubit overhead

For a time-independent sum H=∑ℓ=1LHℓH=\sum_{\ell=1}^{L}H_\ell, a first-order step is

S1(Δt)=∏ℓ=1Le−iHℓΔt,S_1(\Delta t) = \prod_{\ell=1}^{L} e^{-iH_\ell\Delta t},

and rr steps approximate the target evolution:

e−iHt≈S1(t/r)r.e^{-iHt} \approx S_1(t/r)^r.

The error vanishes when the relevant terms commute. For bounded operators, the following first-order bound holds for finite-dimensional Hermitian terms:

∥e−iHt−S1(t/r)r∥≤t22r∑j<k∥[Hj,Hk]∥.\left\| e^{-iHt} - S_1(t/r)^r \right\| \leq \frac{t^2}{2r} \sum_{j<k} \lVert[H_j,H_k]\rVert.

This estimate follows from an integral remainder and unitary norm preservation; no omitted higher-order term is needed. Tighter bounds exploit nested commutators, locality, ordering, and the target observable; simply replacing every term by its norm can be extremely loose.

The symmetric second-order step

S2(Δt)=(∏ℓ=1Le−iHℓΔt/2)(∏ℓ=L1e−iHℓΔt/2)S_2(\Delta t) = \left( \prod_{\ell=1}^{L} e^{-iH_\ell\Delta t/2} \right) \left( \prod_{\ell=L}^{1} e^{-iH_\ell\Delta t/2} \right)

has global error of order t3/r2t^3/r^2 under standard boundedness assumptions, with constants governed by nested commutators. Higher-order formulas trade more exponentials per step for a higher power of 1/r1/r. The exact derivation, domain qualifications, and Suzuki recursion belong to Trotter Product Formula.

Randomization can turn coherent, ordering-dependent approximation error into a controlled average channel. For a Pauli sum, define

λ=∑ℓ=1L∣hℓ∣,pℓ=∣hℓ∣λ.\lambda = \sum_{\ell=1}^{L}|h_\ell|, \qquad p_\ell = \frac{|h_\ell|}{\lambda}.

The qDRIFT protocol independently samples index ℓ\ell with probability pℓp_\ell and applies

Uℓ=exp⁡[−i sgn⁡(hℓ)λtNsPℓ]U_\ell = \exp \left[ -i\,\operatorname{sgn}(h_\ell) \frac{\lambda t}{N_s}P_\ell \right]

for each of NsN_s random steps. Let E\mathcal E be the one-step average channel and U\mathcal U the ideal time-tt channel. Using the half-diamond distance d⋄=12∥ENs−U∥⋄d_\diamond=\tfrac12\lVert\mathcal E^{N_s}-\mathcal U\rVert_\diamond, Campbell’s bound is

d⋄≤2λ2t2Nse2λ∣t∣/Ns.d_\diamond\leq \frac{2\lambda^2t^2}{N_s} e^{2\lambda|t|/N_s}.

The leading step estimate Ns≃2λ2t2/ϵN_s\simeq2\lambda^2t^2/\epsilon is accurate when λ∣t∣/Ns≪1\lambda|t|/N_s\ll1, but a strict sufficient bound retains the exponential. The scaling has no explicit LL factor, although λ\lambda itself can grow with LL. This can help when LL is large but λ\lambda is moderate. It is not free: circuit-to-circuit randomness, hardware error, statistical variance, and the distinction between an average channel and each sampled realization must be included. Reusing a single random circuit for every shot estimates that realization, not automatically the average-channel prediction.

Linear-combination and qubitization methods

Section titled “Linear-combination and qubitization methods”

Suppose the encoded Hamiltonian is available through an (α,a,ϵBE)(\alpha,a,\epsilon_{\rm BE}) block encoding UHU_H satisfying

∥H−α(⟨0a∣⊗I)UH(∣0a⟩⊗I)∥≤ϵBE.\left\| H - \alpha \left( \langle0^a|\otimes I \right) U_H \left( |0^a\rangle\otimes I \right) \right\| \leq \epsilon_{\rm BE}.

Qubitization converts this access into invariant two-dimensional signal subspaces, and quantum signal processing applies a polynomial approximation to the desired exponential. The resulting query complexity can be nearly linear in αt\alpha t and near-logarithmic in 1/ϵ1/\epsilon in appropriate regimes.

That statement is conditional on the block-encoding interface. The costs of preparing coefficient states, implementing the select oracle, uncomputing ancillas, controlling the operation, and synthesizing QSP phases must be expanded into gates before comparing with a product formula. A worse normalization α\alpha directly worsens the query count. The block error ϵBE\epsilon_{\rm BE} here has energy units: for a Hermitian Hamiltonian approximation, its contribution to evolution error is at most ∣t∣ϵBE|t|\epsilon_{\rm BE}, before the polynomial-approximation and gate errors. Hamiltonian Simulation compares access assumptions, normalized evolution time, no-fast-forwarding limits, and output guarantees. Qubitization and Quantum Signal Processing derives the signal subspaces, polynomial constraints, phase conventions, and conversion from oracle calls to gates.

For H(t)H(t), the target is a time-ordered exponential

U(t,0)=Texp⁡[−i∫0tds H(s)].U(t,0) = \mathcal T \exp \left[ -i\int_0^t ds\,H(s) \right].

Freezing HH on time slices introduces discretization error even before terms within a slice are split. Dyson-series, Magnus, interaction-picture, and time-dependent product-formula methods use different smoothness and access assumptions. A method proven for a static Hamiltonian cannot simply be applied to a fast drive without adding the time-discretization error and oracle cost.

Fix the convention

RP(θ)≡e−iθP/2.R_P(\theta) \equiv e^{-i\theta P/2}.

Then evolution under one Pauli term is

e−ihPΔt=RP(2hΔt).e^{-ihP\Delta t} = R_P(2h\Delta t).

For a Pauli string P=P1⊗⋯⊗PwP=P_1\otimes\cdots\otimes P_w on ww active qubits, a standard logical construction is:

  1. rotate every XX or YY factor into the ZZ basis;
  2. use a CNOT parity network to accumulate the product eigenvalue on one qubit;
  3. apply RZ(2hΔt)R_Z(2h\Delta t) to that qubit;
  4. reverse the parity network and basis changes.

An XX factor can be mapped to ZZ with a Hadamard. One convenient mapping for YY is S†S^\dagger followed by HH, with the inverse applied afterward. On all-to-all logical connectivity, a weight-ww Pauli rotation uses 2(w−1)2(w-1) CNOTs in a ladder before local optimizations. Hardware topology can require SWAPs, transport, bridge gates, or a different parity tree. The count assumes w≥1w\geq1. An identity term produces a global phase for uncontrolled evolution, but that phase becomes relative in controlled evolution used for energy estimation and must then be retained.

For

RZZ(θ)=e−iθZ1Z2/2,R_{ZZ}(\theta) = e^{-i\theta Z_1Z_2/2},

the circuit identity is

RZZ(θ)=CNOT⁡1→2RZ2(θ)CNOT⁡1→2,R_{ZZ}(\theta) = \operatorname{CNOT}_{1\to2} R_{Z_2}(\theta) \operatorname{CNOT}_{1\to2},

where operator products are read right to left. This works because conjugation maps

CNOT⁡1→2Z2CNOT⁡1→2=Z1Z2.\operatorname{CNOT}_{1\to2} Z_2 \operatorname{CNOT}_{1\to2} = Z_1Z_2.

The identity is logical. A compiler may instead use a native controlled-phase, Mølmer–Sørensen, echoed cross-resonance, tunable-coupler, or multiqubit gate. The native implementation and calibration determine the actual depth and noise.

Consider

H=JZ1Z2+h(X1+X2),H = JZ_1Z_2 + h(X_1+X_2),

with initial state ∣00⟩|00\rangle and target observables Z1Z_1, Z2Z_2, and Z1Z2Z_1Z_2. Group the commuting transverse terms into

HZ=JZ1Z2,HX=h(X1+X2).H_Z=JZ_1Z_2, \qquad H_X=h(X_1+X_2).

A first-order step of duration Δt=t/r\Delta t=t/r is

S1(Δt)=e−iHZΔte−iHXΔt.S_1(\Delta t) = e^{-iH_Z\Delta t} e^{-iH_X\Delta t}.

Because X1X_1 and X2X_2 commute,

e−iHXΔt=RX1(2hΔt)RX2(2hΔt).e^{-iH_X\Delta t} = R_{X_1}(2h\Delta t) R_{X_2}(2h\Delta t).

The interaction factor is

e−iHZΔt=RZ1Z2(2JΔt),e^{-iH_Z\Delta t} = R_{Z_1Z_2}(2J\Delta t),

implemented by two CNOTs and one RZR_Z. Before cancellation or routing, one step therefore contains two single-qubit RXR_X rotations, two CNOTs, and one RZR_Z rotation.

A commutator bound on product-formula error

Section titled “A commutator bound on product-formula error”

The noncommutativity is explicit:

[HZ,HX]=Jh[Z1Z2,X1+X2]=2iJh(Y1Z2+Z1Y2).\begin{aligned} [H_Z,H_X] &= Jh[Z_1Z_2,X_1+X_2] \\ &= 2iJh \left( Y_1Z_2+Z_1Y_2 \right). \end{aligned}

The two Pauli strings in parentheses commute and their sum has operator norm 22, so

∥[HZ,HX]∥=4∣Jh∣.\lVert[H_Z,H_X]\rVert = 4|Jh|.

The first-order bound is consequently

ϵPF≤t22r∥[HZ,HX]∥=2∣Jh∣t2r,\epsilon_{\rm PF} \leq \frac{t^2}{2r} \lVert[H_Z,H_X]\rVert = \frac{2|Jh|t^2}{r},

with no higher-order remainder required for these Hermitian matrices. This bound controls the full unitary in operator norm. The actual error in a specific local observable may be much smaller and should be tested against exact two-qubit evolution.

Two exact checks catch common implementation mistakes:

  • If h=0h=0, ∣00⟩|00\rangle is an eigenstate and all measured ZZ observables remain +1+1; the compiled ZZ phase is invisible in those populations.
  • If J=0J=0, each qubit rotates independently, giving
⟨Z1(t)⟩=⟨Z2(t)⟩=cos⁡(2ht),\langle Z_1(t)\rangle = \langle Z_2(t)\rangle = \cos(2ht),

and

⟨Z1Z2(t)⟩=cos⁡2(2ht).\langle Z_1Z_2(t)\rangle = \cos^2(2ht).

These population checks catch some angle and readout mistakes, but they cannot detect every sign or phase error. In particular, the cosine is unchanged by h↦−hh\mapsto-h, and the h=0h=0 test cannot distinguish any ZZ phase on ∣00⟩|00\rangle. Add a superposition input and a phase-sensitive observable to test those parts of the circuit.

Algorithmic Steps and Hardware Errors Pull Oppositely

Section titled “Algorithmic Steps and Hardware Errors Pull Oppositely”

For a ppth-order formula, suppose a useful task-level approximation model is

ϵalg(r)≃arp.\epsilon_{\rm alg}(r) \simeq \frac{a}{r^p}.

If every step contributes roughly gg noisy native operations and their small task-level bias accumulates approximately linearly, write the heuristic

ϵhw(r)≃br.\epsilon_{\rm hw}(r) \simeq b r.

Then

ϵtot(r)≃arp+br\epsilon_{\rm tot}(r) \simeq \frac{a}{r^p}+br

has stationary point

r⋆=(pab)1/(p+1).r_\star = \left( \frac{pa}{b} \right)^{1/(p+1)}.

For first order, r⋆=a/br_\star=\sqrt{a/b}. More Trotter steps reduce algorithmic error but eventually worsen physical execution. This familiar optimum is not a theorem about arbitrary noise: coherent errors can add quadratically or cancel, stochastic noise can change observable-specific bias, and mitigation can alter variance. It is a design model to be checked experimentally.

For example, if a=0.20a=0.20 and b=0.002b=0.002, the continuous optimum is r=10r=10 and

ϵalg=ϵhw=0.020,ϵtot≃0.040.\epsilon_{\rm alg} = \epsilon_{\rm hw} = 0.020, \qquad \epsilon_{\rm tot} \simeq 0.040.

Reporting only convergence of the noiseless product formula would recommend ever larger rr and miss the implemented optimum.

The circuit produced by a simulation algorithm is logical. A physical execution adds:

  • decomposition into a native one- and two-qubit gate alphabet;
  • continuous-angle synthesis or calibration;
  • assignment of program qubits to physical sites;
  • routing of nonlocal Pauli interactions;
  • scheduling under crosstalk and parallelism constraints;
  • dynamical decoupling or idle management;
  • pulse generation and drift-aware calibration;
  • mid-circuit measurement, reset, and feed-forward where required.

Universal Gate Sets explains approximation by a discrete logical alphabet. Qubit Mapping and Routing explains placement and legal movement on constrained hardware. These costs must be expanded before two simulation algorithms are compared.

A product formula with LrLr logical exponentials need not have depth LrLr. Commuting terms on disjoint qubits can run in parallel, adjacent parity networks may cancel, and hardware-native interactions can implement a logical block directly. Conversely, a compact high-weight Pauli exponential can require substantial routing.

Useful execution costs include:

(nq,nanc,N1q,N2q,Dnative,Trun,Nshot),\left( n_{\rm q}, n_{\rm anc}, N_{1q}, N_{2q}, D_{\rm native}, T_{\rm run}, N_{\rm shot} \right),

together with synthesis tolerance, connectivity, resets, feed-forward, mitigation circuits, and classical compilation time. A logical Pauli-rotation count alone is not a hardware estimate.

In a fault-tolerant setting, physical analog-angle rotations are replaced by logical constructions. Costs may be dominated by non-Clifford synthesis, magic-state production, lattice surgery, code distance, and the required logical failure probability. After converting the error terms into a common norm or observable-error bound, a sufficient allocation within a target budget is

ϵtotal≥ϵenc+ϵsim+ϵsynth+ϵlogical+ϵest,\epsilon_{\rm total} \geq \epsilon_{\rm enc} + \epsilon_{\rm sim} + \epsilon_{\rm synth} + \epsilon_{\rm logical} + \epsilon_{\rm est},

where ϵtotal\epsilon_{\rm total} denotes the allowed budget, not the realized error. Statistical failure probabilities require separate control; a probability and an operator-norm error cannot simply be added as if they were the same quantity. The allocation affects the optimum architecture: making synthesis error negligible may sharply increase non-Clifford cost without improving the final scientific uncertainty.

After evolution, measurement converts a quantum state into classical records. The requested output should be chosen before the circuit because different questions have radically different costs.

If OO is a Pauli observable with outcomes oj∈{−1,+1}o_j\in\{-1,+1\}, the sample mean

μ^O=1Ns∑j=1Nsoj\widehat\mu_O = \frac{1}{N_s} \sum_{j=1}^{N_s}o_j

is unbiased under identical independent shots, with variance

Var⁡(μ^O)=1−μO2Ns≤1Ns.\operatorname{Var}(\widehat\mu_O) = \frac{1-\mu_O^2}{N_s} \leq \frac{1}{N_s}.

Hoeffding’s inequality gives the nonasymptotic guarantee

Pr⁡(∣μ^O−μO∣≥ϵ)≤2e−Nsϵ2/2.\Pr \left( |\widehat\mu_O-\mu_O|\geq\epsilon \right) \leq 2e^{-N_s\epsilon^2/2}.

Therefore

Ns≥2ϵ2ln⁡2δN_s \geq \frac{2}{\epsilon^2} \ln\frac{2}{\delta}

suffices for additive error ϵ\epsilon with failure probability at most δ\delta. Preparing and evolving the state must be repeated for each shot.

For a weighted Pauli sum

O=∑j=1McjPj,O = \sum_{j=1}^{M}c_jP_j,

measured independently with njn_j shots per term, the estimator variance is

Var⁡(O^)=∑j=1Mcj2(1−⟨Pj⟩2)nj.\operatorname{Var}(\widehat O) = \sum_{j=1}^{M} \frac{c_j^2(1-\langle P_j\rangle^2)}{n_j}.

If the individual variances are known, the variance-minimizing allocation at fixed total shots obeys

nj∝∣cj∣1−⟨Pj⟩2.n_j \propto |c_j| \sqrt{1-\langle P_j\rangle^2}.

Commuting-group measurements, derandomized schedules, and classical shadows can reuse records across observables. Their advantage depends on the observable family and measurement ensemble; no single protocol compresses arbitrary full-state information into polynomial data.

Energy estimation may use controlled time evolution and phase estimation, time-domain correlation functions followed by Fourier analysis, filter diagonalization, or variational spectral methods. Direct Fourier reconstruction resolves features on the energy scale 1/T1/T from a time window of length TT, and coherent phase estimation has a related interrogation-time cost. Resolving ΔE\Delta E by these procedures therefore calls for times of order 1/ΔE1/\Delta E, with windowing included. Parametric fitting with additional spectral assumptions can have different precision–sampling tradeoffs. A narrow spectral line is not obtained merely by adding output bits.

Two-time correlators can require ancillas, controlled operators, randomized measurement identities, or repeated preparations. Out-of-time-order correlators may require reversed dynamics or interferometric control. Each is a distinct circuit and noise model, not a free query to the evolved state.

Full tomography is usually the wrong output

Section titled “Full tomography is usually the wrong output”

A generic nn-qubit density matrix has 4n−14^n-1 real parameters. Reconstructing it to a global norm guarantee requires exponentially many resources without strong promises. Digital simulation is useful precisely because many physical questions ask for structured observables rather than a complete classical description of the quantum state. State Tomography and Shadow Tomography explain the corresponding reconstruction and prediction guarantees.

Bias and uncertainty in the measured observable

Section titled “Bias and uncertainty in the measured observable”

Let μ\mu be the ideal target observable and μ^\widehat\mu the reported estimate. A useful decomposition is

μ^−μ=bmodel+benc+bprep+balg+bphys+bread+binfer+ζshot.\widehat\mu-\mu = b_{\rm model} + b_{\rm enc} + b_{\rm prep} + b_{\rm alg} + b_{\rm phys} + b_{\rm read} + b_{\rm infer} + \zeta_{\rm shot}.

The bb terms denote systematic or conditional biases, while ζshot\zeta_{\rm shot} is finite-sampling fluctuation. They should not be added as independent variances unless independence and zero-mean assumptions are justified.

Layer Representative source High-value diagnostic
target model omitted interactions or continuum approximation compare model variants and known regimes
encoding cutoff, lattice spacing, finite volume, penalty strength convergence in each representation parameter
preparation state infidelity, temperature, wrong sector independent observables, symmetry, or overlap witness
algorithm product-formula, polynomial, oracle, or phase error step/order convergence and exact small instances
synthesis approximate rotations and finite precision compile-level error bound or randomized circuit test
physical execution relaxation, dephasing, crosstalk, leakage, drift interleaved calibration and noise-aware controls
readout assignment and correlated detector error calibration matrix with uncertainty and drift checks
inference mitigation, fitting, extrapolation, regularization held-out tests, coverage, and sensitivity analysis
sampling finite independent or correlated records confidence intervals and effective sample size

If the implemented channel U~\widetilde{\mathcal U} satisfies

∥U~−U∥⋄≤ϵch,\left\| \widetilde{\mathcal U} - \mathcal U \right\|_\diamond \leq \epsilon_{\rm ch},

then for every encoded input, including one entangled with an ancilla,

∣Tr⁡[O(U~(ρ)−U(ρ))]∣≤ϵch∥O∥∞.\left| \operatorname{Tr} \left[ O \left( \widetilde{\mathcal U}(\rho) - \mathcal U(\rho) \right) \right] \right| \leq \epsilon_{\rm ch}\lVert O\rVert_\infty.

This is a strong worst-case guarantee. An observable-specific validation may certify a much smaller error at lower cost, but it supports only that narrower claim.

Readout correction, symmetry verification, probabilistic error cancellation, and zero-noise extrapolation can reduce particular biases under their respective assumptions. They require additional circuits, calibration data, accepted-shot selection, or statistical weights. Symmetry postselection also changes the estimated state; its relation to the desired observable must be checked.

If a mitigated estimator is

μ^mit=∑kwkμ^k,\widehat\mu_{\rm mit} = \sum_k w_k\widehat\mu_k,

and the component estimates are independent, then

Var⁡(μ^mit)=∑kwk2Var⁡(μ^k).\operatorname{Var}(\widehat\mu_{\rm mit}) = \sum_k w_k^2 \operatorname{Var}(\widehat\mu_k).

Large positive and negative weights can create a severe sampling overhead even when the bias is reduced. Mitigation settings selected after inspecting the answer also create a tuning and multiple-comparison problem. The raw and mitigated results, calibration budget, estimator rule, and uncertainty should all be reported. Noise in Quantum Information provides the channel context; mitigation is not error correction and does not make a noisy circuit logically exact.

Validation Before Classical Intractability

Section titled “Validation Before Classical Intractability”

A digital simulator is easiest to trust where independent calculations remain possible. Validation should be designed before entering the regime used for a hard scientific claim.

  1. Circuit identities: verify each Pauli rotation, qubit order, sign, and angle on small matrices or an informationally sufficient set of inputs and measurements. Computational-basis populations alone miss coherent phase errors.
  2. Exact small systems: compare complete time traces and distributions, not one selected point, with exact diagonalization.
  3. Convergence: vary product-formula step count, formula order, cutoff, lattice spacing, synthesis tolerance, and shot count separately.
  4. Limiting cases: turn off couplings, use commuting limits, check one-body solutions, and recover short-time derivatives.
  5. Conservation and symmetry: monitor quantities that the target dynamics must preserve, while recognizing that agreement is necessary rather than sufficient.
  6. Independent implementations: change term ordering, compiler, hardware mapping, algorithm family, or device platform.
  7. Held-out observables: reserve quantities not used to tune the simulation or mitigation, and predict their results before inspecting the held-out data.
  8. Size and time dependence: track error and cost against size, time, accuracy, and hardware epoch before extrapolating beyond the validated region.

Forward evolution followed by a compiled inverse is a useful control check, but it is not sufficient by itself. Correlated coherent errors can cancel in the round trip even when both forward and inverse trajectories are wrong. Likewise, energy conservation does not certify all local correlations.

Verification of Quantum Simulation develops scalable certification, cross-platform comparisons, and the limitations of self-verification.

What a Digital-Simulation Advantage Requires

Section titled “What a Digital-Simulation Advantage Requires”

A quantum device can represent and evolve states that require exponentially many generic classical amplitudes, but this fact alone is not an operational advantage. A defensible comparison fixes:

  • the target model, input family, observable set, time range, and accuracy;
  • how Hamiltonian coefficients or oracles are accessed by both methods;
  • state-preparation and preprocessing costs;
  • all controlled, inverse, and repeated evolution calls;
  • physical and logical qubits, depth, runtime, and success probability;
  • measurement shots, mitigation, classical inference, and validation;
  • the strongest applicable classical algorithms and hardware;
  • whether the comparison is empirical, asymptotic, projected, or conditional.

Classical baselines may exploit tensor networks, stabilizer structure, free-particle mappings, perturbation theory, symmetry, Monte Carlo, Krylov methods, neural states, or restricted light cones. A sign problem for one Monte Carlo representation is not a proof against every classical method.

Small-system correctness, controlled approximation, useful scientific predictions, and computational advantage are distinct results. A finite experimental comparison must specify the classical methods actually tested; an asymptotic claim must state its input family and complexity assumptions. A large qubit count or disagreement with one classical calculation establishes neither by itself.

Exercise 1: Compile a three-qubit Pauli rotation

Section titled “Exercise 1: Compile a three-qubit Pauli rotation”

Using RP(θ)=e−iθP/2R_P(\theta)=e^{-i\theta P/2}, design a logical circuit for

e−iαX1Y2Z3t.e^{-i\alpha X_1Y_2Z_3t}.

State the angle of the central RZR_Z rotation and the number of CNOTs in a simple parity ladder.

Solution

The desired gate is

RXYZ(2αt).R_{XYZ}(2\alpha t).

Map X1X_1 to Z1Z_1 with H1H_1. Map Y2Y_2 to Z2Z_2 with S2†S_2^\dagger followed by H2H_2. Qubit 3 already has a ZZ factor. A valid sequence, read in execution order, is:

  1. apply H1H_1, then S2†S_2^\dagger and H2H_2;
  2. apply CNOT⁡1→3\operatorname{CNOT}_{1\to3} and CNOT⁡2→3\operatorname{CNOT}_{2\to3};
  3. apply RZ3(2αt)R_{Z_3}(2\alpha t);
  4. reverse the two CNOTs;
  5. apply H2H_2 and S2S_2, then H1H_1.

The parity network contains 2(w−1)=42(w-1)=4 CNOTs for weight w=3w=3. Equivalent trees, targets, and basis-change conventions are possible.

For

HZ=JZ1Z2,HX=h(X1+X2),H_Z=JZ_1Z_2, \qquad H_X=h(X_1+X_2),

derive [HZ,HX][H_Z,H_X] and a first-order error bound after rr steps over time tt.

Solution

Using [Z,X]=2iY[Z,X]=2iY on the affected qubit,

[Z1Z2,X1]=2iY1Z2,[Z_1Z_2,X_1] = 2iY_1Z_2,

and

[Z1Z2,X2]=2iZ1Y2.[Z_1Z_2,X_2] = 2iZ_1Y_2.

Therefore

[HZ,HX]=2iJh(Y1Z2+Z1Y2).[H_Z,H_X] = 2iJh(Y_1Z_2+Z_1Y_2).

The two Pauli strings commute and can simultaneously have the same sign, so the norm of their sum is 22. Hence

∥[HZ,HX]∥=4∣Jh∣.\lVert[H_Z,H_X]\rVert = 4|Jh|.

The two-term first-order bound is

ϵPF≤t22r∥[HZ,HX]∥=2∣Jh∣t2r.\epsilon_{\rm PF} \leq \frac{t^2}{2r} \lVert[H_Z,H_X]\rVert = \frac{2|Jh|t^2}{r}.

The integral commutator bound holds at finite step size; it is not only a truncated series.

Exercise 3: Find the useful number of steps

Section titled “Exercise 3: Find the useful number of steps”

An observable-error model is

ϵ(r)=0.48r2+0.003r.\epsilon(r) = \frac{0.48}{r^2} + 0.003r.

Find the continuous optimum, choose the better neighboring integer, and evaluate the modeled error.

Solution

Here p=2p=2, a=0.48a=0.48, and b=0.003b=0.003. Thus

r⋆=(2(0.48)0.003)1/3=3201/3≃6.84.r_\star = \left( \frac{2(0.48)}{0.003} \right)^{1/3} = 320^{1/3} \simeq 6.84.

Test r=7r=7 and r=6r=6:

ϵ(7)=0.4849+0.021≃0.03080,\epsilon(7) = \frac{0.48}{49}+0.021 \simeq 0.03080,

whereas

ϵ(6)=0.4836+0.018≃0.03133.\epsilon(6) = \frac{0.48}{36}+0.018 \simeq 0.03133.

The modeled optimum is therefore r=7r=7. Since the hardware term is heuristic, the experiment should test nearby values rather than trust the fitted minimum exactly.

Exercise 4: Allocate Pauli-measurement shots

Section titled “Exercise 4: Allocate Pauli-measurement shots”

An observable is

O=0.6P1−0.3P2+0.1P3.O = 0.6P_1 - 0.3P_2 + 0.1P_3.

Assume the three Pauli variances are all bounded by one and terms are measured separately. Allocate N=10,000N=10{,}000 shots to minimize the worst-case variance, and give that variance bound.

Solution

With equal variance bounds, the optimum allocation satisfies nj∝∣cj∣n_j\propto|c_j|. Since

∣0.6∣+∣−0.3∣+∣0.1∣=1,|0.6|+|-0.3|+|0.1|=1,

choose

n1=6000,n2=3000,n3=1000.n_1=6000, \qquad n_2=3000, \qquad n_3=1000.

The worst-case variance is

Var⁡(O^)≤0.626000+0.323000+0.121000=10−4.\begin{aligned} \operatorname{Var}(\widehat O) &\leq \frac{0.6^2}{6000} + \frac{0.3^2}{3000} + \frac{0.1^2}{1000} \\ &= 10^{-4}. \end{aligned}

Thus the worst-case standard deviation is 0.010.01. Known smaller individual variances would change the optimum allocation.

Exercise 5: Convert trace distance into an observable bound

Section titled “Exercise 5: Convert trace distance into an observable bound”

An ideal initial state ρ0\rho_0 and prepared state ρ~0\widetilde\rho_0 have trace distance D=0.015D=0.015. Both undergo the same ideal unitary evolution. Bound the difference in an observable OO with ∥O∥∞=3\lVert O\rVert_\infty=3.

Solution

Unitary evolution preserves trace distance. Hölder duality gives

∣Δ⟨O⟩∣≤∥O∥∞∥ρt−ρ~t∥1.|\Delta\langle O\rangle| \leq \lVert O\rVert_\infty \lVert\rho_t-\widetilde\rho_t\rVert_1.

Since the trace norm is 2D2D,

∣Δ⟨O⟩∣≤2(3)(0.015)=0.09.|\Delta\langle O\rangle| \leq 2(3)(0.015) = 0.09.

This worst-case bound may be loose for the declared state and observable, but it is valid without additional structure.

Exercise 6: A finite-step qDRIFT guarantee

Section titled “Exercise 6: A finite-step qDRIFT guarantee”

For λ=4\lambda=4, t=3t=3, and target half-diamond distance ϵ=0.01\epsilon=0.01, the leading estimate is Ns=2λ2t2/ϵ=28,800N_s=2\lambda^2t^2/\epsilon=28{,}800. Does Campbell’s finite-step bound certify that count? Find the smallest integer certified by this bound.

Solution

At Ns=28,800N_s=28{,}800, the bound is 0.01e24/28800≃0.010008340.01e^{24/28800}\simeq0.01000834, slightly above the target. The function 288e24/Ns/Ns288e^{24/N_s}/N_s decreases with NsN_s. Checking neighboring integers gives

28828823e24/28823>0.01,28828824e24/28824<0.01.\frac{288}{28823}e^{24/28823}>0.01, \qquad \frac{288}{28824}e^{24/28824}<0.01.

Thus 28,82428{,}824 sampled exponentials suffice by this particular bound. These are logical exponentials, before parity networks, routing, synthesis, preparation, and readout. A bound of 0.010.01 on half-diamond distance bounds full diamond norm by 0.020.02; the corresponding worst-case expectation error for a norm-one observable is at most 0.020.02.

Exercise 7: Controlled time in energy estimation

Section titled “Exercise 7: Controlled time in energy estimation”

Standard phase estimation uses controlled powers U2jU^{2^j} for j=0,…,m−1j=0,\ldots,m-1, where U=e−iHτU=e^{-iH\tau}. If each power is implemented by evolution for time 2jτ2^j\tau, find the total controlled evolution time. Explain why calling each power “one query” can be misleading.

Solution

The total controlled evolution time is the geometric sum

Tctrl=∑j=0m−12jτ=(2m−1)τ.T_{\rm ctrl} = \sum_{j=0}^{m-1}2^j\tau = (2^m-1)\tau.

The phase-bin width scales as 2−m2^{-m}, but the coherent interrogation time scales as 2m2^m. Treating a powered-unitary oracle as unit cost hides this physical or logical evolution cost unless the problem supplies a special fast implementation of the powers.

Exercise 8: An echo that hides the wrong Hamiltonian

Section titled “Exercise 8: An echo that hides the wrong Hamiltonian”

The target is U(t)=e−iωtZ/2U(t)=e^{-i\omega tZ/2}, but a device implements U~(t)=e−i(ω+δ)tZ/2\widetilde U(t)=e^{-i(\omega+\delta)tZ/2} and its exact inverse. Starting from ∣+⟩|+\rangle, compare the forward expectation of XX with the return probability after the forward–inverse pair.

Solution

The target and implemented forward expectations are cos⁡ωt\cos\omega t and cos⁡[(ω+δ)t]\cos[(\omega+\delta)t], respectively. They can differ substantially. Nevertheless, U~†U~=I\widetilde U^\dagger\widetilde U=I, so the return probability to ∣+⟩|+\rangle is exactly one for every δ\delta. The echo tests reversibility of the implemented dynamics, not agreement of its generator with the target. A phase-sensitive forward measurement or an independently calibrated frequency exposes this error.

  • D. W. Berry, G. Ahokas, R. Cleve, and B. C. Sanders, “Efficient quantum algorithms for simulating sparse Hamiltonians,” Communications in Mathematical Physics 270, 359–371 (2007), doi:10.1007/s00220-006-0150-x.
  • D. W. Berry, A. M. Childs, R. Cleve, R. Kothari, and R. D. Somma, “Simulating Hamiltonian dynamics with a truncated Taylor series,” Physical Review Letters 114, 090502 (2015), doi:10.1103/PhysRevLett.114.090502.
  • Z. Cai et al., “Quantum error mitigation,” Reviews of Modern Physics 95, 045005 (2023), doi:10.1103/RevModPhys.95.045005.
  • E. Campbell, “Random compiler for fast Hamiltonian simulation,” Physical Review Letters 123, 070503 (2019), doi:10.1103/PhysRevLett.123.070503.
  • A. M. Childs, D. Maslov, Y. Nam, N. J. Ross, and Y. Su, “Toward the first quantum simulation with quantum speedup,” Proceedings of the National Academy of Sciences 115, 9456–9461 (2018), doi:10.1073/pnas.1801723115.
  • A. M. Childs, Y. Su, M. C. Tran, N. Wiebe, and S. Zhu, “Theory of Trotter error with commutator scaling,” Physical Review X 11, 011020 (2021), doi:10.1103/PhysRevX.11.011020.
  • H.-Y. Huang, R. Kueng, and J. Preskill, “Predicting many properties of a quantum system from very few measurements,” Nature Physics 16, 1050–1057 (2020), doi:10.1038/s41567-020-0932-7.
  • S. Lloyd, “Universal quantum simulators,” Science 273, 1073–1078 (1996), doi:10.1126/science.273.5278.1073.
  • G. H. Low and I. L. Chuang, “Hamiltonian simulation by qubitization,” Quantum 3, 163 (2019), doi:10.22331/q-2019-07-12-163.
  • G. H. Low and I. L. Chuang, “Optimal Hamiltonian simulation by quantum signal processing,” Physical Review Letters 118, 010501 (2017), doi:10.1103/PhysRevLett.118.010501.
  • M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information, 10th anniversary ed., Cambridge University Press (2010), doi:10.1017/CBO9780511976667.