wai-quantum 0.3.40: rectangle space groups, a sector referee on its own basis, and a sector larger than the network #194

Merged
dcharlot merged 3 commits from wai-quantum-nqs-rectangle into main 2026-10-09 03:48:28 -04:00
Owner

What

wai-quantum 0.3.40. A symmetry sector larger than the network, held to its exact answer.

  • Symmetry::rectangle(lx, ly, kx_pi, ky_pi, irrep): the translations of an lx × ly torus, each combined with the identity, the reflections x → −x and y → −y, or both (the half turn). It projects onto one of their four one-dimensional representations (RectIrrep::{A1, A2, B1, B2}), at momentum 0 or π along each direction.
  • SpinModel::exact_ground_energy_in now works on the sector's own basis: one state per orbit of the group, Σ_g χ(g)|g·r⟩ normalised for each least configuration r that no element of character −1 fixes. It reaches 24 spins.
    • The projector referee it replaces (Lanczos on P H P) stays in the tests as an independent cross-check.
  • The CLI and nqs_ground take --reflections a1|a2|b1|b2. A projected run of up to 24 spins is held to its sector alone. Previously, past 20 spins, it first computed a DMRG reference and then discarded it: 136 s on the 6 × 4 torus, for an answer 3 % off.

Checked

  • The two referees agree to 10⁻⁹ in all 24 sectors of the 4 × 3 J₁–J₂ torus: four representations, both momenta along x, and no flip, an even flip or an odd flip.
  • They also agree on a 10-site ring, and on an Ising ring in a transverse field, where the magnetisation is not conserved.
  • With the identity alone, the orbit referee is the plain diagonalisation. With the flip alone, one half holds the ground state and the other lies above it.
  • Every rectangle group on 4 × 3 and 6 × 4 closes and multiplies its characters.

Measured

Periodic 6 × 4 J₁–J₂ at J₂ = J₁/2: the full 24-spin diagonalisation gives −12.5405984488, and the orbit referee places it in the sector even under the half turn and both reflections, at momentum zero, with even parity.

That sector holds 15 578 configurations up to symmetry, counted by character sums; the same count gives 107 for the 4 × 4 sector of 0.3.39. A complex α = 1 network has 624 parameters.

Results after 600 steps of 1000 samples, with energies over every configuration:

projection, even parity guide relative error
translations 0.1 1.06·10⁻³
rectangle group, A₁ none 8.32·10⁻³
rectangle group, A₁ 0.1 5.57·10⁻⁴

On a sector larger than the network, the guide is worth a factor of fifteen and the reflections a factor of two. Unlike the small 4 × 4 sector, this one is not reached to rounding: what remains is the network's.

On the 6 × 6 open Heisenberg lattice (unprojected, α = 2, 800 steps) the guide doubled the error, from 3.1·10⁻³ to 6.5·10⁻³. Unprojected networks keep sampling |ψ|², and the docs say why.

Gates

  • cargo test --release --features full --lib quantum_nqs: 22 passed.
  • cargo test --release --features full --test bit_identity: 22 passed, digests unchanged.
  • cargo test --locked --features full --lib --tests --no-run (debug) compiles. Clippy is clean in the module and the example.
  • --locked resolves in all five lockfiles that pin wai-quantum.
  • scripts/check-comparative-prose.sh and scripts/check-no-vanity-metrics.sh are clean.

🤖 Generated with Claude Code

## What wai-quantum 0.3.40. A symmetry sector larger than the network, held to its exact answer. - **`Symmetry::rectangle(lx, ly, kx_pi, ky_pi, irrep)`**: the translations of an `lx × ly` torus, each combined with the identity, the reflections `x → −x` and `y → −y`, or both (the half turn). It projects onto one of their four one-dimensional representations (`RectIrrep::{A1, A2, B1, B2}`), at momentum 0 or π along each direction. - **`SpinModel::exact_ground_energy_in` now works on the sector's own basis**: one state per orbit of the group, `Σ_g χ(g)|g·r⟩` normalised for each least configuration `r` that no element of character −1 fixes. It reaches 24 spins. - The projector referee it replaces (Lanczos on `P H P`) stays in the tests as an independent cross-check. - **The CLI and `nqs_ground`** take `--reflections a1|a2|b1|b2`. A projected run of up to 24 spins is held to its sector alone. Previously, past 20 spins, it first computed a DMRG reference and then discarded it: 136 s on the 6 × 4 torus, for an answer 3 % off. ## Checked - The two referees agree to `10⁻⁹` in all 24 sectors of the 4 × 3 J₁–J₂ torus: four representations, both momenta along x, and no flip, an even flip or an odd flip. - They also agree on a 10-site ring, and on an Ising ring in a transverse field, where the magnetisation is not conserved. - With the identity alone, the orbit referee is the plain diagonalisation. With the flip alone, one half holds the ground state and the other lies above it. - Every rectangle group on 4 × 3 and 6 × 4 closes and multiplies its characters. ## Measured Periodic 6 × 4 J₁–J₂ at `J₂ = J₁/2`: the full 24-spin diagonalisation gives `−12.5405984488`, and the orbit referee places it in the sector even under the half turn and both reflections, at momentum zero, with even parity. That sector holds 15 578 configurations up to symmetry, counted by character sums; the same count gives 107 for the 4 × 4 sector of 0.3.39. A complex `α = 1` network has 624 parameters. Results after 600 steps of 1000 samples, with energies over every configuration: | projection, even parity | guide | relative error | |---|---|---| | translations | 0.1 | 1.06·10⁻³ | | rectangle group, A₁ | none | 8.32·10⁻³ | | rectangle group, A₁ | 0.1 | 5.57·10⁻⁴ | On a sector larger than the network, the guide is worth a factor of fifteen and the reflections a factor of two. Unlike the small 4 × 4 sector, this one is not reached to rounding: what remains is the network's. On the 6 × 6 open Heisenberg lattice (unprojected, `α = 2`, 800 steps) the guide doubled the error, from 3.1·10⁻³ to 6.5·10⁻³. Unprojected networks keep sampling `|ψ|²`, and the docs say why. ## Gates - `cargo test --release --features full --lib quantum_nqs`: 22 passed. - `cargo test --release --features full --test bit_identity`: 22 passed, digests unchanged. - `cargo test --locked --features full --lib --tests --no-run` (debug) compiles. Clippy is clean in the module and the example. - `--locked` resolves in all five lockfiles that pin wai-quantum. - `scripts/check-comparative-prose.sh` and `scripts/check-no-vanity-metrics.sh` are clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Symmetry::rectangle projects onto the translations of an lx × ly torus
with its half turn and axis reflections, in one of their four
one-dimensional representations (RectIrrep), at momentum 0 or π along
each direction.

SpinModel::exact_ground_energy_in now works on one state per orbit of
the group, Σ_g χ(g)|g·r⟩ normalised for each least configuration r
that no element of character −1 fixes, up to 24 spins. The projector
referee it replaces is kept in the tests, and the two agree to 1e-9 in
all 24 sectors of the 4 × 3 J1-J2 torus, on a 10-site ring, and on an
Ising ring in a transverse field. The identity alone gives the plain
diagonalisation; the flip alone splits it in two.

The CLI and nqs_ground take --reflections a1|a2|b1|b2, and hold a
projected network to its sector up to 24 spins.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The full reference was computed first and then replaced by the
sector's; past 20 spins that first step was a DMRG run (136 s on the
6 × 4 torus, and 3 % off the exact energy) whose answer was thrown
away.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
wai-quantum 0.3.40: a sector larger than the network, held to its exact answer
All checks were successful
standards workspaces build + test / mesh-rs (pull_request) Successful in 30s
standards workspaces build + test / openpay (pull_request) Successful in 1m45s
standards workspaces build + test / jouledesk-rs (pull_request) Successful in 17m7s
standards workspaces build + test / sandbox-rs (pull_request) Successful in 2m15s
standards workspaces build + test / sense-rs (pull_request) Successful in 1m9s
standards workspaces build + test / smart-byte-rs (pull_request) Successful in 3m43s
WAI conformance / cargo-class corpora · linux-arm64 (pull_request) Successful in 7m10s
WAI conformance / cross-arch byte-equality · linux-arm64 (pull_request) Successful in 24s
standards workspaces build + test / macOS energy backends (pull_request) Successful in 7m41s
WAI energy receipts / energy receipts · linux-arm64 (pull_request) Successful in 1m42s
wai-pack / wai-pack · linux-arm64 (pull_request) Successful in 1m9s
WAI conformance / cargo-class corpora · linux (pull_request) Successful in 6m14s
WAI conformance / v2 vocabulary · manifests validate as stated (pull_request) Successful in 13s
WAI conformance / cargo-class corpora · macos (pull_request) Successful in 11m51s
WAI conformance / cross-arch byte-equality · macos (pull_request) Successful in 35s
WAI conformance / independent verifiers · claims, JWP, key discovery and integer payloads (Python) (pull_request) Successful in 11m40s
WAI conformance / delivery telemetry · CMCD and CMSD against an independent library (pull_request) Successful in 8s
WAI conformance / cross-arch byte-equality · linux (pull_request) Successful in 24s
WAI energy receipts / energy receipts · macos (pull_request) Successful in 3m48s
WAI conformance / C2PA manifest emission · signed, read back, validated (pull_request) Successful in 44s
WAI energy receipts / energy receipts · linux (pull_request) Successful in 1m44s
wai-pack / wai-pack · macos (pull_request) Successful in 2m31s
WAI JPEG-AI whole decode (pinned inputs, required) / fetch pinned JPEG-AI inputs → whole decode + pixel hash, required (pull_request) Successful in 1m2s
WAI neural sink gates / model-free refusals of the neural sink (pull_request) Successful in 1m6s
wai-pack / wai-pack · linux (pull_request) Successful in 1m3s
wai-pack / wai-pack · independent verifier (Python) (pull_request) Successful in 1m38s
wai-pack / wai-pack · the floor through a media prober (pull_request) Successful in 15s
wai-pack / wai-pack · dependency licences (pull_request) Successful in 1m6s
WAI mbt2018_mean integer decode (regenerated vectors) / regenerate mbt2018_mean integer vectors → Rust decode, required (pull_request) Successful in 4m5s
wai-web wasm32 / wai-web wasm32 build · corpus, menu and writers (pull_request) Successful in 1m59s
890ed855c6
On the periodic 6 × 4 J1-J2 lattice at J2 = J1/2 the orbit referee
places the ground state (−12.54059845, equal to the full 24-spin
diagonalisation) in the sector even under the half turn and both
reflections at momentum zero, with even parity: 15 578 configurations
up to symmetry, against a complex α = 1 network's 624 parameters.
After 600 steps, energies over every configuration: translations
guided 1.06e-3; rectangle group unguided 8.32e-3; rectangle group
guided 5.57e-4.

On the 6 × 6 open Heisenberg lattice (unprojected, α = 2, 800 steps)
the guide doubled the error, so unprojected networks keep sampling
|ψ|²; the docs say so.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Transaction-Science/open-standards!194
No description provided.