- Home
- Library
- Computational Quantum Field Theory
- Variational Monte Carlo and Neural Quantum States
- Continuous Scalar-Field Wavefunctionals
Continuous Scalar-Field Wavefunctionals
A spatial lattice leaves each scalar-field value continuous. A neural wavefunction therefore has to do more than assign amplitudes to a finite list of spins: it must be normalizable, have well-defined kinetic derivatives, and permit controlled integration over field space. We construct a Gaussian vacuum with a trained neural correction and optimize it for two coupled anharmonic oscillators.
The example improves both energy and correlators, but also exposes two limits of numerical evidence. Every optimizer misses its requested gradient tolerance, and restricting a kinetic-energy integral to a small field box can produce a value below the true ground energy without contradicting the variational principle.
Preparation: Scalar Hamiltonians and local bases, local energies and VMC and differentiation of a multivariable function.
From a field to canonical coordinates
In one spatial dimension, discretize space with spacing before choosing a wavefunctional ansatz. The canonical relations and Hamiltonian are
Thus in the field representation, and the kinetic operator is . The factors of follow from the commutator; a site derivative alone does not fix them. This agrees with the scalar normalization in Jordan–Lee–Preskill, Eqs. (2)–(3).
Set . In spatial sites,
The two wavefunctions then have the same norm. The -space kinetic term is with ordinary Lebesgue measure.
For two periodic sites there are two forward spatial bonds, giving
An open two-site chain would have a different gradient coefficient. We keep , and , matching the previously checked Hamiltonian example. This is a continuous-time quantum Hamiltonian, distinct from the two-variable Euclidean probability density used in the preceding generative-model chapter.
The orthogonal coordinates
preserve the measure and Laplacian. Write
Then the potential becomes
For and , the normalized vacuum is
Its local energy is the constant , and its Born covariance is . These provide direct checks of normalization, kinetic factors and the Gaussian limit.
Add a neural factor without losing the domain
Let be an unnormalized real log amplitude:
where and
Both widths and all hidden weights, biases and output weights are optimized. The sign average makes the state even separately in and , implementing field inversion and exchange of the two spatial sites. Subtracting the value at the origin removes an irrelevant constant in the log amplitude.
This is a Gaussian envelope multiplied by a positive neural factor. At finite parameters the factor and its field derivatives are bounded. Gaussian decay therefore makes the norm, kinetic quadratic form and quartic potential expectation finite. The state is in the appropriate quadratic-form domain, and integration by parts on the whole plane has no boundary contribution. Continuous-space wavefunctions require these conditions independently of any software declaration of a Hilbert space [2, §§6.1–6.4].
The positivity restriction is suited to the nodeless ground state of this confining scalar problem. It does not supply nodal excited states. Nor does increasing change the spatial regulator or prove a universal approximation statement for continuum quantum field theory.
Differentiate the wavefunction that is actually used
For a smooth positive state,
The term is essential: differentiating the log amplitude twice is not the same as dividing by . The normalized energy is also
For exact integrals this is the Rayleigh quotient of the same Hamiltonian as (1), hence an upper bound to its ground energy. A quadrature approximation to it needs its own accuracy checks.
To see how the network enters the derivatives, put . Each hidden contribution obeys
The Gaussian contributes to the gradient and to the Laplacian. The companion compares these expressions with finite differences at fixed points, including the visible small-step roundoff floor.
For a real parameter define and . Differentiating the normalized quadratic form gives
Whole-space integration by parts converts this to [2, Eqs. (26)–(28)]. At a finite quadrature order these two rearrangements need not agree exactly. We optimize the derivative of the quadratic form evaluated at fixed quadrature nodes, then use the local-energy version as a refinement check.
Optimize width separately from integration accuracy
The calculation uses whole-line tensor Gauss–Hermite quadrature with reference weight . The remaining weight, coordinate Jacobian and normalization are included explicitly. There is no finite field box in the optimization.
First optimize the two-width Gaussian. Its energy has the independent analytic expression
Then use hidden widths , with two fixed initializations each. All seven fits use quadrature order 48 per coordinate and bounded parameters; the network bounds are , , with . Each fit is limited to 400 optimizer iterations and 800 objective calls. Neither seeds nor budgets are changed after examining the results.
The final states are evaluated at orders 64, 96 and 128 without refitting. Their energy differences from the retained 32-state-per-site Hermite reference are:
| Hidden width | Start | Energy difference | Final projected gradient, infinity norm |
|---|---|---|---|
| 0 | 0 | ||
| 2 | 0 | ||
| 2 | 1 | ||
| 4 | 0 | ||
| 4 | 1 | ||
| 8 | 0 | ||
| 8 | 1 |
Every fit misses the requested gradient tolerance. Width 8, start 0 reaches the 400-iteration cap; the other success flags report small objective reduction, which is a different stopping condition. These are achieved trial states, not certified minima of their neural families. The gradient is projected against the stated box constraints.
For the predetermined primary state, width 4, start 0,
New 16- and 24-state Hermite ground vectors supply independent correlator and overlap comparisons. At 24 states the corresponding moments are and , and . The primary neural state has overlap squared approximately with that vector. The new vectors reproduce the already retained energies and extend them with these observables; the old spectrum and field-grid studies were not repeated.
The neural energies change by less than between orders 96 and 128. This is numerical integration evidence for the retained states, not a bound on all errors at that precision. For example, width 8, start 0 has a smaller energy difference than the primary state but a larger error, approximately . Small energy error does not give equally small errors for every unbounded field moment.
Seven retained fits of the same quantum Hamiltonian. Both initializations remain visible. Energy and moment errors use the checked Hermite references; quadrature refinement is a separate control. The curves are achieved finite-network results and do not imply monotone optimizer convergence with width.
A finite box can change the question
As an independent integration check, restrict the primary state's integrals to and use Gauss–Legendre quadrature. Define . Integration by parts gives
At the missing norm is about , while the right-hand side is . The two integral routes agree only after this surface term is included. Refining the box quadrature from 96 to 128 points does not remove a field-range effect. At the missing norm is about ; at its computed sign fluctuates at roundoff, so it is not reported as a resolved tiny probability.
A simple analytic probability bound provides a different check. Let . The oscillation of is at most , so the normalized Born density is bounded above by times the normalized Gaussian-envelope density. A union bound yields
For the primary state the bounds at are approximately , and . They are conservative bounds on probability, not certified moment or energy errors.
The neural wavefunction has not been made zero at the box boundary. Its conditional quadratic-form integral is consequently not a Dirichlet variational state for the original problem. This distinction prevents a spurious “violation” of the variational principle. Physical spatial spacing, local Hermite cutoff, field integration range, quadrature order and neural width must remain separate controls [1, §A.4].
Summary
A Gaussian envelope supplies normalizability and a free-field check; a smooth neural correction supplies variational flexibility. The kinetic operator must differentiate the full wavefunction with the correct field measure. The finite example achieves accurate energies and low correlators, while retaining optimizer failures and a measurable box-boundary bias. It establishes neither an interacting continuum limit nor a general high-dimensional training result.
Exercises
1. Recover the canonical Gaussian
Starting from the field commutator, derive the kinetic term and wavefunction rescaling in canonical coordinates. For the free two-site periodic chain, find the ground energy and . Explain where the second spatial bond enters.
Solution
The commutator is realized by , hence . With , , giving . The coordinate Jacobian is , and multiplying the old amplitude by preserves its norm in the new measure.
The two terms and combine to . In normal coordinates this is , giving frequencies and . Thus
Here is required for a normalizable zero-mode vacuum. Omitting one bond changes the relative-mode frequency and the correlation; it describes the open chain.
2. An apparent energy below the vacuum
For and , restrict integrals to without changing at the endpoints. Show that the conditional quadratic-form energy is below . Why is this not a variational improvement?
Solution
The local energy is identically . With , integration by parts gives
The form integrand itself is , so conditioning on a bounded interval reduces its average. Extending the restricted function by zero would produce a jump at each boundary and would not have the finite kinetic form used in this calculation. Alternatively, imposing a legitimate boundary condition changes the operator or the state. The conditional integral is therefore not the Rayleigh quotient of a normalized whole-line trial state. Its negative difference is exactly the omitted boundary contribution.
References
- S. P. Jordan, K. S. Lee and J. Preskill, “Quantum Algorithms for Quantum Field Theories,” Science 336 (2012), 1130–1133, arXiv:1111.3633v2. Full text. Eqs. (2)–(3) fix the lattice commutator and Hamiltonian; supplementary §A.4, Eqs. (26)–(47), distinguishes field range and resolution.
- F. Vicentini et al., “NetKet 3: Machine Learning Toolbox for Many-Body Quantum Systems,” SciPost Physics Codebases 7 (2022), arXiv:2112.10526v2. Full text. §§3.3, 4.1 and 6.1–6.4 give local estimators, gradients and continuous-space examples. The present calculation uses its own small numerical implementation.
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.