wai-quantum 0.3.39: the square's whole space group, a referee in each sector, and guided sampling #188
Loading…
Reference in a new issue
No description provided.
Delete branch "wai-quantum-nqs-pointgroup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
wai-quantum 0.3.39. The square lattice's whole space group for neural-quantum-state projection, an exact referee inside each symmetry sector, and guided sampling. Together they take the periodic 4 × 4 J₁–J₂ lattice at
J₂ = 0.5to its ground energy to1.7·10⁻¹²with a complexα = 1network in 600 steps. That is on a sector of 107 configurations, against 288 parameters: see Measured.Symmetry::square(l, momentum_pi, irrep)— every translation of anl × ltorus, each composed with the eight rotations and reflections about a site, in one of their four one-dimensional representations (PointIrrep::{A1, A2, B1, B2}), at momentum 0 or (π, π). Both momenta are left alone by every rotation and reflection, so a point-group character extends to the whole group.Symmetry::check()— proves a set of elements a group under composition and its characters±1and multiplicative. Without that,Σ_g χ(g) ψ(g·s)projects onto a mixture or onto nothing.ringandtorusnow refuse a momentum π that their lengths cannot carry.SpinModel::exact_ground_energy_in(magnetisation, &Symmetry)— Lanczos onP H P, re-projected after every product so rounding cannot drift into a lower sector. A projected network is now held to its own sector's ground energy. It refuses a set that is not a group, a model the group does not preserve (SpinModel::commutes_with), a flip out of a nonzero magnetisation, and an empty sector.2ⁿ, with the same start values and the same order of sums. The 22 determinism pins are unchanged.nqs_groundtake--point-group a1|a2|b1|b2and report the exact energy in the projection's sector.±0.1(was±0.01;--initsets it). Near zero, a projected network is nearly the projection of a constant: the uniform superposition, which at zero magnetisation is the ferromagnet's member, an eigenstate whose energy gradient vanishes. Unprojected runs keep±0.01.nqs_ground --exact-finalevaluates the trained network over every configuration, separating what training left from what sampling adds.VmcConfig::guidesamples|ψ|² + guide·|ψ̄|²,|ψ̄|the chains' typical amplitude when the batch starts, and weights each sample back by|ψ|²over that, with the error of a weighted mean. Near a node the local energy is a large number over a small one, and|ψ|²visits too rarely for the variance to be measured; the floor visits. Zero (the default) samples|ψ|²exactly as before. Projected networks in the CLI andnqs_groundsample with a guide of 0.1 (--guidesets it).Checked
±1are each refused.10⁻⁹, and the sector of momentum 0 and even parity lies above it.J₂ = J₁/2, the sector even under every rotation and reflection at momentum zero holds the ground state (−8.45792335) to10⁻⁹; the one odd under a quarter turn lies above it.σᶻfield under the flip.±0.01the projected 8-site ring starts on the ferromagnet (E = n/4, variance below10⁻³) and is still within10⁻²of it after 40 steps; from±0.1it reaches the ground state to10⁻³in 200.Measured
Periodic 4 × 4 J₁–J₂ at
J₂ = 0.5(exact−8.45792335; the next state in its sector is 13 % higher). A complexα = 1network, 600 steps of 1000 samples, its energy then taken over every configuration:Unguided from ±0.1, 2000 steps reach 4.60·10⁻⁴, and
α = 2reaches 6.91·10⁻⁴ in 600. Guided, the variance over every configuration is below 4·10⁻¹¹.The sector is small: 107 configurations up to its symmetries, against the network's 288 parameters. Reaching it to rounding says the training finds what the network can hold, not how it does where the sector is larger than the network. Unprojected, the guide changes nothing (2.78·10⁻² over every configuration, the documented ~3 %).
On the 8-site ring (every configuration enumerated, 200 steps), the start alone moves the result from 2.8·10⁻² (
±0.01) to 2.6·10⁻⁴ (±0.1) and 5·10⁻⁷ (±0.3).The sampled variance is not the variance, and the sampled energy is not a bound. The
±0.01space-group run reported 1.4·10⁻² from its final 8000 samples; over every configuration its variance is 0.55. 89 % of that sits in two configurations related by symmetry, each of probability 2.6·10⁻⁶ (expected 0.02 times in 8000 samples), where the local energy is 310 from the mean: amplitudes near a node.±0.1network is the same: 97 % of its variance sits in configurations whose probabilities total 2.4·10⁻³.A guide brings a spread tail into view, not a needle. On the
±0.1network, guided sampled variances came within 5 % of the exact one at every floor from 0.01 to 1, four seeds each; unguided seeds gave 0.11 to 2.0 times it. The±0.01network's variance sits in two configurations of 12 870, which no 8000 samples visit reliably: guided seeds still gave 0.1 to 2.3 times it.The reported acceptance now counts proposals only (a draw of two parallel spins proposes nothing; it was counted as a rejection). Moves and draws are unchanged, so every trajectory is the same bits.
The translation-only run repeats an earlier run's trajectory bit for bit at a different thread count, and its sampled final estimate is the documented 1.7 %.
Gates
cargo test --release --features full --lib quantum_nqs: 19 passed. The new tests take at most 22 s in debug under a loaded host.--lockedresolves in all five lockfiles that pin wai-quantum (wai-quantum, wai-quantum-serve, wai-rs, wai-web, wai-pack).cargo test --release --features full --test bit_identity: 22 passed, digests unchanged.--lib --tests --examples): clean in the module and the example.scripts/check-comparative-prose.sh,scripts/check-no-vanity-metrics.sh: clean.🤖 Generated with Claude Code
wai-quantum 0.3.39: the square's whole space group, a referee in each sector, and a start off the ferromagnetto wai-quantum 0.3.39: the square's whole space group, a referee in each sector, and guided sampling