- Home
- Library
- Lattice and Hamiltonian Field Theory
- Quantum Simulation of Field Theory
- Encoding Scalar Fields and Fermions
Encoding Scalar Fields and Fermions
A scalar field has infinitely many possible amplitudes at every spatial site. A qubit register has finitely many states. Which approximation turns the first system into the second, and which parts of the resulting calculation can still be exact?
We answer this with two coupled scalar oscillators. We truncate their local bases, encode the resulting Hamiltonian as an explicit sum of Pauli operators, and compare its spectrum with the original finite matrix. We also construct a field-coordinate grid and a fermionic occupation encoding. These choices approximate different objects: a bosonic local basis needs a cutoff, whereas one fermion mode already has a two-dimensional occupation space.
Preparation: Tensor products, harmonic-oscillator matrix elements, and the distinction between an operator and its projection onto a local basis.
The Hamiltonian before the qubits
Consider a real scalar in one spatial dimension. On an open spatial chain with spacing , introduce canonical variables and . Before local truncation, . For two sites there is one spatial bond:
This is an open chain, not the two-site periodic chain with two directed nearest-neighbor contributions. The quartic coupling uses the convention. We take
where is an oscillator reference frequency. Below, sets the numerical energy unit. There is no spatial continuum extrapolation in this two-site example.
Write
The tensor-product projector is and the finite Hamiltonian is , represented in its -dimensional range. Its onsite terms use , and . They are not obtained by squaring or taking the fourth power of the retained matrix.
To see the difference, let . Inserting gives
Only the highest retained oscillator state can make the omitted intermediate transition to . The analogous correction for is . Terms on different sites behave differently: , since each factor acts once in its own local Hilbert space.
Finite matrices cannot obey an exact canonical commutator: the trace of a commutator vanishes, whereas . Indeed,
The boundary term is part of the regulator. Its effect on low-energy states must be investigated by increasing .
Binary registers and unused states
A local -state basis needs qubits in a binary encoding. Map to its -bit representation. Our ordering is site first, followed by site ; within each register, the high bit comes first. For ,
The word is unused. For two sites the encoding is an isometry , with and code projector . A useful extension of the Hamiltonian is
The unused energy is an arbitrary choice outside the represented field Hilbert space. Equation (7) satisfies and therefore
Thus every valid encoded state has exactly the finite-model evolution. If one searches the entire register for a ground state, however, the extension matters. Zero padding gives every unused word energy zero. Here the physical ground energy is positive, so that extension creates a false global ground level. Choosing puts the seven unused two-site words above the physical ground in the example. Restricting a variational ansatz to the code space is another way to avoid optimizing over these words.
At all sixteen words of four qubits are physical. At four qubits still suffice, but only nine words are physical. A smaller oscillator cutoff therefore need not reduce the register size.
An actual Pauli Hamiltonian
Let be the usual Pauli matrices and let be a tensor product of on qubits. Their trace orthogonality gives
For a Hermitian Hamiltonian all coefficients are real. This is a complete matrix expansion, not yet a statement about an economical quantum circuit. Generic operators can have exponentially many Pauli terms.
The local field operator provides a concrete example. At and , the occupation transitions have amplitudes , , and . In the high-bit/low-bit order,
The first two terms distinguish the transitions and . The last pair exchanges the binary words . Expanding the correctly projected onsite powers and then gives the two-site Hamiltonian.
For (1)–(2), the retained expansion contains nonzero Pauli words at , including the identity. The extension with contains . Reconstructing the matrices from their coefficients differs by less than in the largest entry. The physical spectra and complex-state evolution agree with the unencoded matrices to floating-point accuracy. These checks establish the encoding of , not the adequacy of the chosen .
There is a useful subtlety in the result. Some individual Pauli words have , although their weighted sum commutes with the projector. Consequently a product of individual Pauli rotations need not preserve the code space at a finite step size. Exact invariance of a sum is not invariance of an arbitrary product formula. The digital-evolution article treats such approximation choices explicitly.
What changes when the local cutoff changes?
The finite Hamiltonian preserves global field parity and exchange of the two sites. We diagonalize it in these sectors and compare with its unrestricted spectrum. For all listed cutoffs, the even, exchange-even ground state and lowest odd, exchange-even state are also the first two levels of the unrestricted matrix.
The table lists their gap and the ground-state correlator . More digits are retained in the companion results than are needed to see the cutoff effect.
| Local dimension | Register qubits | Ground energy | Odd gap | |
|---|---|---|---|---|
| 3 | 4 | 1.02176358 | 0.58557625 | 0.26605576 |
| 4 | 4 | 1.02037244 | 0.56004450 | 0.28234055 |
| 6 | 6 | 1.02017788 | 0.55664003 | 0.28453052 |
| 8 | 6 | 1.02017119 | 0.55654150 | 0.28457968 |
| 12 | 8 | 1.02017103 | 0.55653794 | 0.28458188 |
| 16 | 8 | 1.02017103 | 0.55653794 | 0.28458189 |
The four-qubit encoding can be exact while its gap still differs by about from the larger-cutoff reference. The last two cutoffs provide a useful local convergence check; they do not constitute a rigorous infinite- error bound. Ground energies obey a variational ordering for these nested projected spaces, but differences of energies have no general monotonicity theorem.
As an independent limiting check, set . The two open-chain normal frequencies are and , hence for (2). The exact untruncated ground energy and first gap are then and . The oscillator calculations approach both values. Independent Hermite quadrature also reproduces the retained matrix elements, so the cutoff study is not solely a comparison of two encodings of the same matrix.
Left: oscillator-cutoff dependence of the two-site odd gap, with used as a finite reference. Right: a separate single-oscillator calculation illustrates field-range and field-spacing errors. Increasing grid size at fixed small range does not remove the range error. All values come from deterministic matrix calculations.
Field-coordinate grids regulate a different boundary
An alternative local basis consists of sampled field values. This is a discretization of a coordinate in Hilbert space, in addition to any spatial lattice. Introduce values
and a unitary discrete Fourier matrix . For even , use momentum integers , with . The local Hamiltonian is
This kinetic operator is periodic in the field coordinate with period . Its spectral momentum cutoff is of order . The potential need not describe the intended physics near the periodic seam; low-energy wavefunctions must have negligible support there. The field range and the resolution therefore require separate checks.
For this single-oscillator control we also fix , retain the field-theory coefficient , and omit the spatial bond. With , and , a -level oscillator reference gives and gap ; raising the reference cutoff from to changes the first two energies by less than . At , the grid gap remains near as rises from to . At , changing to removes the coarse-spacing error, and agree with the reference's first two levels within . Agreement between regulators here tests this oscillator problem, not a spatial continuum limit.
Field-range truncation and conjugate-momentum truncation are central to the qubit analysis of Jordan, Lee and Preskill. Their energy-dependent bounds explain why representation accuracy requires assumptions about the states being simulated; our explicitly specified Fourier matrix fixes the numerical factors in (11)–(12). See Appendix A.4, Eqs. (26)–(47), of their paper.
Fermionic signs in an occupation register
For fermions, each specified mode has occupation or . Let be empty, occupied, and order the modes from left to right in the tensor product. Then
The factor annihilates an occupied mode. The string supplies a minus sign for every occupied earlier mode. For , moving the local raising or lowering operator through the inside the other string gives the required minus sign. At equal indices the two local products sum to . Hence
This is the Jordan–Wigner map. Somma and collaborators give the algebraic construction in §II.C, Eqs. (13)–(15), PDF p. 9 of their paper (PDF). Their spin occupation convention is related to (13) by conjugating each qubit with ; the anticommutators are unchanged.
For neighboring modes, hopping becomes
For distant modes, intervening operators remain. They are necessary even when they make a qubit interaction look nonlocal. Spatial dimension does not alter the map, but a choice of one-dimensional ordering affects the lengths of its strings. A finite set of fermion modes is encoded exactly; selecting that set, discretizing space, and treating gauge constraints are separate physical approximations.
Summary
The scalar cutoff defines ; the binary isometry and Pauli expansion can then represent that matrix exactly. True projected powers, field-coordinate boundaries and unused binary words must be specified before interpreting a spectrum. Fermionic occupation encoding instead preserves the finite-mode anticommutation algebra through explicit parity strings.
The next scalar step is to prepare a state of this encoded Hamiltonian. The companion calculations separate representation identities from cutoff convergence, preparation error and measurement statistics.
Exercises
1. A qutrit with a dangerous fourth word
Retain oscillator levels and encode them as in (6). Let . Derive the code projector and Pauli expansion of its zero-padded encoding, then add an unused-state energy . Which choices make the physical ground also a global ground? Finally, compute at .
Solution
The unused projector is , so
The zero-padded number operator has diagonal entries . Adding gives
whose diagonal entries are . The full extension is . Its spectrum is . The physical state is the unique global ground if ; at it is degenerate with the unused state. A constrained optimization inside the code space always has physical ground energy .
For the projected coordinate, the only lost intermediate state is , reached from with amplitude . Therefore
The binary encoding is exact for either matrix, but only the first is the projection of the original operator.
2. Hopping past an occupied mode
Using the three-mode occupation convention in (13), derive the Pauli form of . Evaluate its action on and . What fails if the intervening parity string is omitted?
Solution
Substitute and . The local combines with the operator at mode ; adding the Hermitian conjugate cancels the mixed terms:
For , annihilation at mode passes no occupied earlier mode. Creation at mode then gives with coefficient . For , annihilation at mode passes occupied mode and contributes , giving after creation at mode .
Removing assigns coefficient to both transitions. It describes the wrong many-fermion operator even though it reproduces hopping in a sector where the middle mode is always empty. Direct assembly from occupation changes and the two CAR identities independently checks these signs.
References
- Stephen P. Jordan, Keith S. M. Lee and John Preskill, “Quantum Algorithms for Quantum Field Theories,” Science 336, 1130–1133 (2012), doi:10.1126/science.1217069, arXiv:1111.3633v2. Appendix A.4, Eqs. (26)–(47), develops field and conjugate-momentum cutoffs.
- Rolando Somma, Gerardo Ortiz, James E. Gubernatis, Emanuel Knill and Raymond Laflamme, “Simulating Physical Phenomena by Quantum Networks,” Physical Review A 65, 042323 (2002), doi:10.1103/PhysRevA.65.042323, arXiv:quant-ph/0108146 (PDF). Section II.C, Eqs. (13)–(15), gives the spin–fermion map.
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.