- Home
- Library
- Lattice and Hamiltonian Field Theory
- Quantum Simulation of Field Theory
- Encoding Gauge Fields and Gauss's Law
Encoding Gauge Fields and Gauss's Law
A quantum register can contain states that no gauge theory allows. Even a vanishing average Gauss operator does not establish that the register is physical: positive and negative violations can cancel. Encoding, symmetry-preserving evolution, energy penalties and postselection address different parts of this problem.
We will encode a short Schwinger chain, identify its physical states exactly, and compare these strategies in finite matrices. The example also shows why a successful symmetry check can coexist with an incorrect observable.
Preparation: Occupation-number states, Pauli matrices and the open-chain Schwinger Hamiltonian. The flux selection on a tensor bond explains a different way of enforcing the same constraints.
A link register with an explicit physical subspace
Use zero-based staggered sites, with
The backward link raises the integer flux . Our physical forward electric field is , and Gauss's law is
The phase convention for the matter field makes hopping positive. With open boundaries ,
Here is the bare lattice parameter. The small fixed lattice below is not a continuum extrapolation.
Take , , , and keep link fluxes . Two matter qubits represent . Two additional qubits encode the link. If their bits are , let :
| Link code | Flux | Meaning |
|---|---|---|
| retained flux | ||
| retained flux | ||
| retained flux | ||
| — | unused register state |
For matrix calculations choose
The final zero in is an arbitrary extension to an unused code; it does not introduce another zero-flux state into the physical model. Extend the Hamiltonian by zero on that unused block, and multiply its matter-only mass term by .
Unlike an infinite rotor shift, is not unitary. Nevertheless,
holds exactly, including the edge where . Together with the matter commutators this gives . A hard flux cutoff can therefore preserve Gauss's law while changing the theory's dynamics. Testing symmetry and testing flux convergence are separate tasks.
For two sites,
The physical projector is
Only two states survive. We write matter occupations in site order, then :
| State | ||
|---|---|---|
In this order the exact physical Hamiltonian is
The off-diagonal element moves a fermion from site to site while raising the link. Both Gauss operators remain zero. Direct construction in the full sixteen-state register gives this matrix and agrees with the independently constructed reduced Schwinger Hamiltonian.
Means, squares and code validity
Consider the normalized state
It has
A mixture of the same two states gives the same diagnostic. In contrast, for a positive density matrix, implies support in the kernel of : the positive terms cannot cancel.
Even this test must be applied to the declared encoding. Our unused state has because of the chosen extension of , but its valid-code probability is zero. One must also measure . In this register,
On a valid but unphysical basis state, the integer Gauss eigenvalues have squared sum at least one. On an unused state the last projector contributes one. This proves the inequality basis by basis. It is an upper bound on a probability, not an equality between probability and squared violation.
All these operators are diagonal in the occupation/link basis. One computational-basis shot determines their simultaneous values. For noncommuting constraints or a different encoding, a measurement protocol would have to be supplied separately.
What an energy penalty achieves
If the encoded Hamiltonian preserves the physical space exactly, a penalty that vanishes there changes no physical evolution. Its purpose is to suppress specified couplings out of that space. Test
where the final term acts on the link without moving matter. It is an explicitly gauge-breaking imperfection, not a target interaction. Start from and propagate the full register exactly.
For , every tested penalty leaves the state physical to numerical precision. With , the retained results are:
| Largest sampled | Postselected bias at | |
|---|---|---|
The maximum is taken over ; it is not a rigorous supremum over the entire trajectory. The last column compares the normalized state with ideal target evolution. The ideal value at is .
The penalty suppresses leakage but does not force the surviving state to equal the target state. Virtual excursions can change amplitudes and phases inside the physical space. Conditioning on survival can also increase the error of a particular observable, as the first two rows illustrate. Larger introduces a larger dynamical frequency and may increase the cost of a digital approximation; the exact-matrix comparison above does not model that cost.
Eliminating links and checking the remaining charge
In an open chain, Gauss's law fixes every internal link from the matter occupations:
Substitution replaces explicit links by long-range matter interactions. This is the encoding used in Muschik et al., Sec. 2.1, Eqs. (1)–(4), PDF pp. 6–7. We use the local site and occupation conventions stated above rather than silently importing the source's spin convention.
For , four matter qubits suffice. Fixing both boundary fluxes to zero leaves
a six-dimensional sector. Internal Gauss constraints are already solved; a charge check does not diagnose independent link errors in a register where links no longer exist. Nor does it detect an incorrect mass or interaction that preserves .
The digital evolution example constructs gates that preserve charge after each completed exchange block. A matched / pair does this; its individual Pauli rotations need not. The distinction matters if noise acts between the constituent gates.
Postselection has a statistical and a physical cost
Let be the final four-qubit state, and let . Accepting only neutral outcomes produces
This changes the question being measured. It estimates an expectation in the conditional state, not automatically the ideal target expectation. For diagonal observables such as , charge and observable can be read in the same shot. For a general noncommuting observable, simply discarding occupation-basis outcomes would not implement its measurement.
As a transparent noise model, apply an independent bit flip to each matter qubit with probability , once at the end of otherwise ideal evolution. For a neutral input, the acceptance probability is
The accepted events include no flips, four flips, and four possible pairs containing one occupied and one empty site. Some accepted errors therefore remain physical. In the shared example, the initial state is , where is the exact finite-model ground state; the target measurement at is
| Acceptance | Noisy | Postselected | |
|---|---|---|---|
Before selection, but . After selection both vanish exactly, while the last column still differs from .
Left: the explicit two-site register with , sampled at . Right: the four-matter-qubit final-channel example at . These are distinct declared imperfections; the curves do not describe a particular device.
If attempts yield accepted shots, then . Conditional on , the variance of the accepted sample mean is
Replacing by is a useful large-sample approximation, not the exact formula. The probability of no accepted shot is . Symmetry-inspired postselection and the fact that symmetry preservation need not imply smaller observable error are also discussed in Nguyen et al., Sec. II.C, PDF pp. 5–6.
The executable example retains exact channel probabilities and exact binomial uncertainty; it does not invent a sampled device dataset. The source companions gauge_register.py and digital_dynamics.py in examples/lattice-hamiltonian/quantum-simulation/ reproduce these tables; digital_checks.py checks the independent matrix and channel identities.
Summary
A gauge encoding must specify both its code subspace and its physical constraints. Squared Gauss operators detect violations that their means miss. Exact constraint-preserving blocks, finite penalties and postselection have different effects: none alone establishes the accuracy of the intended dynamics or removes errors inside the physical sector.
Exercises
1. A truncated shift that still respects Gauss's law
For the three retained fluxes, compute , and . Verify the raising commutator and derive the physical two-state Hamiltonian. Explain why unitarity of the shift is unnecessary for this finite model's gauge invariance.
Solution
On the valid link subspace,
so
For each retained nonzero matrix element, the output flux exceeds the input by one, giving . The top state is annihilated, so the same relation holds there.
Let . Then , and . Consequently both and vanish; the adjoint has the same property. The mass and electric terms are diagonal and commute with the constraints.
Gauss's law fixes . The two configurations therefore have diagonal energies and , with hopping element . Substituting the stated parameters gives the displayed matrix. Gauge invariance follows from the raising relation and matter charge balance, although the cutoff changes the shift algebra at its edges. The unused binary code is excluded separately.
2. Bias after an apparently perfect charge check
Starting with any neutral four-qubit density matrix, derive the bit-flip acceptance probability and show that, if its initial mean is ,
Why does postselection not restore the original state?
Solution
Every computational configuration in the input has two occupied and two empty sites. Returning to that number requires equal numbers of flips of occupied and empty sites. The possibilities are zero flips, four flips, or one of occupied–empty pairs. Their probabilities give .
For a fixed input configuration, the no-flip event contributes its original value times . The four-flip event contributes its negative times . Among the four accepted two-flip events, two flip site and two do not, so their contributions cancel. These are diagonal expectation values; coherences in the input do not alter the counting. Averaging over input configurations and dividing by proves the formula.
The accepted pair and four-flip events generally change physical configurations and coherences. They satisfy the same charge constraint as the target, so the check cannot distinguish them. At small ,
The leading conditional bias is reduced from order to order in this particular model, at the cost of discarded shots. It is not eliminated.
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). Section 2.1, PDF pp. 6–7, gives the gauge elimination and spin Hamiltonian; conventions are translated above.
- 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). Section II.C, PDF pp. 5–6, compares symmetry-preserving orderings, symmetry protection and postselection. The finite-register calculations on this page are separate teaching examples.
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.