Papers
Topics
Authors
Recent
Search
2000 character limit reached

Sample-Based Neural Diagonalization (SND)

Updated 8 July 2026
  • SND is a neural-network-assisted method that predicts eigenvalue spectra or selects basis states to enable efficient diagonalization in quantum models.
  • It replaces costly exact diagonalization with surrogate models in both spin–fermion and quantum Ising setups, reducing complexity from O(N³) to O(N·h).
  • Adaptive basis SND (AB-SND) extends this approach by learning basis transformations that concentrate ground-state weight for more precise energy estimates.

Sample-based Neural Diagonalization (SND) denotes a class of neural-network-assisted strategies for reducing the cost of diagonalization in quantum many-body computation. In the literature represented by Stratis et al., SND is a feed-forward eigenvalue surrogate used inside Monte Carlo sample generation for the spin–fermion, or double-exchange, model, replacing repeated exact diagonalization of a fermionic matrix by direct prediction of its spectrum (Stratis et al., 2022). In later work on sample-based diagonalization (SBD), SND instead denotes an autoregressive neural sampler that selects basis configurations for projected diagonalization, while adaptive-basis SND (AB-SND) augments this with a learnable basis transformation (Cantori et al., 18 Aug 2025). This suggests that the unifying idea is not a single canonical architecture, but the use of learned samples or learned spectra to make spectrally informed computation tractable.

1. Scope of the term and problem classes

The term SND is used in two distinct settings. In the spin–fermion setting, the computational bottleneck is the repeated evaluation of all single-particle eigenvalues for a Hamiltonian that depends on a classical spin configuration. In the SBD setting, the bottleneck is the selection of a small but effective basis subspace whose projected Hamiltonian yields an accurate ground-state estimate. In both cases, the learned model is coupled directly to a diagonalization-related step rather than being used only as a generic regressor or classifier.

Setting Learned object Computational role
Spin–fermion model Full spectrum {λ^i(S)}\{\hat\lambda_i(S)\} or free energy F^(S)\hat F(S) Replace exact diagonalization during Monte Carlo proposals
SBD for quantum Ising models Autoregressive sampler pθ(x)p_\theta(x) Select basis states for projected diagonalization
AB-SND Sampler plus basis transformation Concentrate the ground state before projected diagonalization

A common source of confusion is to assume that SND names a single fixed algorithm. In the cited literature, it instead names two related but non-identical constructions: one predicts eigenvalues of a configuration-dependent Hamiltonian, and the other learns how to sample basis states that make a projected Hamiltonian accurate. The overlap lies in the reliance on neural networks to extract spectrally relevant information from samples.

2. Spin–fermion SND as neural eigenvalue prediction

In the spin–fermion formulation, the system consists of NN classical unit spins S={S1,,SN}S=\{S_1,\dots,S_N\} with SiR3S_i\in\mathbb{R}^3 and Si=1|S_i|=1, coupled to spinful fermions on the same sites. The single-orbital spin–fermion, or double-exchange, Hamiltonian is

H(S)=ti,j,σ(ciσcjσ+h.c.)+J2i,α,β,γSiγciασαβγciβ,H(S) = -t \sum_{\langle i,j\rangle,\sigma} (c_{i\sigma}^\dagger c_{j\sigma} + h.c.) + \frac{J}{2} \sum_{i,\alpha,\beta,\gamma} S_i^\gamma c_{i\alpha}^\dagger \sigma^\gamma_{\alpha\beta} c_{i\beta},

with t=1t=1, Hund coupling JJ, Pauli matrices F^(S)\hat F(S)0, and nearest-neighbor pairs F^(S)\hat F(S)1. For each classical-spin update in a Monte Carlo sweep, one must recompute all single-particle eigenvalues F^(S)\hat F(S)2 of the F^(S)\hat F(S)3 fermion matrix, and standard dense diagonalization scales as F^(S)\hat F(S)4 (Stratis et al., 2022).

Three surrogate models are compared in this formulation: a linear Heisenberg model fitting F^(S)\hat F(S)5 as F^(S)\hat F(S)6, an F^(S)\hat F(S)7 feed-forward network predicting free energy directly, and an F^(S)\hat F(S)8 model predicting the full spectrum. The SND construction is the eigenvalue model. Its input is the flattened real vector

F^(S)\hat F(S)9

The architecture is fully connected with one hidden layer of size pθ(x)p_\theta(x)0, Softplus activation pθ(x)p_\theta(x)1, and a linear output layer of size pθ(x)p_\theta(x)2 interpreted as predicted eigenvalues. After inference, the pθ(x)p_\theta(x)3 outputs are sorted so that pθ(x)p_\theta(x)4.

Training uses exact-diagonalization data generated at each temperature pθ(x)p_\theta(x)5 from three independent Metropolis–Hastings chains. After a warm-up of pθ(x)p_\theta(x)6 proposals, the procedure generates pθ(x)p_\theta(x)7 samples for training and pθ(x)p_\theta(x)8 for validation and test, with thinning by saving one in every pθ(x)p_\theta(x)9 proposals, where NN0 is the acceptance ratio. Each saved spin configuration is labeled by its full eigenvalue set and free energy. Data augmentation exploits translation invariance and global NN1 rotation invariance using a discrete Euler-angle grid,

NN2

excluding the identity, which augments each raw sample by up to 23 non-trivial variants.

The training loss for the eigenvalue model is the mean absolute error per eigenvalue,

NN3

while mean squared error on a held-out test set is monitored as a secondary metric. Optimization uses Adam with initial learning rate NN4 and exponential decay

NN5

for NN6 epochs. Recommended hyperparameters are specified for both one and two dimensions: for 1D with NN7, NN8 uses NN9 and S={S1,,SN}S=\{S_1,\dots,S_N\}0 uses S={S1,,SN}S=\{S_1,\dots,S_N\}1; for 2D with S={S1,,SN}S=\{S_1,\dots,S_N\}2, S={S1,,SN}S=\{S_1,\dots,S_N\}3 uses S={S1,,SN}S=\{S_1,\dots,S_N\}4 and S={S1,,SN}S=\{S_1,\dots,S_N\}5 uses S={S1,,SN}S=\{S_1,\dots,S_N\}6.

3. SND as learned basis selection in sample-based diagonalization

In the later SBD formulation, the Hilbert space is expressed in the computational S={S1,,SN}S=\{S_1,\dots,S_N\}7 basis S={S1,,SN}S=\{S_1,\dots,S_N\}8 with S={S1,,SN}S=\{S_1,\dots,S_N\}9. A standard testbed is the transverse-field Ising model

SiR3S_i\in\mathbb{R}^30

whose full Hilbert dimension is SiR3S_i\in\mathbb{R}^31. One selects a subset of SiR3S_i\in\mathbb{R}^32 basis states

SiR3S_i\in\mathbb{R}^33

defines the projector

SiR3S_i\in\mathbb{R}^34

and forms the projected Hamiltonian

SiR3S_i\in\mathbb{R}^35

Diagonalizing the SiR3S_i\in\mathbb{R}^36 matrix SiR3S_i\in\mathbb{R}^37 yields eigenvalues SiR3S_i\in\mathbb{R}^38, with SiR3S_i\in\mathbb{R}^39 a variational upper bound to the true ground-state energy Si=1|S_i|=10 and Si=1|S_i|=11 as Si=1|S_i|=12 (Cantori et al., 18 Aug 2025).

The central issue is how to choose the Si=1|S_i|=13 basis states so that Si=1|S_i|=14 is accurate while Si=1|S_i|=15. Standard SBD samples configurations from a heuristic distribution, such as squared amplitudes of a variational neural-quantum-state, but this fails when the true ground state is delocalized in the computational basis. SND replaces the fixed heuristic sampler by an autoregressive neural network Si=1|S_i|=16 trained to focus on bitstrings with large ground-state weight, with the explicit target

Si=1|S_i|=17

Training proceeds in Si=1|S_i|=18 batches of Si=1|S_i|=19 sampled bitstrings each. For batch H(S)=ti,j,σ(ciσcjσ+h.c.)+J2i,α,β,γSiγciασαβγciβ,H(S) = -t \sum_{\langle i,j\rangle,\sigma} (c_{i\sigma}^\dagger c_{j\sigma} + h.c.) + \frac{J}{2} \sum_{i,\alpha,\beta,\gamma} S_i^\gamma c_{i\alpha}^\dagger \sigma^\gamma_{\alpha\beta} c_{i\beta},0, the sampled set H(S)=ti,j,σ(ciσcjσ+h.c.)+J2i,α,β,γSiγciασαβγciβ,H(S) = -t \sum_{\langle i,j\rangle,\sigma} (c_{i\sigma}^\dagger c_{j\sigma} + h.c.) + \frac{J}{2} \sum_{i,\alpha,\beta,\gamma} S_i^\gamma c_{i\alpha}^\dagger \sigma^\gamma_{\alpha\beta} c_{i\beta},1 defines a subspace Hamiltonian whose lowest eigenvalue is H(S)=ti,j,σ(ciσcjσ+h.c.)+J2i,α,β,γSiγciασαβγciβ,H(S) = -t \sum_{\langle i,j\rangle,\sigma} (c_{i\sigma}^\dagger c_{j\sigma} + h.c.) + \frac{J}{2} \sum_{i,\alpha,\beta,\gamma} S_i^\gamma c_{i\alpha}^\dagger \sigma^\gamma_{\alpha\beta} c_{i\beta},2. The loss is

H(S)=ti,j,σ(ciσcjσ+h.c.)+J2i,α,β,γSiγciασαβγciβ,H(S) = -t \sum_{\langle i,j\rangle,\sigma} (c_{i\sigma}^\dagger c_{j\sigma} + h.c.) + \frac{J}{2} \sum_{i,\alpha,\beta,\gamma} S_i^\gamma c_{i\alpha}^\dagger \sigma^\gamma_{\alpha\beta} c_{i\beta},3

with H(S)=ti,j,σ(ciσcjσ+h.c.)+J2i,α,β,γSiγciασαβγciβ,H(S) = -t \sum_{\langle i,j\rangle,\sigma} (c_{i\sigma}^\dagger c_{j\sigma} + h.c.) + \frac{J}{2} \sum_{i,\alpha,\beta,\gamma} S_i^\gamma c_{i\alpha}^\dagger \sigma^\gamma_{\alpha\beta} c_{i\beta},4. The corresponding REINFORCE-style gradient is

H(S)=ti,j,σ(ciσcjσ+h.c.)+J2i,α,β,γSiγciασαβγciβ,H(S) = -t \sum_{\langle i,j\rangle,\sigma} (c_{i\sigma}^\dagger c_{j\sigma} + h.c.) + \frac{J}{2} \sum_{i,\alpha,\beta,\gamma} S_i^\gamma c_{i\alpha}^\dagger \sigma^\gamma_{\alpha\beta} c_{i\beta},5

Minimizing this objective shifts probability mass toward sample sets that yield low projected energies.

AB-SND extends this by introducing a parameterized basis transformation optimized jointly with the sampler. The paper considers single-spin and non-overlapping two-spin rotations, which are tractable on classical computers, and also more expressive global unitaries that can be implemented using quantum circuits. The stated purpose is to make the ground-state wave function more concentrated, thereby enlarging the regime in which sample-based diagonalization remains effective.

4. Neural architectures, observables, and algorithmic use

The two SND formulations differ sharply in architecture. In the spin–fermion case, the network is a shallow fully connected regressor with a single hidden layer and linear spectral output. In the SBD case, the network is a Transformer encoder with causal masking, using 2 layers, 4 heads, and embedding size 64 to realize the autoregressive factorization

H(S)=ti,j,σ(ciσcjσ+h.c.)+J2i,α,β,γSiγciασαβγciβ,H(S) = -t \sum_{\langle i,j\rangle,\sigma} (c_{i\sigma}^\dagger c_{j\sigma} + h.c.) + \frac{J}{2} \sum_{i,\alpha,\beta,\gamma} S_i^\gamma c_{i\alpha}^\dagger \sigma^\gamma_{\alpha\beta} c_{i\beta},6

At step H(S)=ti,j,σ(ciσcjσ+h.c.)+J2i,α,β,γSiγciασαβγciβ,H(S) = -t \sum_{\langle i,j\rangle,\sigma} (c_{i\sigma}^\dagger c_{j\sigma} + h.c.) + \frac{J}{2} \sum_{i,\alpha,\beta,\gamma} S_i^\gamma c_{i\alpha}^\dagger \sigma^\gamma_{\alpha\beta} c_{i\beta},7, the model sees H(S)=ti,j,σ(ciσcjσ+h.c.)+J2i,α,β,γSiγciασαβγciβ,H(S) = -t \sum_{\langle i,j\rangle,\sigma} (c_{i\sigma}^\dagger c_{j\sigma} + h.c.) + \frac{J}{2} \sum_{i,\alpha,\beta,\gamma} S_i^\gamma c_{i\alpha}^\dagger \sigma^\gamma_{\alpha\beta} c_{i\beta},8 plus optional conditioning for AB-SND, and output logits are converted to probabilities by a softmax, optionally temperature-scaled during inference (Cantori et al., 18 Aug 2025).

In the spin–fermion setting, SND is embedded directly into thermodynamic estimation. Given exact eigenvalues H(S)=ti,j,σ(ciσcjσ+h.c.)+J2i,α,β,γSiγciασαβγciβ,H(S) = -t \sum_{\langle i,j\rangle,\sigma} (c_{i\sigma}^\dagger c_{j\sigma} + h.c.) + \frac{J}{2} \sum_{i,\alpha,\beta,\gamma} S_i^\gamma c_{i\alpha}^\dagger \sigma^\gamma_{\alpha\beta} c_{i\beta},9, the fermionic free energy is

t=1t=10

SND replaces t=1t=11 by t=1t=12 and computes

t=1t=13

The resulting surrogate free energy is used in the Metropolis acceptance step,

t=1t=14

and the same replacement is propagated into the formulas for average internal energy, specific heat, magnetization t=1t=15, and staggered magnetization t=1t=16 (Stratis et al., 2022).

In the SBD setting, by contrast, the learned model is not predicting eigenvalues of the full Hamiltonian. It is selecting a basis in which a smaller projected Hamiltonian can be assembled and diagonalized. The optimization target is therefore energetic rather than reconstructive: the reported relative error is

t=1t=17

This distinction matters conceptually. In the spin–fermion formulation, the network acts as a surrogate for a spectral map t=1t=18; in the SBD formulation, it acts as a proposal mechanism for the subspace itself.

5. Benchmarks, accuracy, and scaling behavior

For the spin–fermion model, the reported results show a strong separation between one and two dimensions. In 1D with t=1t=19, JJ0 reaches test-set JJ1 and mean absolute error per eigenvalue of order JJ2–JJ3. Over JJ4, the reported errors are JJ5. In 2D with JJ6, similar MSE levels are obtained at all temperatures, with slightly higher errors at the lowest JJ7; over JJ8, JJ9 yields errors F^(S)\hat F(S)00 down to F^(S)\hat F(S)01. For thermodynamic observables in 1D, all models reproduce F^(S)\hat F(S)02, F^(S)\hat F(S)03, F^(S)\hat F(S)04, and F^(S)\hat F(S)05 within statistical error using F^(S)\hat F(S)06 Monte Carlo samples. In 2D, only F^(S)\hat F(S)07, and to a lesser extent the RKKY-inspired Heisenberg model, remain accurate for F^(S)\hat F(S)08 and F^(S)\hat F(S)09 below F^(S)\hat F(S)10, whereas the free-energy network F^(S)\hat F(S)11 fails in the low-temperature regime despite low MSE on F^(S)\hat F(S)12. The computational comparison is F^(S)\hat F(S)13 per update step for exact diagonalization versus F^(S)\hat F(S)14 for SND inference; for F^(S)\hat F(S)15 and F^(S)\hat F(S)16, the reported proposal-stage speed-up is F^(S)\hat F(S)17–F^(S)\hat F(S)18, with end-to-end acceleration depending on how many proposals are retained versus discarded (Stratis et al., 2022).

For SBD-based SND and AB-SND, the benchmarks cover 1D ferromagnetic TFIM with periodic boundaries up to F^(S)\hat F(S)19, 2D square-lattice TFIM with open boundaries at F^(S)\hat F(S)20, and a 2D Edwards–Anderson spin glass with F^(S)\hat F(S)21 at F^(S)\hat F(S)22. The reported dependence on sample count F^(S)\hat F(S)23 shows that, for F^(S)\hat F(S)24 where the ground state is concentrated, all SBD variants improve as F^(S)\hat F(S)25 grows. Standard SBD from NQS sampling saturates around F^(S)\hat F(S)26 when F^(S)\hat F(S)27 in the 2D-EAM. SND matches NQS-SBD for small F^(S)\hat F(S)28 but fails for the disordered spin-glass regime, with error F^(S)\hat F(S)29. AB-SND with single-spin rotations outperforms both, reaching F^(S)\hat F(S)30 with F^(S)\hat F(S)31. As a function of transverse field, standard methods fail as F^(S)\hat F(S)32, while AB-SND maintains small F^(S)\hat F(S)33 from F^(S)\hat F(S)34 to F^(S)\hat F(S)35, with only a peak near the quantum phase transition F^(S)\hat F(S)36 and still reported error F^(S)\hat F(S)37 for F^(S)\hat F(S)38. For scaling with system size, the paper reports that achieving F^(S)\hat F(S)39 in the 1D TFIM at F^(S)\hat F(S)40 requires exponentially growing F^(S)\hat F(S)41 for standard NQS-SBD beyond F^(S)\hat F(S)42, whereas AB-SND with adaptive single-spin rotations needs essentially constant F^(S)\hat F(S)43 up to F^(S)\hat F(S)44. Additional results indicate that non-overlapping two-spin adaptive rotations further reduce F^(S)\hat F(S)45 near criticality, and that a proof-of-concept shallow VQE-style circuit on 6 qubits with 16 samples yields F^(S)\hat F(S)46 except extremely close to F^(S)\hat F(S)47 (Cantori et al., 18 Aug 2025).

6. Limitations, misconceptions, and extensions

A common misconception is that low scalar free-energy error is sufficient for reliable thermodynamics. The spin–fermion results explicitly counter this in two dimensions: the free-energy network F^(S)\hat F(S)48 can exhibit low MSE on F^(S)\hat F(S)49 and still fail in the low-F^(S)\hat F(S)50 regime for F^(S)\hat F(S)51 and F^(S)\hat F(S)52. The corresponding interpretation given in the source is that SND works best when the target is the full spectrum, because a richer target retains more information than the scalar free energy. The same source also states that simple 1D chains can be captured even by low-dimensional Heisenberg fits, whereas in 2D the spectrum network is crucial. Reported limitations include overfitting of F^(S)\hat F(S)53 in 2D, training cost scaling as F^(S)\hat F(S)54 because each label contains F^(S)\hat F(S)55 eigenvalues, and a practical limit around F^(S)\hat F(S)56 (Stratis et al., 2022).

In the SBD line of work, a different misconception would be to equate SND with exact reconstruction of wave-function amplitudes. The stated objective is energy-based: SND and AB-SND target low projected energies rather than direct amplitude reconstruction. Reported limitations include duplicate samples as F^(S)\hat F(S)57 grows, non-convex optimization landscapes, and degradation of plain SND near critical points or in spin-glass regimes. The paper notes that increasing the effective temperature in the final softmax dramatically raises the yield of unique samples while barely affecting F^(S)\hat F(S)58. It further suggests advanced RL or second-order optimizers for difficult landscapes, deeper entangling circuits on real quantum hardware for greater accuracy, and extensions to excited states via deflated diagonalization or to time evolution by projecting the propagator (Cantori et al., 18 Aug 2025).

The two lines of work also point to different extension paths. In the spin–fermion setting, retraining on spectra is proposed for other quantum-classical hybrids such as Holstein and Kondo-lattice models, with the additional suggestion that one may pre-train at high temperature and reuse the spectrum network across temperatures, and that equivariant architectures such as graph-neural networks could incorporate lattice symmetries more directly. In the SBD setting, AB-SND indicates that basis adaptation can be as important as sampling itself when the target state is delocalized. Taken together, these results support a narrow but technically significant conclusion: within the current literature, SND is best understood as a neural mechanism for concentrating spectral relevance—either by predicting the spectrum attached to a sampled configuration, or by sampling the basis states on which a projected diagonalization should be performed.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (2)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Sample-based Neural Diagonalization (SND).