wai-quantum 0.3.38: neural quantum states held in their symmetry sector #180
Loading…
Reference in a new issue
No description provided.
Delete branch "wai-quantum-nqs-symmetry"
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 this adds
Symmetryprojects a neural quantum state onto a sector,Ψ(s) = Σ_g χ(g) ψ(g·s):Symmetry::ring,Symmetry::torus), at momentum 0 or π along each direction;with_spin_flip(odd)), with even or odd parity.Ratios and log-derivatives become weighted averages over the transformed configurations. They are held in a per-configuration cache that accepted Metropolis moves keep exact. A configuration the symmetry forbids, whose projected sum is below the rounding of its own terms, is treated as exactly zero, since its log-derivative would be noise over noise.
Biases now start random, like the weights. With zero biases a network is exactly even under the global flip, and training keeps it even. That is what held 10-site rings away from their odd singlet ground state in 0.3.37 (documented there).
SR falls back to an eigendecomposition (eigenvalues below
10⁻¹²of the largest dropped) when Cholesky loses a pivot. A projected network started near even has log-derivatives up to10⁸and a metric diagonal of10¹². Against an absolute shift of10⁻³the factorisation produced NaN. Runs that factor cleanly keep their bits.Checked
Ψby its character and a global flip by its parity. The cache stays equal to a fresh one through accepted moves.α = 1, every configuration enumerated:< 10⁻⁸α = 1network projected onto momentum 0 and even parity, 1000 samples a step:7.7·10⁻³ ± 1.2·10⁻³after 2000 steps;wasm32-wasip2.nqs --project [--kpi] [--odd]is byte-identical under WASI.Boundaries
🤖 Generated with Claude Code