Quantum enters WAI the way worlds/films/scores do (instructions-at-the-sink),
never as hardware: the wire carries a compact gate op-log (WQC container), the
sink CLASSICALLY simulates it in a fixed-point complex floor (Amp = i64 re/im at
2^30), and the reconstructed 2^n statevector is byte-identical on every machine
(statevector-equivalence). Measurement is sampled by a pinned splitmix64, so a
shot histogram at a pinned (seed, shots) converges too (shot-histogram-
equivalence). Clifford+T + dyadic phase gives the QFT ("quantum FFT") transported
as a circuit and reconstructed byte-exact. Pure i64, no float/ONNX, wasm-clean.
Real quantum hardware is deliberately absent: NISQ noise + stochastic measurement
break the cross-machine determinism the whole standard rests on. No speedup is
claimed — this makes a quantum COMPUTATION transportable and receiptable.
Also lands StateVector::fidelity_fx (fixed-point state fidelity) — the quantum-
information-theory conformance metric, and the native similarity metric for this
class.
- wai-rs/src/quantum.rs core: Amp/gates/QFT/WQC/sample/fidelity
- wai-rs/src/bin/wai_quantum_vectors.rs gen/verify conformance corpus
- extensions/quantum-sim.md sub-spec (statevector/shot-histogram-equivalence)
- quantum-conformance/ committed vectors (bell, ghz3, qft3, qft5)
- SPEC.md registry row; codecs registry class; lib.rs + Cargo `quantum` feature
- include/wai.h regenerated (union of encryption + quantum FFI surface)
Tests: 10 quantum + 4 registry-coherence green; corpus verifies.
Co-Authored-By: Claude Opus 4.8 <[email protected]>