Skip to content
QFT.org

Search QFT.org

Enter a word or phrase.

    You can also browse the main navigation and chapter contents.

    Digital Real-Time Evolution

    How does a sequence of qubit gates approximate a field theory's real-time evolution? The first step is to specify a finite Hamiltonian. The second is to compile an approximation to its unitary evolution. Errors in the field regulator, the gate approximation and a noisy implementation then have distinct meanings.

    We will construct an actual four-qubit Schwinger circuit, prepare a physical probe state, and compute a time-dependent correlator. The finite Hamiltonian can also be exponentiated directly, so every gate approximation has a precise comparison. This is a small classical circuit simulation, not a quantum-advantage or hardware-performance result.

    Preparation: Gauge encoding and constraints, Pauli rotations and matrix exponentials. Tensor time evolution treats compression errors in a different algorithm.

    The finite Hamiltonian and its Pauli terms

    Take four staggered matter sites with a=g=1a=g=1, mlat=1/4m_{\mathrm{lat}}=1/4 and zero exterior flux. Sites start at zero, ni=(1−Zi)/2n_i=(1-Z_i)/2, bi=(1−(−1)i)/2b_i=(1-(-1)^i)/2, and

    ℓi=∑j=0i(nj−bj),Ei=−gℓi.\ell_i=\sum_{j=0}^{i}(n_j-b_j), \qquad E_i=-g\ell_i.

    Gauss elimination determines the internal links. The physical register sector has

    Q=∑i=03ni−2=0.Q=\sum_{i=0}^{3}n_i-2=0.

    It contains six states inside the sixteen-state qubit register. Our positive-hopping convention gives

    H=D+Te+To,Ti=XiXi+1+YiYi+14,H=D+T_{\mathrm e}+T_{\mathrm o}, \qquad T_i=\frac{X_iX_{i+1}+Y_iY_{i+1}}4, Te=T0+T2,To=T1.T_{\mathrm e}=T_0+T_2, \qquad T_{\mathrm o}=T_1.

    Expanding the mass and electric prefix squares yields

    D=I−58Z0−18Z1−38Z2+18Z3+12Z0Z1+14Z0Z2+14Z1Z2.\begin{aligned} D={}&I-\frac58Z_0-\frac18Z_1-\frac38Z_2+\frac18Z_3\\ &+\frac12Z_0Z_1+\frac14Z_0Z_2+\frac14Z_1Z_2. \end{aligned}

    For example, the electric energy is 12∑i=02ℓi2\tfrac12\sum_{i=0}^{2}\ell_i^2, so the last matter site does not occur in an internal-link prefix. This explains the asymmetric-looking coefficients without introducing an asymmetric hopping interaction.

    The six-state block agrees entry by entry with a direct occupation-basis construction of the Schwinger Hamiltonian. The remaining register states form other charge sectors of the declared extension; they do not satisfy the chosen right boundary condition. Open-chain elimination and its long-range spin interactions are derived in Muschik et al., Sec. 2.1, Eqs. (1)–(4), PDF pp. 6–7.

    From a Pauli exponential to elementary gates

    Define a Pauli-string rotation by

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

    Thus e−iδcP=RP(2δc)e^{-i\delta cP}=R_P(2\delta c). For a product of ZZ operators, a CNOT parity ladder computes the product's eigenvalue onto one target qubit. Apply Rz(θ)R_z(\theta) there and undo the ladder. To handle XX and YY, first change the local basis:

    HXH=Z,(HS†)Y(SH)=Z,S=diag⁡(1,i).HXH=Z, \qquad (HS^\dagger)Y(SH)=Z, \qquad S=\operatorname{diag}(1,i).

    The inverse basis changes complete the circuit. In state-evolution order, apply S†S^\dagger then HH to convert a YY measurement axis to ZZ. Confusing the matrix order here changes signs.

    On one hopping bond, XXXX and YYYY commute, so

    e−iδTi=RXiXi+1(δ/2)RYiYi+1(δ/2).e^{-i\delta T_i} =R_{X_iX_{i+1}}(\delta/2) R_{Y_iY_{i+1}}(\delta/2).

    Their sum annihilates ∣00⟩\vert00\rangle and ∣11⟩\vert11\rangle, and exchanges ∣01⟩\vert01\rangle with ∣10⟩\vert10\rangle. The equal-angle pair preserves charge exactly. Either Pauli rotation alone can create a pair from ∣00⟩\vert00\rangle or annihilate one from ∣11⟩\vert11\rangle. Constraint preservation therefore refers to the completed exchange block, not every constituent gate.

    All terms in DD commute. Its exponential is consequently an exact product of ZZ and ZZZZ rotations, together with the scalar e−iδe^{-i\delta} from its identity term. That scalar is ordinary global-phase bookkeeping in unconditioned evolution. It becomes observable relative to an ancilla branch when the evolution is controlled.

    A symmetric time step

    Use the ordered symmetric product

    Sδ=e−iδD/2e−iδTe/2e−iδToe−iδTe/2e−iδD/2.S_\delta= e^{-i\delta D/2} e^{-i\delta T_{\mathrm e}/2} e^{-i\delta T_{\mathrm o}} e^{-i\delta T_{\mathrm e}/2} e^{-i\delta D/2}.

    The rightmost factor acts first; because the sequence is symmetric, reading it in chronological order gives the same list. Each even layer contains the two disjoint bonds 00 and 22.

    For this finite bounded Hamiltonian,

    Sδ=e−iδH+O(δ3).S_\delta=e^{-i\delta H}+O(\delta^3).

    At a fixed total time t=rδt=r\delta, the accumulated operator error is O(tδ2)O(t\delta^2). The coefficient depends on commutators and on the chosen finite regulator. This is not a uniform bound as the number of sites or a field cutoff tends to infinity. Symmetric product formulas and ordering-dependent symmetry errors are discussed in Nguyen et al., Sec. II, Eqs. (7)–(10), and Sec. II.C (PDF).

    The explicit, unoptimized compilation used here has the following counts per step:

    EvolutionCNOTRzR_zHHSS or S†S^\dagger
    Four-qubit step3232242440402020
    Ancilla-controlled step112112505080804040

    These are gate counts for the stated construction, not physical circuit depths or fault-tolerant resource estimates. Adjacent layers can sometimes be merged. Connectivity, native entangling gates and routing can change an implementation's cost. No fictitious “global-phase gate” is counted in the first row.

    Preparing the probe by a finite circuit

    The example uses the exact finite-model ground state ∣Ω⟩\vert\Omega\rangle and the unitary probe

    ∣ϕ⟩=Z0∣Ω⟩.\vert\phi\rangle=Z_0\vert\Omega\rangle.

    Here we can diagonalize the six-state Hamiltonian classically. Its ground energy is

    E0=−1.03773886718.E_0=-1.03773886718.

    To make preparation concrete, connect the six occupation configurations by adjacent exchanges. Choose a spanning tree rooted at the staggered configuration ∣0101⟩\vert0101\rangle, obtained from the all-zero register by two XX gates. In the integer representation, site ii is bit ii, so this root is integer 1010.

    A two-level rotation on an edge with parent pp and child cc is generated by

    Gpc=i∣c⟩⟨p∣−i∣p⟩⟨c∣.G_{pc}=i\vert c\rangle\langle p\vert-i\vert p\rangle\langle c\vert.

    It maps amplitudes (x,y)(x,y) to (xcos⁡θ−ysin⁡θ, xsin⁡θ+ycos⁡θ)(x\cos\theta-y\sin\theta,\,x\sin\theta+y\cos\theta). Eliminate a leaf of the known real ground vector with θ=atan2⁡(−y,x)\theta=\operatorname{atan2}(-y,x), repeat toward the root, and reverse the inverses to prepare the state. The resulting preparation rotations are:

    Parent integerChild integerExchange bondAngle
    101099000.349255940.34925594
    1010121211−0.29551945-0.29551945
    10106622−0.35891313-0.35891313
    9955222.745795692.74579569
    553311−0.19453411-0.19453411

    The actual circuit uses the unrounded angles retained in the companion output.

    These are genuine register operations. On an edge at sites i,i+1i,i+1, multiply the exchange generator (YiXi+1−XiYi+1)/2(Y_iX_{i+1}-X_iY_{i+1})/2 by projectors fixing the two spectator occupations, and choose its sign so that Gpc∣p⟩=i∣c⟩G_{pc}\vert p\rangle=i\vert c\rangle. Each spectator projector is (I+(−1)njZj)/2(I+(-1)^{n_j}Z_j)/2. Expansion gives eight mutually commuting Pauli strings, so each two-level rotation is exactly eight Pauli rotations.

    The five exchanges therefore use forty Pauli rotations. The compiled preparation agrees with the ground vector within 1.6×10−141.6\times10^{-14}. This construction supplies a known small state; obtaining its angles from exact diagonalization is not an efficient method for finding an unknown many-body vacuum.

    The intermediate Pauli rotations reach ⟨Q2⟩≃0.0339\langle Q^2\rangle\simeq0.0339 during preparation, although every completed exchange returns to the physical sector. Noise between these gates would require an explicit additional model. The final-only bit-flip example below does not simulate it.

    A correlator with a specified phase reference

    The target stationary correlator is

    C(t)=⟨Ω∣Z0(t)Z0∣Ω⟩=eiE0t⟨ϕ∣e−iHt∣ϕ⟩.C(t)=\langle\Omega\vert Z_0(t)Z_0\vert\Omega\rangle =e^{iE_0t}\langle\phi\vert e^{-iHt}\vert\phi\rangle.

    The second expression follows from H∣Ω⟩=E0∣Ω⟩H\vert\Omega\rangle=E_0\vert\Omega\rangle. The circuit approximates it by

    Cδ(t)=eiE0t⟨ϕ∣Sδ r∣ϕ⟩,t=rδ.C_\delta(t)=e^{iE_0t} \langle\phi\vert S_\delta^{\,r}\vert\phi\rangle, \qquad t=r\delta.

    Adjoin an ancilla in ∣+⟩\vert+\rangle and apply SδrS_\delta^r to the system on its ∣1⟩\vert1\rangle branch, including the phase eiE0te^{iE_0t}. The resulting joint state is

    ∣Ψ⟩=∣0⟩∣ϕ⟩+∣1⟩eiE0tSδr∣ϕ⟩2.\vert\Psi\rangle=\frac{ \vert0\rangle\vert\phi\rangle+ \vert1\rangle e^{iE_0t}S_\delta^r\vert\phi\rangle}{\sqrt2}.

    Direct contraction gives ⟨Xa⟩=Re⁡Cδ\langle X_a\rangle=\operatorname{Re}C_\delta and ⟨Ya⟩=Im⁡Cδ\langle Y_a\rangle=\operatorname{Im}C_\delta. The measurement article derives the statistics and finite-time spectrum.

    A controlled Pauli rotation also has an explicit synthesis:

    ctrl⁡RP(θ)=RIa⊗P(θ/2)RZa⊗P(−θ/2).\operatorname{ctrl}R_P(\theta) =R_{I_a\otimes P}(\theta/2) R_{Z_a\otimes P}(-\theta/2).

    For P=IP=I, this is a single ancilla Rz(−θ/2)R_z(-\theta/2) up to the overall scalar e−iθ/4e^{-i\theta/4}. The scalar has no relative effect on the joint state, but it is retained when comparing full matrices. The primitive construction and a direct block-controlled matrix agree within 2×10−132\times10^{-13}.

    CδC_\delta is an approximation to the target correlator. The prepared target vacuum need not be an eigenstate of SδS_\delta, so this expression must not be reinterpreted as a stationary correlator of an independently defined product-formula vacuum.

    What the time-step scan establishes

    The comparison uses t=0,0.2,…,4t=0,0.2,\ldots,4, with the same prepared probe and exact finite Hamiltonian throughout:

    δ\deltaMaximum sampled state errorMaximum sampled ∣Cδ−C∣\lvert C_\delta-C\rvertMaximum sampled energy drift
    0.20.20.0057770.0057770.0044310.0044310.0033000.003300
    0.10.10.0014430.0014430.0011070.0011070.00081930.0008193
    0.050.050.00036060.00036060.00027660.00027660.00020450.0002045
    0.0250.0250.000090130.000090130.000069130.000069130.000051090.00005109

    The state error is the phase-sensitive norm ∥Sδrϕ−e−iHtϕ∥\|S_\delta^r\phi-e^{-iHt}\phi\|, appropriate when phase is read by an ancilla. The nearly fourfold reduction on halving δ\delta is consistent with second-order convergence. These sampled maxima are not continuous-time error bounds.

    Exact and digital complex correlators agree as the time step decreases, with sampled errors falling quadratically.

    The four-qubit correlator uses the exact finite ground state and the deterministic Z0Z_0 probe. The convergence panel uses maxima on the retained grid t=0,0.2,…,4t=0,0.2,\ldots,4; the reference slope illustrates δ2\delta^2 scaling, not a fitted continuum limit.

    Completed steps commute with QQ to rounding precision for every tested δ\delta. Norm deviations remain below 2×10−122\times10^{-12} over this scan. Neither fact establishes correct dynamics: both a finite product-formula error and a wrong but charge-preserving Hamiltonian can pass these tests.

    For example, change only the evolution mass from 0.250.25 to 0.300.30, keeping the target probe state fixed. Exact evolution gives

    ⟨Z0(2)⟩m=0.25=−0.38360456,⟨Z0(2)⟩m=0.30=−0.34237567.\langle Z_0(2)\rangle_{m=0.25}=-0.38360456, \qquad \langle Z_0(2)\rangle_{m=0.30}=-0.34237567.

    The difference 0.041228890.04122889 occurs with zero charge violation. This is a controlled coherent error, not a gauge anomaly.

    A final independent system bit-flip channel and charge postselection are analyzed in the gauge article. They affect the one-time system readout Z0Z_0. A trace-preserving channel applied to the system after the entire controlled-overlap circuit leaves the ancilla marginal unchanged; it cannot be labeled correlator noise without specifying a different insertion point.

    The source files digital_schwinger.py, digital_dynamics.py and digital_checks.py in examples/lattice-hamiltonian/quantum-simulation/ retain the primitive construction, results and independent finite-matrix checks. They assess this lattice and these gates. Finite spacing, finite volume, hardware noise between gates and continuum extrapolation require separate work.

    The two ancilla quadratures give complex C(t)C(t) at individual times. To determine whether two finite-box levels can actually be distinguished, apply the four observation windows to the measured correlator. Their frequency resolution can change with the observation time even after the digital evolution step has converged.

    Summary

    A digital simulation specifies a finite Hamiltonian, an initial-state circuit, an ordered gate approximation and a readout. The Schwinger example has an exact finite reference and a clear second-order time-step trend. Charge conservation checks completed blocks; it does not certify their Hamiltonian or their phase accuracy. Identity terms that are invisible in an unconditioned state can be essential to an ancilla signal.

    Exercises

    1. Why a symmetric step is second order

    For finite Hermitian matrices A,BA,B, expand

    Sδ=e−iδA/2e−iδBe−iδA/2S_\delta=e^{-i\delta A/2}e^{-i\delta B}e^{-i\delta A/2}

    through order δ2\delta^2. If U=e−iδ(A+B)U=e^{-i\delta(A+B)} and ∥Sδ−U∥≤cδ3\|S_\delta-U\|\leq c\delta^3, prove a bound after rr steps. Explain what must be held fixed in the resulting scaling statement.

    Solution

    Multiplication of the three Taylor series gives

    Sδ=I−iδ(A+B)−δ22(A2+AB+BA+B2)+O(δ3).S_\delta=I-i\delta(A+B) -\frac{\delta^2}{2}(A^2+AB+BA+B^2)+O(\delta^3).

    This equals the expansion of UU through second order. More structurally, S−δ=Sδ−1S_{-\delta}=S_\delta^{-1}, so its logarithm near the identity is odd in δ\delta. The linear term is −iδ(A+B)-i\delta(A+B) and the first possible correction is cubic.

    The exact telescoping identity is

    Sδr−Ur=∑j=0r−1Sδr−1−j(Sδ−U)Uj.S_\delta^r-U^r=\sum_{j=0}^{r-1} S_\delta^{r-1-j}(S_\delta-U)U^j.

    Both outer factors are unitary. The triangle inequality therefore gives

    ∥Sδr−Ur∥≤rcδ3=c tδ2,t=rδ.\|S_\delta^r-U^r\|\leq r c\delta^3 =c\,t\delta^2, \qquad t=r\delta.

    The matrices, their finite regulator and the final physical time are held fixed. The constant cc involves operator norms and commutators; this argument does not establish that it remains bounded when the volume or local field cutoff grows. Nor does it include gate noise or a state-preparation error.

    2. A harmless scalar that changes a controlled measurement

    Replace HH by H′=H+cIH'=H+cI. Show why an ordinary system expectation is unchanged. What happens to a controlled survival amplitude if the reference phase is left unchanged? Restore the stationary correlator correctly, and describe the case ct=π/2ct=\pi/2.

    Solution

    The evolved ket acquires e−icte^{-ict}. It cancels between bra and ket in ⟨O⟩\langle O\rangle, so every unconditioned system expectation is unchanged.

    In an ancilla experiment this phase multiplies only the controlled branch. If the reference remains E0E_0, the signal becomes

    C′(t)=e−ictC(t).C'(t)=e^{-ict}C(t).

    Thus at ct=π/2ct=\pi/2, C′=−iCC'= -iC, and the measured pair (Re⁡C,Im⁡C)(\operatorname{Re}C,\operatorname{Im}C) changes to (Im⁡C,−Re⁡C)(\operatorname{Im}C,-\operatorname{Re}C).

    The shifted ground energy is E0′=E0+cE'_0=E_0+c. Using it restores

    ei(E0+c)t⟨ϕ∣e−i(H+cI)t∣ϕ⟩=eiE0t⟨ϕ∣e−iHt∣ϕ⟩.e^{i(E_0+c)t}\langle\phi\vert e^{-i(H+cI)t}\vert\phi\rangle =e^{iE_0t}\langle\phi\vert e^{-iHt}\vert\phi\rangle.

    The identity coefficient in the worked Hamiltonian is +1+1. Omitting it without changing the reference is the case c=−1c=-1, which multiplies the signal by eite^{it}. An ancilla ZZ rotation can supply the missing relative phase. No physical gate implementing a global phase on an isolated system is required.

    References

    • C. Muschik et al., “U(1) Wilson lattice gauge theories in digital quantum simulators,” New Journal of Physics 19, 103020 (2017), arXiv:1612.08653v1 (PDF), Sec. 2.1, PDF pp. 6–7. Open-chain Gauss elimination; the present occupation convention and identity term are stated explicitly.
    • N. H. Nguyen et al., “Digital Quantum Simulation of the Schwinger Model and Symmetry Protection with Trapped Ions,” PRX Quantum 3, 020324 (2022), arXiv:2112.14262v2 (PDF), Sec. II, Eqs. (7)–(10), and Sec. II.C. Product formulas, term ordering and symmetry diagnostics.
    • R. Somma, G. Ortiz, J. E. Gubernatis, E. Knill and R. Laflamme, “Simulating physical phenomena by quantum networks,” Physical Review A 65, 042323 (2002), arXiv:quant-ph/0108146v1 (PDF), Sec. III.B–C, PDF pp. 12–16. Elementary evolution and ancilla-based unitary measurements.

    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.