---
title: "Projecting out violations or penalizing them"
description: "Compare an exact physical basis with Gauss-energy protection under a defined gauge-breaking error, using leakage and physical-observable differences."
canonical_url: "https://sandboxphysics.com/stories/lattice-gauge/physical-subspace/"
language: "en"
page_type: "story"
alternate_languages:
  zh-CN: "https://sandboxphysics.com/zh/stories/lattice-gauge/physical-subspace/"
last_modified: "2026-10-27"
---

[Lattice gauge fields and string breaking](https://sandboxphysics.com/stories/lattice-gauge/)

L3 · Chapter 6

# Projecting out violations or penalizing them

Sandbox Physics · 2026-10-27

A hard physical basis gives violating configurations nowhere to go. An energy penalty keeps those configurations but raises their energies. A gauge-breaking perturbation can still visit them. Compare both methods with the same initial state and a specified error process.

## Before you begin

Use local Gauss residuals and the physical-basis construction. A projection removes components outside a chosen subspace.

[Review the preceding chapter](https://sandboxphysics.com/stories/lattice-gauge/cutoff-finite-size/)

- Explain why a penalty does nothing without a gauge-breaking error.
- Calculate the penalty for one local mistake.
- Compare constraint leakage separately from a physical prediction error.

## Introduce one definite error process

A gauge-preserving Hamiltonian cannot take a physical initial state outside its Gauss sector. Raising forbidden-state energies therefore changes nothing in that ideal evolution. Testing energy protection requires a term that can actually reach those states.

We add bare matter hopping of strength $\epsilon$: a particle moves without updating its link flux. One such hop creates opposite residuals on neighboring sites. This defines the error being tested and makes its strength an explicit parameter.

$$
\hat H_{\mathrm{err}}=-\epsilon\sum_n(\hat f_n^\dagger\hat f_{n+1}+\mathrm{h.c.})
$$

This term omits the link raising or lowering operator. Its deliberate violation of Gauss’s law tests the protection mechanism.

Reading: David Tong · Sandbox Physics FR04 finite Hamiltonian · Sandbox Physics FR04 original numerical references and reproduction scripts

## Assign an energy to each local violation

Keep the larger product space of half-filled matter and truncated links. Add the error and $\lambda\sum_n\hat G_n^2$ to the gauge-preserving Hamiltonian. A pair of unit residuals contributes two to the sum and therefore costs $2\lambda$ in penalty energy.

A large energy separation usually suppresses error transitions. Their amplitude still depends on the original configuration energies, couplings and observation time. Different contributions can also compensate and approach resonance. Plotting leakage as a function of time and penalty tests the actual finite system.

$$
\hat H_\lambda=\hat H+\hat H_{\mathrm{err}}+\lambda\sum_n\hat G_n^2
$$

The penalty coefficient has energy units. A laboratory implementation would need to map this term to available interactions.

## Specify the projected reference Hamiltonian

Let $P$ project onto configurations with every Gauss residual zero. Hard selection evolves with $P(\hat H+\hat H_{\mathrm{err}})P$. A single bare hop ends outside the physical space, so its first-order matrix element is removed in this example.

With a finite penalty, a state can briefly visit a high-energy violating configuration and return. These virtual processes can alter evolution inside the physical subspace. Small leakage therefore need not make a field curve identical to the hard-projection result.

Use the same initial physical configuration, electric range and couplings in both calculations. Hard projection is the ideal reference; the penalty calculation includes the specified error. Their basis dimensions can differ, but each observable must have the same definition.

## Two diagnostics answer different questions

Leakage $1-\langle P\rangle$ is the total probability outside the physical subspace. The mean squared Gauss residual additionally weights each violating configuration by the size of its residuals. They measure related but different properties.

Now compare a physical observable, such as the middle-link field, with its hard-projection reference. Its difference measures the error in the prediction you wanted. Retain norm and total-energy checks for the full Hamiltonian while scanning the penalty, so a numerical problem cannot masquerade as physical leakage.

$$
\mathcal L(t)=1-\langle\psi(t)|P|\psi(t)\rangle,\qquad \delta E_n(t)=\langle E_n\rangle_\lambda-\langle E_n\rangle_{P}
$$

Leakage asks where the state is. The field difference asks how much the chosen prediction changed. Both references use the same electric truncation.

## Estimate one isolated leakage channel

Suppose one physical state couples to one violating state with strength $\epsilon$ and total detuning approximately $2\lambda$. The two-state result gives maximum leakage $\epsilon^2/(\lambda^2+\epsilon^2)$. For a large penalty, it decreases as the squared ratio of error strength to penalty.

This isolated-channel estimate explains a trend. The finite chain contains many channels and detunings, which the workbench calculates together. Comparing the estimate with those curves tests when the simple picture is useful.

## Try the prediction

### [Expose the same error to different protection strengths](https://sandboxphysics.com/labs/gauge-subspace/)

1. Hold the gauge-breaking error fixed and compare leakage with zero and large penalty.
2. Open Numerical diagnostics and full record to read the central-link field difference from the physical-basis reference. Vary the penalty and compare field error with leakage at the same time. Do they always decrease together?
3. Set the gauge-breaking error to zero and test whether changing the penalty still changes the physical trajectory. Explain your result.

## Exercises and explanations

1. A configuration has Gauss residuals of plus one and minus one at neighboring sites and zero elsewhere. What penalty does it pay?

   Read the explanation

   Each nonzero residual contributes one to its square. The sum is two, so the added energy is $2\lambda$. Opposite signs do not cancel in the squared sum.

2. Why compare a field curve even after leakage becomes small?

   Read the explanation

   Virtual excursions into the violating space can shift effective couplings and phases inside the physical space. A state that remains mostly physical can still accumulate an appreciable error in an observable.

[Previous: What electric cutoffs and short chains change](https://sandboxphysics.com/stories/lattice-gauge/cutoff-finite-size/) [Next: Reading an electric string from atomic occupations](https://sandboxphysics.com/stories/lattice-gauge/optical-lattice-mapping/)

## Sources and calculation scope

1. [Sandbox Physics FR04 finite Hamiltonian, conventions and calculation scope](https://github.com/yangzichao/sandboxphysics/blob/main/docs/frontier/fr04/model-specification.md)

   Defines the course’s zero-based staggered charge, open boundaries, integer-flux hard cutoff, source geometry and deliberate gauge-breaking error. The accompanying paper-reproduction and numerical-validation notes specify which finite-model calculations were checked independently. This is our model definition and calculation record.

2. [David Tong, Gauge Theory (2018 lecture notes)](https://www.damtp.cam.ac.uk/user/tong/gaugetheory/gt.pdf)

   Sections 2.5.1 and 2.7 discuss static probes and dynamical matter; sections 4.2.1 and 4.3.1 introduce lattice links and two-dimensional staggered fermions; section 7.1 gives the electrostatic energy in one spatial dimension. Our finite Hamiltonian, indexing and hard cutoff are defined explicitly in this course.

3. [Sandbox Physics FR04 original numerical references and reproduction scripts](https://github.com/yangzichao/sandboxphysics/tree/main/docs/frontier/fr04)

   benchmarks-browser.json and benchmarks-independent.json retain the separately calculated raw observables; benchmarks-summary.json records their differences, numerical environment, cutoff and finite-size checks. scripts/frontier/fr04/reproduce-benchmarks.mjs and independent-reference.py regenerate the original deterministic records. No experimental data are included.
