A neural wave function is a neural network that takes a candidate electron arrangement and returns its quantum amplitude. It is trained to minimize the energy of a molecule, with no dataset involved. These models now reach chemical accuracy on small molecules. Each training step, however, evaluates the network on millions of electron arrangements, because the energy of one sampled arrangement depends on the network's output at every arrangement the molecular Hamiltonian connects it to. Weight quantization is the obvious way to make those evaluations cheaper. It means storing weights in 2–4 bits instead of 32, and it has been pushed to 2 bits in language models. We argue that the standard recipe transfers badly, and that the reason is specific to physics. Language-model quantizers match layer outputs on inputs drawn from the data distribution. The energy of a wave function depends instead on ratios of amplitudes between pairs of connected arrangements. The error that matters is error in those ratios, weighted by the Hamiltonian coupling between the pair.
The proposal is a post-training quantizer for neural wave functions. It keeps the second-order error-compensating rounding of GPTQ/QuIP, but replaces the calibration inputs with differences of activations between Hamiltonian-connected arrangement pairs, each weighted by that pair's contribution to the local energy. We test the prediction that this matters most where electrons are strongly correlated. There, several near-degenerate electron configurations are mixed with comparable amplitudes and coupled by large exchange integrals, so small ratio errors move the energy the most. The test case is the regime of stretched bonds on a dissociation curve.
Background and the gap
Strong electronic correlation is the regime where no single electron configuration describes the state. It is typical of bond breaking and open-shell transition-metal chemistry, and it is why mean-field methods fail, as The Delicate Balance of Static and Dynamic Electron Correlation documents with errors up to 30 kcal/mol on metallocene dissociation. Two papers supply the models we compress, and both run entirely in full precision without examining compression. NNQS-Transformer builds an autoregressive Transformer over orbital occupation strings, reaching chemical accuracy (errors within $1.6\times10^{-3}$ Hartree of exact full configuration interaction) on H$_2$ up to 92 qubits and handling benzene with 120 spin orbitals. Scalable neural quantum states architecture for quantum chemistry uses a masked autoencoder (MADE) and reaches parity with coupled cluster up to Na$_2$CO$_3$ with 76 qubits and $1.6\times10^6$ Hamiltonian terms. Both identify local-energy evaluation as the scaling bottleneck.
The quantization literature supplies the methods. Its failures also motivate the concern. QuIP shows that 2-bit rounding error is governed by the coherence of the weights and of the input second-moment matrix $H = XX^\top$. It reports Llama 2 70B at WikiText-2 perplexity 6.33 at 2 bits, against 123.91 for OPTQ, a collapse. Cherry on Top keeps the roughly 0.39% highest-Fisher parameters in 16 bits. PV-Tuning replaces the straight-through gradient estimator, which breaks down at 1–2 bits, with alternating continuous and sparse discrete updates.
All three calibrate on samples from a data distribution. In a neural wave function, the analogous samples come from $|\Psi|^2$, and those samples alone do not determine the energy. The file reports no study of quantized neural wave functions of any kind. The closest work, Fine-tuning Neural Network Quantum States, freezes a Vision Transformer backbone on spin lattices but never reduces bit-width.
Core Claim
The local energy of a sampled arrangement $\sigma$ is $E_{\mathrm{loc}}(\sigma)=\sum_{\sigma'} H_{\sigma\sigma'}\,\Psi(\sigma')/\Psi(\sigma)$. Suppose quantization perturbs the log-amplitude by $\delta(\sigma)$. To first order, the local energy then moves by
$$\Delta E_{\mathrm{loc}}(\sigma)\approx\sum_{\sigma'} H_{\sigma\sigma'}\frac{\Psi(\sigma')}{\Psi(\sigma)}\big[\delta(\sigma')-\delta(\sigma)\big].$$
What matters is the difference of errors between connected pairs, weighted by $w_{\sigma\sigma'}=|H_{\sigma\sigma'}\Psi(\sigma')/\Psi(\sigma)|$.
For a linear layer with weights $W$ and inputs $x$, we therefore replace the usual calibration matrix with a pair-difference matrix:
$$H_{\mathrm{pair}}=\sum_{\sigma\sim|\Psi|^2}\ \sum_{\sigma'}w_{\sigma\sigma'}\,\big(x(\sigma')-x(\sigma)\big)\big(x(\sigma')-x(\sigma)\big)^\top .$$
Here $x(\cdot)$ is the full-precision layer input for a given arrangement. We then run standard error-compensating rounding (LDLQ/GPTQ) against $H_{\mathrm{pair}}$ rather than $H$. The construction costs nothing extra in principle, because the connected pairs and their weights are already computed in every energy evaluation.
The prediction has two parts. At equilibrium geometries, where one configuration dominates and connected ratios are small, $H_{\mathrm{pair}}$ and $H$ should give similar results. At stretched geometries, $H_{\mathrm{pair}}$ should cut the 3- and 2-bit energy error substantially. The variational principle gives an honest yardstick: any quantized network is still a legitimate trial state, so its energy is an upper bound, and error can be measured without proxies.
Research Program
We first train full-precision wave functions for small molecules, using the NNQS-Transformer and MADE architectures on molecules from those papers. H$_2$O, LiCl and H$_2$ are near equilibrium. N$_2$ and an H$_2$O double O–H stretch are run along full dissociation curves. We also include the 2D $J_1$–$J_2$ Heisenberg model from Fine-tuning Neural Network Quantum States as a pure sign-structure stress test. The phase is the part of the network that sets the relative sign of amplitudes.
We then quantize the modulus and phase networks separately at 4, 3 and 2 bits and measure four things:
- the energy error against exact or near-exact references;
- the non-parallelity error along each curve, meaning the spread of the error across geometries;
- the energy variance, which is zero for an exact eigenstate;
- fidelity with the full-precision state, where exact enumeration is feasible.
To connect damage to correlation strength, we compute single-orbital entropies from the network's own samples, in the spirit of autoCAS. We then check whether degradation tracks the multiconfigurational character along each curve.
One architectural constraint must be handled. QuIP's random rotations $UWV^\top$ mix hidden units. In MADE, hidden units carry autoregressive mask degrees, so rotation breaks the ordering that makes exact sampling possible. We apply incoherence processing only to the Transformer's feature dimensions, where causality lives across positions rather than features. For MADE we restrict rotations to blocks of equal mask degree, and we report whether that restriction costs accuracy.
Baselines
The reference point is the full-precision network. The naive floor is round-to-nearest quantization with no calibration.
The direct transfer from language models is GPTQ/LDLQ rounding with incoherence processing, as in QuIP, calibrated on $|\Psi|^2$ samples. This is the strongest competitor because it is what a practitioner would do first, and it is the only baseline that differs from our method solely in the calibration matrix. It is our key ablation. Both methods get identical sample counts, the same rounding algorithm and group sizes, and matched wall-clock time. We also run a shuffled-weight control, which randomly permutes $w_{\sigma\sigma'}$ across pairs, to separate the effect of the Hamiltonian weighting from the effect of using differences at all.
The second baseline is Cherry-style mixed precision, following Cherry on Top. It keeps the top parameters by the diagonal of the stochastic-reconfiguration metric, which is the Fisher matrix of the wave function and comes for free in variational training, in 16 bits at a matched bit budget.
The third is quantization-aware variational fine-tuning. We run it with the straight-through estimator and with PV-Tuning via the AQLM codebase, reported both at equal compute and to convergence.
The strongest reported full-precision number is chemical accuracy, $1.6\times10^{-3}$ Hartree, on H$_2$ up to 92 qubits (NNQS-Transformer). No reported result was found on Lacuna for quantized neural wave functions under any method. Beating the transfer baseline means lower 3- and 2-bit energy error and non-parallelity error on the stretched geometries, at matched bits and calibration cost. Staying within $1.6\times10^{-3}$ Hartree of the full-precision network at 3 bits would count as a practical success.
Why not just…?
Why not just use BF16, or a smaller full-precision network? This is a real threat. We will run an iso-memory comparison: a full-precision network with the same number of weight bytes as each quantized model, trained from scratch. The honest caveat is that the Hamiltonian, not the weights, may dominate memory, as both NNQS papers suggest. If so, the value of low-bit weights lies in cheaper amplitude evaluations over connected arrangements, not in storage. We therefore profile what fraction of step time is spent on those evaluations, and we report throughput alongside accuracy. If that fraction is small, the practical case weakens and we will say so.
Why not just fine-tune the quantized network with variational Monte Carlo? Fine-tuning may recover most of the accuracy. But each run costs a fraction of a full training run, and the straight-through estimator is already fragile at 1–2 bits for static data (PV-Tuning). With a self-generated sampling distribution that shifts as weights flip, it may be worse. We compare fine-tuning at equal compute and as a follow-up to each post-training initialization. If fine-tuning from a naive start matches our method cheaply, the contribution shrinks to a better initialization, and we will report it that way.
Why not just rank weights by the stochastic-reconfiguration Fisher diagonal? That metric is built only from log-derivatives at sampled arrangements. It measures how much a weight changes the state, not how much it changes energy-relevant ratios between coupled pairs, so it shares the blind spot we target. The Cherry-style baseline tests this directly. If it matches our method on the stretched geometries, the pair construction is unnecessary.
Proposed Experiments
The decisive check is an interaction effect. We compare the gap between the pair-calibrated and sample-calibrated quantizers at equilibrium against the same gap at stretched N$_2$ and H$_2$O geometries. We expect the gap to be near zero at equilibrium and large when stretched, and to rise with the samples' single-orbital entropy. If the gap is uniform across geometries, the method may still help, but the link to strong correlation is false. If there is no gap at all, calibration choice is irrelevant and the naive transfer suffices.
A second check asks whether the phase network is the fragile component. We quantize modulus and phase separately at 2 bits and compare energy and variance on the frustrated $J_1$–$J_2$ lattice. A third check measures end-to-end step time and energy-evaluation throughput at 4 and 3 bits, to decide whether the accuracy retained buys actual speed.
References
- The Delicate Balance of Static and Dynamic Electron Correlation
- NNQS-Transformer: an Efficient and Scalable Neural Network Quantum States Approach for Ab initio Quantum Chemistry
- Scalable neural quantum states architecture for quantum chemistry
- QuIP: 2-Bit Quantization of Large Language Models With Guarantees
- Cherry on Top: Parameter Heterogeneity and Quantization in Large Language Models
- PV-Tuning: Beyond Straight-Through Estimation for Extreme LLM Compression
- Fine-tuning neural network quantum states
- autoCAS: A Program for Fully Automated Multiconfigurational Calculations