wai-quantum 0.3.35: time evolution of spin chains by TDVP, held to exact answers #160
Merged
dcharlot
merged 2 commits from 2026-10-05 15:54:10 -04:00
wai-quantum-tdvp into main 2026-10-05
wai-quantum 0.3.35: time evolution of spin chains by TDVP, held to exact answers
Some checks failed
standards workspaces build + test / smart-byte-rs (pull_request) Successful in 3m40s
WAI conformance / cargo-class corpora · linux (pull_request) Successful in 4m29s
WAI conformance / v2 vocabulary · manifests validate as stated (pull_request) Successful in 12s
WAI conformance / independent verifiers · claims, JWP, key discovery and integer payloads (Python) (pull_request) Successful in 2m11s
WAI conformance / cross-arch byte-equality · linux (pull_request) Successful in 29s
WAI conformance / C2PA manifest emission · signed, read back, validated (pull_request) Successful in 46s
WAI energy receipts / energy receipts · linux (pull_request) Successful in 1m31s
WAI JPEG-AI whole decode (pinned inputs, required) / fetch pinned JPEG-AI inputs → whole decode + pixel hash, required (pull_request) Successful in 1m4s
WAI neural sink gates / model-free refusals of the neural sink (pull_request) Successful in 1m2s
WAI mbt2018_mean integer decode (regenerated vectors) / regenerate mbt2018_mean integer vectors → Rust decode, required (pull_request) Successful in 3m56s
wai-web wasm32 / wai-web wasm32 build · corpus, menu and writers (pull_request) Successful in 1m45s
standards workspaces build + test / jouleclaw-rs (pull_request) Successful in 2m41s
standards workspaces build + test / aac-rs (pull_request) Successful in 1m37s
standards workspaces build + test / joule-code-rs (pull_request) Successful in 1m0s
standards workspaces build + test / joulecontract-rs (pull_request) Successful in 41s
standards workspaces build + test / map-rs (pull_request) Successful in 41s
standards workspaces build + test / mesh-rs (pull_request) Successful in 34s
standards workspaces build + test / openpay (pull_request) Successful in 2m7s
WAI conformance / cargo-class corpora · linux-arm64 (pull_request) Successful in 6m5s
WAI conformance / cross-arch byte-equality · linux-arm64 (pull_request) Successful in 34s
WAI energy receipts / energy receipts · linux-arm64 (pull_request) Successful in 2m9s
standards workspaces build + test / arl-rs (pull_request) Successful in 3m57s
standards workspaces build + test / joule-ui-rs (pull_request) Successful in 3m58s
standards workspaces build + test / jouledesk-rs (pull_request) Successful in 4m0s
standards workspaces build + test / joulehook-rs (pull_request) Successful in 3m53s
standards workspaces build + test / sense-rs (pull_request) Successful in 3m57s
standards workspaces build + test / macOS energy backends (pull_request) Failing after 6m44s
WAI conformance / cargo-class corpora · macos (pull_request) Successful in 8m36s
WAI conformance / cross-arch byte-equality · macos (pull_request) Successful in 35s
WAI energy receipts / energy receipts · macos (pull_request) Successful in 3m2s
quantum_tdvp evolves a matrix-product state by the two-site time-dependent variational principle, a symmetric second-order sweep: - each bond goes forward half a step under its effective Hamiltonian, and the new centre goes back half a step under its one-site one; - the exponentials are Lanczos with full re-orthogonalisation, and a step that does not converge is halved; - bonds are split by a Jacobi SVD, so amplitudes resolve to rounding; - every bond's basis is completed with null vectors up to max_bond, which removes the projection error a product state's small bonds would cause. The referees are exact Krylov evolution of all amplitudes (up to 20 sites) and the free-fermion Ising quench at any length, including the Loschmidt echo. Checked: - complete bases are exact to rounding at any step size; - at 100 sites and bond 64 the critical quench stays within 1e-9 of the exact answer through t = 3, and past that the error follows the reported discarded weight; - runs are bit-identical across thread counts and natively vs wasm32-wasip2 (new pin); - the CLI command tdvp prints the same bytes natively and under WASI. A fourth-order Yoshida composition was measured as less accurate and slower, and was removed; the module docs record why. Co-Authored-By: Claude Opus 5.5 <[email protected]>
wai-quantum: the DMRG engine generic over real and complex scalars
The contraction engine, the density-matrix split and the canonical form now run on any Scalar: f64 for ground states, the crate's complex type for time evolution. Real arithmetic keeps its exact order, so the DMRG pin does not move. A Hermitian eigensolver (Householder to a real tridiagonal, the shared QL iteration, reflections carried back) serves the complex split. Co-Authored-By: Claude Opus 5.5 <[email protected]>