wai-quantum 0.3.36: molecules and neural quantum states, held to exact answers #164
Loading…
Reference in a new issue
No description provided.
Delete branch "wai-quantum-nqs"
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
Two ground-state solvers, each held to an exact referee, and the engine work they share.
The engine
OpSum. Any sum of products of one-site operators compiles into an exact MPO by the bipartite-graph construction. At each bond, a minimum vertex cover (Hopcroft–Karp matching plus König's theorem) sets the bond, and every coefficient is placed once. There is no numerical compression.10⁻¹².dmrg_mporuns DMRG on any MPO from any start;expectationgives⟨ψ|H|ψ⟩for any MPS.quantum_chem: molecules by DMRGOpSum.10⁻⁹for H₂, LiH, H₂O and H₆.Measured, and fixed. With a positive cutoff, DMRG from Hartree–Fock did not move at all. A product state's bases confine two-site updates to excitations within the pair, and by Brillouin's theorem those do not lower the energy. Completing the bases freed the first sweep, but the cutoff then shrank them back to the state's rank, which stalled it again. Keeping them complete reached full CI.
quantum_nqs: neural quantum statesOpSumform for DMRG.Checked
chemistry_by_dmrgandneural_quantum_states, and the re-taken DMRG pin. All 22 pins pass natively and underwasm32-wasip2.chemandnqs. Their output is byte-identical natively and under WASI, sampled NQS runs included.Shipped as one PR rather than two, to keep CI load down while the fleet's arm64 and macOS runners share one host.
🤖 Generated with Claude Code