Variational Neural-Network Ansatz for Continuum Quantum Field Theory
Authors
John M. Martyn, Khadijeh Najafi, Di Luo
Abstract
Physicists dating back to Feynman have lamented the difficulties of applying the variational principle to quantum field theories. In non-relativistic quantum field theories, the challenge is to parameterize and optimize over the infinitely many $n$-particle wave functions comprising the state's Fock space representation. Here we approach this problem by introducing neural-network quantum field states, a deep learning ansatz that enables application of the variational principle to non-relativistic quantum field theories in the continuum. Our ansatz uses the Deep Sets neural network architecture to simultaneously parameterize all of the $n$-particle wave functions comprising a quantum field state. We employ our ansatz to approximate ground states of various field theories, including an inhomogeneous system and a system with long-range interactions, thus demonstrating a powerful new tool for probing quantum field theories.
Concepts
The Big Picture
Imagine trying to describe a river. Not a snapshot, but every possible arrangement of water molecules at every depth, every eddy, every turbulent swirl, all at once. Now imagine the river can spontaneously create or destroy molecules, and every possible count must be accounted for simultaneously. That is, roughly, the challenge facing physicists who try to apply the variational principle to quantum field theories.
The variational principle is one of physics’ most elegant tools: guess the shape of a quantum state, adjust it until the energy is minimized, and you’ve found the ground state, the lowest-energy configuration a system can settle into. It works beautifully for atoms and molecules.
But quantum field theories, the mathematical framework describing everything from superconductors to the strong nuclear force, govern systems where particle number itself fluctuates. Every configuration with zero, one, two, or more particles must be captured at once. Feynman recognized this difficulty decades ago. The problem isn’t the physics; it’s that no one had a good way to write down a variational guess that was both flexible enough and computationally tractable.
Researchers at MIT and IBM Quantum have found that deep learning offers a surprisingly natural solution. Their framework, neural-network quantum field states (NQFS), uses a specific neural network architecture to simultaneously represent wave functions for every possible particle number, then optimizes the whole thing to find ground states of these theories.
Key Insight: By exploiting the Deep Sets neural network architecture, NQFS can represent a quantum field state spanning all possible particle numbers using a finite set of neural network parameters, turning an infinitely complex problem into a tractable optimization.
How It Works
The mathematical core of quantum field theory is Fock space, a unified structure combining separate spaces for zero particles, one particle, two particles, and so on. A quantum field state is a superposition of wave functions across all these sectors simultaneously. To apply the variational principle, you need an ansatz: a parameterized family of states you can tune. The catch is that a general ansatz must handle wave functions for any particle number using a shared set of parameters.

The Deep Sets architecture, originally developed for machine learning on unordered sets, turns out to be exactly right for this job. It computes a permutation-invariant function (giving the same result regardless of the order particles are listed, which is essential for identical bosons) by applying a network to each element individually, summing the results, then passing that sum through another network. The architecture is also variadic, accepting any number of inputs.
The NQFS ansatz uses two Deep Sets networks in tandem: one operating on particle positions, the other on pairwise separations. Their product gives the wave function for any particle number. The full state is:
- A sum over all particle sectors (0, 1, 2, …)
- Each sector described by integrating the n-particle wave function over all possible positions
- All wave functions parameterized by the same shared neural networks
Optimization uses variational Monte Carlo (VMC), a technique that estimates quantum mechanical quantities by randomly sampling particle configurations rather than computing them exactly, adapted here to work directly in Fock space. Particle configurations, including particle number itself, are sampled from the current state. Energy estimates drive gradient updates. No grid, no discretization, entirely in the continuum.
The team validated NQFS on three test cases of increasing complexity:
-
Lieb-Liniger model: bosons with contact interactions in 1D. This model is exactly solvable, so results could be checked directly against the known answer. NQFS matched ground state energies to within fractions of a percent across interaction strengths, including the strongly-interacting regime where perturbation theory fails.
-
Calogero-Sutherland model: bosons with long-range inverse-square interactions. Previous continuous matrix product state (cMPS) methods required special approximations here. NQFS handles long-range forces naturally, without modification.
-
Regularized Klein-Gordon model: an inhomogeneous system with a spatially varying mass term. cMPS methods are unstable for inhomogeneous systems and typically fall back on discretization. NQFS solved it directly in the continuum.

Across all three cases, variational energies converged reliably to the ground state.
Why It Matters
This paper closes a gap that has been open for decades. Lattice field theory (discretizing spacetime onto a grid) is the workhorse for non-perturbative calculations in nuclear and particle physics, but reaching the true continuum limit requires extrapolating across many lattice spacings, which is computationally brutal. Continuous matrix product states offered a continuum alternative but struggled with inhomogeneity and long-range interactions. NQFS sidesteps both limitations.

The deeper point is that modern deep learning architectures can be matched to the mathematical structure of quantum field theories in principled ways. Deep Sets isn’t a hack: permutation invariance is fundamental to quantum mechanics for identical particles, making it the right tool by design. Future extensions could target fermionic systems (requiring antisymmetric wave functions), higher spatial dimensions, and relativistic theories including quantum chromodynamics (QCD). The variational toolbox for quantum field theory just got a lot more powerful.
Bottom Line: Neural-network quantum field states provide the first practical, continuum variational ansatz that handles variable particle number, long-range interactions, and inhomogeneous systems, opening new computational routes into strongly-interacting quantum field theories.
IAIFI Research Highlights
This work connects deep learning and quantum field theory by recognizing that Fock space, the natural language of QFT, maps onto the Deep Sets architecture, letting each field inform the other.
NQFS shows that permutation-invariant, variadic neural networks can parameterize infinite-dimensional mathematical objects, expanding the scope of neural network quantum states beyond fixed-particle systems.
By enabling variational calculations directly in the continuum, NQFS opens a new computational pathway to ground states of strongly-interacting field theories, including systems with long-range interactions where prior methods required approximations.
Future directions include extensions to fermions, higher dimensions, and relativistic theories such as QCD; the full paper is available at [arXiv:2212.00782](https://arxiv.org/abs/2212.00782).
Original Paper Details
Variational Neural-Network Ansatz for Continuum Quantum Field Theory
2212.00782
["John M. Martyn", "Khadijeh Najafi", "Di Luo"]
Physicists dating back to Feynman have lamented the difficulties of applying the variational principle to quantum field theories. In non-relativistic quantum field theories, the challenge is to parameterize and optimize over the infinitely many $n$-particle wave functions comprising the state's Fock space representation. Here we approach this problem by introducing neural-network quantum field states, a deep learning ansatz that enables application of the variational principle to non-relativistic quantum field theories in the continuum. Our ansatz uses the Deep Sets neural network architecture to simultaneously parameterize all of the $n$-particle wave functions comprising a quantum field state. We employ our ansatz to approximate ground states of various field theories, including an inhomogeneous system and a system with long-range interactions, thus demonstrating a powerful new tool for probing quantum field theories.