Skip to content
QFT.org

Search QFT.org

Enter a word or phrase.

    You can also browse the main navigation and chapter contents.

    Errors and Continuum Limits in Quantum Simulation

    A quantum simulation can converge beautifully to the wrong answer. Smaller time steps do not repair a miscalibrated mass. More measurements do not remove readout bias. Exact Gauss's law does not establish that the encoded Hamiltonian has the desired continuum limit.

    An error budget starts with one observable, one state and one target. We build such a budget for the chapter's four-site Schwinger calculation, then use the separate scalar preparation example to expose local-cutoff errors. The resulting numbers describe these finite models. Spatial and volume limits remain additional scientific work.

    Preparation: Field encodings, state preparation, digital evolution and measurement protocols. The distinction between a regulated model and its continuum target is also developed in continuum and volume extrapolation.

    First fix the quantity being estimated

    Use the open four-site Schwinger Hamiltonian with a=g=1a=g=1, lattice mass mlat=0.25m_{\mathrm{lat}}=0.25 and zero exterior flux. In the zero-charge sector,

    qi=ni−1−(−1)i2,ℓi=∑j=0iqj,∑i=03ni=2.q_i=n_i-\frac{1-(-1)^i}{2}, \qquad \ell_i=\sum_{j=0}^{i}q_j, \qquad \sum_{i=0}^3n_i=2.

    The reduced Hamiltonian is

    Htar=12∑i=02(χi†χi+1+h.c.)+0.25∑i=03(−1)ini+12∑i=02ℓi2.H_{\mathrm{tar}} =\frac12\sum_{i=0}^{2} (\chi_i^\dagger\chi_{i+1}+\mathrm{h.c.}) +0.25\sum_{i=0}^3(-1)^i n_i +\frac12\sum_{i=0}^{2}\ell_i^2.

    The positive hopping uses the chapter's staggered phase choice. The reduced matter basis contains six physical states, embedded in four matter qubits with ni=(1−Zi)/2n_i=(1-Z_i)/2. Restoring the links by the cumulative formula gives every allowed state of this particular finite, neutral chain. It does not turn the chain into the infinite-volume continuum Schwinger model.

    Let ∣Ω⟩|\Omega\rangle be its normalized finite-system vacuum. The explicit preparation circuit in the digital example prepares this state, and a Z0Z_0 gate produces the normalized probe

    ∣ψ0⟩=Z0∣Ω⟩.|\psi_0\rangle=Z_0|\Omega\rangle.

    Our target is the one-time expectation

    μtar=⟨ψ0∣eiHtarTZ0e−iHtarT∣ψ0⟩,T=2.\mu_{\mathrm{tar}} =\langle\psi_0|e^{iH_{\mathrm{tar}}T}Z_0 e^{-iH_{\mathrm{tar}}T}|\psi_0\rangle, \qquad T=2.

    Its exact finite-matrix value is −0.383604560886-0.383604560886. Since Z0Z_0 has outcomes ±1\pm1, its expectation, noise transformation and shot variance have unambiguous normalizations.

    This is not the two-time vacuum correlator from the measurement article. In particular, a trace-preserving channel applied only to the system after a completed ancilla overlap circuit leaves the ancilla marginal unchanged. Calling such a channel “correlator noise” without specifying a different insertion point would be incorrect. Here the final system bit-flip channel really does act before the measured Z0Z_0 readout.

    A signed budget is an exact comparison chain

    Define successive mean values using the same initial probe:

    1. μtar\mu_{\mathrm{tar}}: exact target evolution.
    2. μPF\mu_{\mathrm{PF}}: the specified symmetric product formula, target mass and step h=0.05h=0.05.
    3. μcal\mu_{\mathrm{cal}}: the same circuit with mass 0.300.30.
    4. μnoise\mu_{\mathrm{noise}}: final independent bit flips with probability p=0.02p=0.02 on each matter qubit.

    The total mean bias is the identity

    μnoise−μtar=(μPF−μtar)+(μcal−μPF)+(μnoise−μcal).\mu_{\mathrm{noise}}-\mu_{\mathrm{tar}} =(\mu_{\mathrm{PF}}-\mu_{\mathrm{tar}}) +(\mu_{\mathrm{cal}}-\mu_{\mathrm{PF}}) +(\mu_{\mathrm{noise}}-\mu_{\mathrm{cal}}).

    No independence assumption is needed. The order is part of the definition: changing the mass changes the state on which the noise acts, and changing the time-step circuit changes the calibration response. Differences measured separately from the ideal baseline need not add to the combined effect.

    The retained calculation gives:

    StageMean Z0Z_0Change from preceding stage
    Exact target−0.383604561-0.383604561—
    Product formula−0.383809581-0.383809581−0.000205020-0.000205020
    Mass offset +0.05+0.05−0.342631055-0.342631055+0.041178526+0.041178526
    Final bit flips−0.328925812-0.328925812+0.013705242+0.013705242

    The total mean bias is +0.054678749+0.054678749. The ideal preparation circuit introduces no preparation approximation in this comparison; that statement refers to the simulated circuit, not an executed device. Classical diagonalization of the six-state Hamiltonian provides the vacuum used to construct the circuit.

    The signed terms should not be combined in quadrature. They are deterministic shifts, and the small negative time-step bias partly cancels the positive shifts. A conservative bound can add their absolute bounds. A quadrature rule applies to independent, zero-mean random errors; correlated random errors require the covariance terms,

    Var⁡(∑jXj)=∑jVar⁡(Xj)+2∑i<jCov⁡(Xi,Xj).\operatorname{Var}\left(\sum_j X_j\right) =\sum_j\operatorname{Var}(X_j) +2\sum_{i<j}\operatorname{Cov}(X_i,X_j).

    Repeating a biased computation estimates its biased mean more precisely.

    Vary one control without changing the target

    With the target mass and no noise, the product-formula scan at T=2T=2 is:

    Step hhNumber of stepsMean Z0Z_0Bias from exact evolution
    0.20.21010−0.386882082-0.386882082−0.003277521-0.003277521
    0.10.12020−0.384424504-0.384424504−0.000819943-0.000819943
    0.050.054040−0.383809581-0.383809581−0.000205020-0.000205020
    0.0250.0258080−0.383655818-0.383655818−0.000051257-0.000051257

    Halving hh reduces this error by approximately four, consistent with the second-order formula at fixed total time. This is a check of the actual circuit and observable. It is not evidence that every error in the experiment scales as h2h^2.

    The mass-offset control is tested separately using exact evolution under mlat=0.30m_{\mathrm{lat}}=0.30, while retaining ∣ψ0⟩|\psi_0\rangle from the target mass. It gives −0.342375669388-0.342375669388, a bias +0.041228891498+0.041228891498. That differs slightly from the calibration increment in the combined table because the latter uses finite time steps.

    Both masses preserve charge, and both map physical states to physical states. A Gauss-law check cannot detect this calibration error. The analog cell supplies an independent version of the same lesson: a logical detuning can commute with every constraint while suppressing the desired transition.

    Noise, postselection and the number of attempts

    The declared noise model is

    Ep=∘i=03Ep,i,Ep,i(ρ)=(1−p)ρ+pXiρXi.\mathcal E_p=\mathop{\circ}_{i=0}^{3}\mathcal E_{p,i}, \qquad \mathcal E_{p,i}(\rho)=(1-p)\rho+pX_i\rho X_i.

    It is a synthetic final channel, not a calibrated model of any processor. Since X0Z0X0=−Z0X_0Z_0X_0=-Z_0 and the other flips commute with Z0Z_0,

    μnoise=(1−2p)μcal.\mu_{\mathrm{noise}}=(1-2p)\mu_{\mathrm{cal}}.

    The same channel could model a classical symmetric bit error for this particular diagonal readout. Counting it once as a device error and again as a readout error would double-count the modeled effect.

    Charge postselection retains strings with two occupied sites. Write its acceptance as A(p)A(p). For each initial half-filled string, the accepted errors flip the same number of occupied and empty sites. Therefore

    A(p)=(1−p)4+4p2(1−p)2+p4.A(p)=(1-p)^4+4p^2(1-p)^2+p^4.

    This acceptance is independent of the particular state within the half-filled sector. The selected Z0Z_0 mean is

    μsel=(1−p)4−p4A(p) μcal.\mu_{\mathrm{sel}} =\frac{(1-p)^4-p^4}{A(p)}\,\mu_{\mathrm{cal}}.

    One can obtain the numerator by counting accepted flips of bit 0: the two-flip contributions cancel between its opposite signs. Some accepted errors still change the physical state. Postselection restores the charge sector, not the target dynamics.

    At p=0.02p=0.02, A=0.92390496A=0.92390496 and μsel=−0.342061071400\mu_{\mathrm{sel}}=-0.342061071400. The squared total charge before selection is 0.07840.0784 and vanishes afterward, yet the selected mean still differs from the target by +0.041543489486+0.041543489486. The coherent mass error survives.

    For MM independent unselected ±1\pm1 measurements, the sample mean has

    SE⁡(μ^)=1−μnoise2M.\operatorname{SE}(\widehat\mu) =\sqrt{\frac{1-\mu_{\mathrm{noise}}^2}{M}}.

    For MM attempted shots followed by selection, the accepted count is random: K∼Binomial⁡(M,A)K\sim\operatorname{Binomial}(M,A). Conditional on K>0K>0,

    Var⁡(μ^sel∣K>0)=(1−μsel2)E[1K | K>0].\operatorname{Var}(\widehat\mu_{\mathrm{sel}}\mid K>0) =(1-\mu_{\mathrm{sel}}^2) \mathbb E\left[\frac1K\,\middle|\,K>0\right].

    Replacing this expectation by 1/(MA)1/(MA) is a large-count approximation, not the exact formula. The selected results retain the finite binomial sum and the probability of no accepted shots.

    Attempted shots MMUnselected SESelected SE, conditional on K>0K>0
    1,0001{,}0000.02986320.02986320.03091600.0309160
    10,00010{,}0000.009443560.009443560.009776130.00977613
    100,000100{,}0000.002986320.002986320.003091470.00309147

    These are exact-distribution sampling predictions, not random data or realized confidence intervals. For M=1,000M=1{,}000, log⁡Pr⁡(K=0)≃−2575.77\log\Pr(K=0)\simeq-2575.77; the probability is extremely small, not mathematically zero. At 10,00010{,}000 shots the mean bias remains about 0.0550.055 before selection, much larger than its approximately 0.00940.0094 statistical standard error.

    The cost also includes repeated preparation and evolution. Obtaining a prescribed number of accepted measurements takes 1/A1/A attempts per accepted shot on average. Measurement settings, calibration and any source-state postselection introduce further costs. A count of evolution gates alone does not describe the cost of an independent field-theory estimate.

    Preparation and local cutoff are separate in the scalar example

    The chapter's scalar calculation uses a different target: two open sites, a=1a=1, m2=0.25m^2=0.25, λ=0.2\lambda=0.2 and oscillator reference frequency one. With qj=a ϕjq_j=\sqrt a\,\phi_j, its Hamiltonian is

    H=∑j=01(pj22+m2qj22+λqj424a)+(q1−q0)22a2.H=\sum_{j=0}^{1} \left(\frac{p_j^2}{2}+\frac{m^2q_j^2}{2} +\frac{\lambda q_j^4}{24a}\right) +\frac{(q_1-q_0)^2}{2a^2}.

    The finite model projects each local oscillator onto dd levels. Powers such as q4q^4 are projected as operators, not reconstructed by taking powers of the truncated qq matrix. Its preparation ramp and numerical integration checks are specified in the state-preparation article.

    At fixed d=4d=4, the exact vacuum has C01=⟨q0q1⟩=0.2823405504C_{01}=\langle q_0q_1\rangle=0.2823405504 and X2=⟨q02+q12⟩/2=0.6113680034X_2=\langle q_0^2+q_1^2\rangle/2=0.6113680034. The smooth-ramp results are:

    DurationInfidelityEnergy excessError in C01C_{01}Error in X2X_2
    16165.7953×10−55.7953\times10^{-5}7.1168×10−57.1168\times10^{-5}+0.00880556+0.00880556+0.00971164+0.00971164
    64641.3260×10−71.3260\times10^{-7}1.7483×10−71.7483\times10^{-7}+0.000475512+0.000475512+0.000390519+0.000390519

    Small infidelity does not make the error in every observable equally small. For a normalized pure state and a pure target, the trace distance is D=1−FD=\sqrt{1-F}, with FF the squared overlap. For a bounded observable,

    ∣⟨O⟩−⟨O⟩tar∣≤2∥O∥D.|\langle O\rangle-\langle O\rangle_{\mathrm{tar}}| \leq2\lVert O\rVert D.

    At d=4d=4, ∥q0q1∥=2.7247448714\lVert q_0q_1\rVert=2.7247448714. The T=16T=16 fidelity thus bounds its error by 0.041490.04149, consistently above the actual 0.008810.00881. This norm belongs to the finite oscillator space; the unbounded continuum field operator does not inherit it.

    Now change dd while comparing exact finite-dd vacua, so preparation error is absent:

    Local levels ddC01C_{01}X2X_2
    440.28234055040.28234055040.61136800340.6113680034
    12120.28458188410.28458188410.61352000810.6135200081
    16160.28458188650.28458188650.61352001020.6135200102

    The d=16d=16 values are useful finite-cutoff references, not exact continuum values. Increasing the preparation duration at d=4d=4 does not remove its approximately −0.00224-0.00224 offset in C01C_{01} relative to this reference. At duration 64 the positive preparation error partially cancels that negative offset. Agreement produced by such cancellation should not be confused with independent convergence.

    These scalar errors are not added to the Schwinger numbers. They illustrate a different regulator and preparation problem.

    Bounds need matched spaces and observables

    For density matrices on one finite encoded space, trace-norm duality gives

    ∣Tr⁡[O(ρ−σ)]∣≤∥O∥∥ρ−σ∥1=2∥O∥D(ρ,σ).|\operatorname{Tr}[O(\rho-\sigma)]| \leq\lVert O\rVert\lVert\rho-\sigma\rVert_1 =2\lVert O\rVert D(\rho,\sigma).

    For a fixed Hermitian Hamiltonian error ΔH\Delta H, the Duhamel identity is

    UH+ΔH(T)−UH(T)=−i∫0TUH+ΔH(T−t) ΔH UH(t) dt.U_{H+\Delta H}(T)-U_H(T) =-i\int_0^T U_{H+\Delta H}(T-t)\,\Delta H\,U_H(t)\,dt.

    Unitary invariance of the norm implies

    ∥UH+ΔH(T)−UH(T)∥≤T∥ΔH∥.\lVert U_{H+\Delta H}(T)-U_H(T)\rVert \leq T\lVert\Delta H\rVert.

    For the same initial state, an expectation error is consequently bounded by 2∥O∥T∥ΔH∥2\lVert O\rVert T\lVert\Delta H\rVert. These inequalities may be loose, but their assumptions are clear. Comparing different Hilbert cutoffs requires a specified embedding and matched operators before applying them.

    Trace-preserving noise channels can likewise be compared by a telescoping sequence and trace-norm contractivity. Normalized postselection is conditioning, not a trace-preserving channel, so that contraction claim does not apply to it. A fixed error per gate can accumulate as the gate count grows; a fixed decoherence rate per unit physical time is a different assumption. Therefore decreasing a product-formula step need not improve a noisy answer monotonically. A useful numerical comparison specifies the noise model rather than mixing these two scalings.

    The Schwinger calculation's signed time-step, calibration and final-noise biases are compared with predicted shot uncertainty; a separate scalar panel compares preparation error with its local-cutoff offset.

    Two distinct finite models. The Schwinger mean biases refer to Z0Z_0 at T=2T=2 along the stated comparison chain; the shot width is a sampling prediction. The scalar panel uses C01C_{01} at d=4d=4 and shows its offset from the finite d=16d=16 reference separately. No combined continuum error is assigned.

    What remains before a continuum answer

    The finite encoding, circuit and statistical checks answer different questions from spatial refinement. For a free periodic scalar with m>0m>0, consider the elementary lattice dispersion

    ωa(p)2=m2+4a2sin⁡2(pa2).\omega_a(p)^2=m^2+\frac4{a^2}\sin^2\left(\frac{pa}{2}\right).

    At fixed physical momentum pp, mass mm and circumference LL, refine a=L/Na=L/N. Then

    ωa(p)=m2+p2−a2p424m2+p2+O(a4).\omega_a(p) =\sqrt{m^2+p^2} -\frac{a^2p^4}{24\sqrt{m^2+p^2}} +O(a^4).

    The zero-mode gap is exactly mm for every spacing. A perfectly reproduced zero-mode gap alone would miss the dispersion error. Conversely, taking a→0a\to0 at fixed NN shrinks LL; a fixed nonzero mode number then has increasing physical momentum and is not the comparison just derived.

    For interacting theories one must additionally specify renormalized matching conditions, retune bare parameters as needed and match the measured operators. Volume effects require their own comparison at controlled spacing and cutoff. Increasing an integer rotor cutoff and changing a fixed spin quantum-link representation are also not interchangeable operations.

    Jordan, Lee and Preskill explicitly separate field truncation, spatial discretization, preparation and measurement in their algorithm, then analyze spatial artifacts using effective field theory; see PDF pp. 5–6, 9–11 and Appendix A.4. That framework does not supply numerical continuum uncertainties for our tiny benchmarks.

    QuestionWhat the chapter's examples establish
    Finite encodingEquality to the specified finite matrices, with explicit unused states where present
    Field or flux rangeSelected local-cutoff controls; the four-site neutral Schwinger sector is represented exactly
    PreparationActual ideal finite-system protocols, with separate scalar duration checks
    EvolutionProduct-formula refinement against exact finite evolution
    Calibration and noiseResponses to the explicitly declared synthetic imperfections
    MeasurementExact means, finite-window effects and normalized sampling predictions
    Spatial and volume limitsNot numerically determined by these examples
    Practical quantum advantageNot established by these classically soluble tests

    Asymptotic complexity describes how a specified algorithm scales under its assumptions. An end-to-end practical comparison also needs preparation, error correction or mitigation if used, measurement repetitions, accepted fractions and a fair classical baseline at the same precision. No device resource estimate is manufactured from the small matrices here.

    Summary

    An interpretable error budget preserves the target, records signed finite-model differences and separates bias from statistical fluctuations. The examples show why time-step convergence, high fidelity and gauge invariance are each useful but insufficient diagnostics. Continuum matching, volume control and practical resource comparison remain distinct tasks.

    Exercises

    1. From a gap to an observable and a confidence statement

    Let a finite Hamiltonian have nondegenerate ground state ∣0⟩|0\rangle, energy E0E_0 and a known lower bound Δ>0\Delta>0 on the excitation gap in the sector containing a normalized prepared state ∣ψ⟩|\psi\rangle. Prove 1−F≤(⟨H⟩−E0)/Δ1-F\leq(\langle H\rangle-E_0)/\Delta, where F=∣⟨0∣ψ⟩∣2F=|\langle0|\psi\rangle|^2. Deduce a bounded-observable error. Finally, if an estimator averages MM independent outcomes in [−1,1][-1,1] and its mean has deterministic bias bounded by bb, give a confidence bound relative to the target.

    Solution

    Expand ∣ψ⟩=c0∣0⟩+∑n>0cn∣n⟩|\psi\rangle=c_0|0\rangle+\sum_{n>0}c_n|n\rangle. In the specified sector, En−E0≥ΔE_n-E_0\geq\Delta, so

    ⟨H⟩−E0=∑n>0∣cn∣2(En−E0)≥Δ(1−∣c0∣2).\langle H\rangle-E_0 =\sum_{n>0}|c_n|^2(E_n-E_0) \geq\Delta(1-|c_0|^2).

    Thus 1−F≤(⟨H⟩−E0)/Δ1-F\leq(\langle H\rangle-E_0)/\Delta. The difference of the two pure-state density matrices has nonzero eigenvalues ±1−F\pm\sqrt{1-F} on their two-dimensional span. Its trace norm is 21−F2\sqrt{1-F}, giving

    ∣⟨O⟩ψ−⟨O⟩0∣≤2∥O∥min⁡(1,⟨H⟩−E0Δ).|\langle O\rangle_\psi-\langle O\rangle_0| \leq2\lVert O\rVert \min\left(1,\sqrt{\frac{\langle H\rangle-E_0}{\Delta}}\right).

    The bound requires an actual gap lower bound and sector membership. A set of sampled gaps along a path is not by itself a proof that the gap stays open between samples. A separate analytic bound, such as a suitable finite-matrix Lipschitz estimate, is needed to control that interval.

    For the sampled observable, Hoeffding's inequality gives

    Pr⁡(∣μ^−Eμ^∣>r)≤2e−Mr2/2.\Pr\left(|\widehat\mu-\mathbb E\widehat\mu|>r\right) \leq2e^{-Mr^2/2}.

    Therefore, with probability at least 1−α1-\alpha,

    ∣μ^−μtar∣≤b+2log⁡(2/α)M.|\widehat\mu-\mu_{\mathrm{tar}}| \leq b+\sqrt{\frac{2\log(2/\alpha)}{M}}.

    The bias bound adds to the confidence radius. It is not a standard deviation to be combined in quadrature. For conditional postselected data the number of accepted outcomes is random; apply the appropriate conditional statement or account for that randomness explicitly.

    2. A correct zero-mode gap and a wrong continuum test

    Derive the leading spacing correction to ωa(p)\omega_a(p) above. For a periodic chain, compare refinement at fixed LL and mode number kk with a→0a\to0 at fixed NN and k≠0k\ne0. Why does exact agreement of the zero-mode gap establish neither dispersion accuracy nor infinite volume?

    Solution

    The small-argument expansion gives

    4a2sin⁡2(pa2)=p2−a2p412+O(a4p6).\frac4{a^2}\sin^2\left(\frac{pa}{2}\right) =p^2-\frac{a^2p^4}{12}+O(a^4p^6).

    Expanding the square root around ω(p)=m2+p2\omega(p)=\sqrt{m^2+p^2} yields ωa(p)−ω(p)=−a2p4/[24ω(p)]+O(a4)\omega_a(p)-\omega(p)=-a^2p^4/[24\omega(p)]+O(a^4) at fixed p,mp,m. At fixed LL, p=2πk/Lp=2\pi k/L is fixed and N=L/aN=L/a increases, so this is a genuine spatial refinement of that finite-volume mode.

    At fixed NN, however, p=2πk/(Na)p=2\pi k/(Na) grows as a−1a^{-1} and pa=2πk/Npa=2\pi k/N never becomes small. For a nonzero mode in the interior of the Brillouin zone,

    lim⁡a→0ωa(2πk/(Na))m2+[2πk/(Na)]2=∣sin⁡(πk/N)∣π∣k∣/N,\lim_{a\to0} \frac{\omega_a(2\pi k/(Na))} {\sqrt{m^2+[2\pi k/(Na)]^2}} =\frac{|\sin(\pi k/N)|}{\pi|k|/N},

    which is generally below one. The fractional discrepancy survives even though the spacing tends to zero, because the momentum and volume changed simultaneously.

    At k=0k=0, both dispersions give mm for all aa and NN. That special equality says nothing about nonzero momenta, finite-volume correlation functions or interacting finite-volume shifts. Taking N→∞N\to\infty at fixed LL still leaves a finite circumference; the subsequent volume question is separate.

    References

    • S. P. Jordan, K. S. M. Lee and J. Preskill, “Quantum Algorithms for Quantum Field Theories,” Science 336, 1130–1133 (2012), doi:10.1126/science.1217069, arXiv:1111.3633v2 (PDF with supplementary material). PDF pp. 5–6 distinguish field representation and simulation stages; pp. 9–11 discuss effective-field-theory spatial artifacts; Appendix A.4, pp. 22–24, treats field truncation and discretization. The finite-model budgets here are separate calculations, not reproductions of its continuum scattering algorithm or asymptotic performance claim.

    Scrollable formula. Use Left and Right arrow keys to reveal hidden content.

    Scrollable table. Use Left and Right arrow keys to reveal hidden columns.

    Scrollable figure. Use Left and Right arrow keys to reveal hidden content.