Skip to content
QFT.org

Search QFT.org

Enter a word or phrase.

    You can also browse the main navigation and chapter contents.

    Neural Quantum States for Field Theory

    If a neural wavefunction's energy stops improving, is its representation too small, its optimizer stalled, or its sampled configurations incomplete? These mechanisms require different remedies. We isolate the first two using exact finite sums, then identify the additional test needed when sampling replaces enumeration.

    Preparation: neural wavefunctions, variational Monte Carlo and stochastic reconfiguration.

    Match a solvable physical target

    Take the periodic eight-spin transverse-field Ising Hamiltonian in Pauli normalization,

    H=−∑j=18ZjZj+1−∑j=18Xj.H=-\sum_{j=1}^{8}Z_jZ_{j+1}-\sum_{j=1}^{8}X_j.

    Couplings are one. This is a critical spin-chain benchmark, not a continuum scalar wavefunctional or a frustrated fermion problem. Its ground state can be chosen strictly positive in the ZZ basis and is even under flipping every spin. Those facts justify a real positive ansatz for this particular target.

    Use a restricted Boltzmann machine with MM hidden units,

    ψθ(s)=e∑iaisi∏j=1M2cosh⁡(bj+∑iWijsi),si=±1,\psi_\theta(s)=e^{\sum_i a_i s_i} \prod_{j=1}^{M}2\cosh\left(b_j+\sum_iW_{ij}s_i\right), \qquad s_i=\pm1,

    then project to even parity by replacing it with [ψθ(s)+ψθ(−s)]/2[\psi_\theta(s)+\psi_\theta(-s)]/2. All parameters are real. This representation follows the traced-hidden-spin construction of Carleo and Troyer, main text and Appendix C. We use a smaller chain, exact sums and a deterministic optimizer rather than reproducing their stochastic large-system benchmarks.

    Full diagonalization gives

    E0=−10.251661790966,E1−E0=0.196982806714.E_0=-10.251661790966,\qquad E_1-E_0=0.196982806714.

    The ground energy independently agrees with the finite critical-chain expression −2/sin⁡(π/16)-2/\sin(\pi/16). This checks the Pauli normalization, periodic bond count and energy reference.

    Optimize a genuine variational objective

    For the unnormalized amplitude vector ψ\psi, minimize

    E(θ)=ψ†Hψψ†ψ.E(\theta)=\frac{\psi^\dagger H\psi}{\psi^\dagger\psi}.

    For real parameters its derivative is

    ∂aE=2Re⁡[(∂aψ)†(H−E)ψ]ψ†ψ.\partial_a E= \frac{2\operatorname{Re}[(\partial_a\psi)^\dagger(H-E)\psi]} {\psi^\dagger\psi}.

    All 256256 configurations enter every evaluation. Directional finite differences check the analytic gradient. We use L-BFGS with a maximum of 15001500 iterations, three initialization seeds for each of M=2,4,8M=2,4,8, and initial parameter standard deviation 0.050.05. Increasing width changes capacity; keeping the iteration budget fixed does not guarantee equally complete optimization.

    The retained energy-error ranges across seeds are:

    Hidden units MMEnergy error E−E0E-E_0Optimizer outcome
    20.05809130.0580913All three met stopping rule
    40.00065770.0006577 to 0.00085670.0008567One reached iteration limit
    87.30×10−67.30\times10^{-6} to 2.25×10−52.25\times10^{-5}All reached iteration limit

    At M=8M=8, the best run has ground-state fidelity 0.99999931650.9999993165, energy variance 8.05×10−58.05\times10^{-5} and transverse magnetization 0.640734560.64073456, compared with the exact 0.640728860.64072886. The nonzero variance shows it is not an exact eigenstate despite its high fidelity. The repeated M=2M=2 energy plateau is evidence about these runs, not a proof of the global optimum of that ansatz.

    A stationary point that has nothing to do with sampling

    Initialize every parameter to zero. The projected amplitude is constant. Its first derivative with respect to each parameter vanishes after parity projection or because tanh⁡0=0\tanh0=0. The energy gradient is exactly zero, yet the energy is only −8-8.

    This is an explicit optimizer obstruction: all configurations are included, so more Monte Carlo samples cannot fix it. Random nonzero initialization escapes the flat first-order tangent at this point. Conversely, the iteration limits at larger width indicate unresolved optimization error, so the best observed energy should not be called a representation limit.

    The spectral gap gives a further diagnostic for a normalized trial state. Expanding in exact energy eigenstates yields

    1−∣⟨0∣ψ⟩∣2≤E−E0E1−E0.1-|\langle0|\psi\rangle|^2 \leq\frac{E-E_0}{E_1-E_0}.

    For the lowest-energy eight-unit run, the ratio on the right is 3.71×10−53.71\times10^{-5}. The direct overlap gives an infidelity of 6.84×10−76.84\times10^{-7}, within the bound. At criticality the gap shrinks with system size, weakening an inference from the energy alone.

    Energy variance answers a different question. If Eˉ=⟨H⟩\bar E=\langle H\rangle and v=⟨(H−Eˉ)2⟩v=\langle(H-\bar E)^2\rangle, the probability outside [Eˉ−δ,Eˉ+δ][\bar E-\delta,\bar E+\delta] is at most v/δ2v/\delta^2. That window can contain several levels. For example, an equal superposition of levels separated by ε\varepsilon has variance ε2/4\varepsilon^2/4 and squared overlap 1/21/2 with each. Identifying a particular eigenstate requires spectral separation.

    What changes when enumeration is removed

    For large systems the energy gradient is estimated from the Born distribution. If physically relevant configurations have tiny model probability, a finite batch can omit them repeatedly. A numerically stable sampled gradient may then optimize a restricted effective support. This problem is distinct from the zero-initialization obstruction above.

    Zhou et al. analyze this loss of sampled support and modify the gradient update to give greater weight to sampled low-probability configurations. Their tests include molecules and frustrated spins. On the eight-spin ring the exact gradient is available, so one can directly measure which components a finite batch misses. Zhou et al., §§II.1–II.4

    A controlled extension takes one of our saved parameter vectors and compares exact and sampled gradients at that same state. Vary batch size and sampler separately; measure the error in the energy-lowering direction, not merely the energy estimate. Only then compare optimizers with matched samples and computational cost. Moving directly to a larger network changes too many variables at once.

    For field theory, add the field regulator and constraints before scaling the architecture. Fermionic antisymmetry, gauge invariance and complex dynamical phases require different representations from this positive Ising ground state. A successful eight-spin fit establishes neither a solution of the sign problem nor efficient real-time evolution.

    References

    Extract the Ising wavefunctions, optimization code and results (ZIP) and run python3 examples/research/matter-computation/neural.py. All nine trained parameter sets, stopping outcomes, variances, correlations and fidelities are retained. The inspected Library's finite-spin and real-even RBM kernels are reused; the new width-and-seed comparison is performed explicitly.

    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.