open-standards/wai/wai-quantum/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Transaction Science f0591f1bc3
Some checks failed
standards workspaces build + test / aac-rs (push) Successful in 37s
standards workspaces build + test / joule-code-rs (push) Successful in 47s
standards workspaces build + test / jouleclaw-rs (push) Successful in 2m34s
standards workspaces build + test / joulecontract-rs (push) Successful in 39s
no-vanity-metrics / Scan committed Markdown for vanity metrics (push) Has been cancelled
standards workspaces build + test / arl-rs (push) Has been cancelled
standards workspaces build + test / eoc-rs (push) Has been cancelled
standards workspaces build + test / jcp-rs (push) Has been cancelled
standards workspaces build + test / joule-ui-rs (push) Has been cancelled
standards workspaces build + test / jouledesk-rs (push) Has been cancelled
standards workspaces build + test / joulehook-rs (push) Has been cancelled
standards workspaces build + test / mesh-rs (push) Has been cancelled
standards workspaces build + test / openpay (push) Has been cancelled
standards workspaces build + test / proof-rs (push) Has been cancelled
standards workspaces build + test / sandbox-rs (push) Has been cancelled
standards workspaces build + test / sense-rs (push) Has been cancelled
standards workspaces build + test / smart-byte-rs (push) Has been cancelled
WAI conformance / cargo-class corpora · linux (push) Has been cancelled
WAI conformance / cargo-class corpora · linux-arm64 (push) Has been cancelled
WAI conformance / cargo-class corpora · macos (push) Has been cancelled
WAI conformance / cargo-class corpora · windows (push) Has been cancelled
WAI conformance / cross-arch byte-equality · linux (push) Has been cancelled
WAI conformance / cross-arch byte-equality · linux-arm64 (push) Has been cancelled
WAI conformance / cross-arch byte-equality · macos (push) Has been cancelled
WAI conformance / cross-arch byte-equality · windows (push) Has been cancelled
WAI conformance / C2PA manifest emission · signed, read back, validated (push) Has been cancelled
standards workspaces build + test / map-rs (push) Has been cancelled
wai-quantum 0.3.21: test the cross-architecture claim instead of asserting it
The crate description has long promised "identical results native, in the
browser, and as a WASI component at the edge". That was last checked around
0.3.3, and everything since -- quantum_source's f64 Jacobi eigensolver and its
hand-rolled log2, quantum_channel, the qudit and comm layers -- landed without it
being rechecked. I had also flagged, and not closed, that the entropy
reproducibility test only proved one machine agreed with itself.

Both are now closed, and the result is stronger than expected: the ENTIRE suite
passes under wasm32-wasip2 on wasmtime, 266 tests, not merely a sample.

  CARGO_TARGET_WASM32_WASIP2_RUNNER=wasmtime \
    cargo test --release --target wasm32-wasip2 --features full

Thirteen CLI invocations were also compared byte-for-byte between native
aarch64-darwin and the wasm component, covering the integer dyadic core, the f64
entropy and channel paths, CHSH, qutrits, BB84 and an Ed25519 receipt. All
identical -- including JSON that prints full-precision f64 such as
1.000000000824584, so this is bit-identical floating point rather than agreement
after rounding.

To keep it closed, two tests now pin exact IEEE-754 bits rather than tolerances:
the maximally mixed case, and -- because equal eigenvalues barely exercise the
eigensolver -- a half-depolarized |+> whose spectrum is genuinely non-trivial,
along with its Holevo bound. A platform that computes something different now
fails the suite instead of quietly returning a different number.

This is what avoiding libm bought. `ln` is free to differ in its last places
between platforms; computing log2 in-crate by repeated squaring is what makes the
bits agree, and that is now demonstrated rather than argued.

Co-Authored-By: Claude Opus 5 <[email protected]>
2026-09-10 12:01:42 -04:00
..
lib.rs wai-quantum 0.3.17: the channel, and the direction of the arrow 2026-09-07 05:58:33 -04:00
merkle.rs wai: extract the quantum stack into a standalone wai-quantum crate 2026-09-03 15:29:50 -04:00
quantum.rs wai-quantum 0.3.12: the last gate that was still paying full price 2026-09-07 03:39:35 -04:00
quantum_atom.rs wai: extract the quantum stack into a standalone wai-quantum crate 2026-09-03 15:29:50 -04:00
quantum_cal.rs wai: extract the quantum stack into a standalone wai-quantum crate 2026-09-03 15:29:50 -04:00
quantum_channel.rs wai-quantum 0.3.21: test the cross-architecture claim instead of asserting it 2026-09-10 12:01:42 -04:00
quantum_comm.rs wai-quantum 0.3.15: key distribution, and the cost of listening 2026-09-07 04:20:31 -04:00
quantum_compile.rs wai: extract the quantum stack into a standalone wai-quantum crate 2026-09-03 15:29:50 -04:00
quantum_control.rs wai: extract the quantum stack into a standalone wai-quantum crate 2026-09-03 15:29:50 -04:00
quantum_info.rs wai-quantum 0.3.17: the channel, and the direction of the arrow 2026-09-07 05:58:33 -04:00
quantum_kernel.rs wai: extract the quantum stack into a standalone wai-quantum crate 2026-09-03 15:29:50 -04:00
quantum_mitigate.rs wai: extract the quantum stack into a standalone wai-quantum crate 2026-09-03 15:29:50 -04:00
quantum_mps.rs wai: extract the quantum stack into a standalone wai-quantum crate 2026-09-03 15:29:50 -04:00
quantum_noise.rs wai: extract the quantum stack into a standalone wai-quantum crate 2026-09-03 15:29:50 -04:00
quantum_ops.rs wai: extract the quantum stack into a standalone wai-quantum crate 2026-09-03 15:29:50 -04:00
quantum_pauli.rs wai: extract the quantum stack into a standalone wai-quantum crate 2026-09-03 15:29:50 -04:00
quantum_phasor.rs wai: extract the quantum stack into a standalone wai-quantum crate 2026-09-03 15:29:50 -04:00
quantum_phasor_meter.rs wai-quantum 0.3.1: document all 21 modules on docs.rs, fix broken doc links 2026-09-04 05:51:15 -04:00
quantum_qbom.rs wai: extract the quantum stack into a standalone wai-quantum crate 2026-09-03 15:29:50 -04:00
quantum_qdata.rs wai: extract the quantum stack into a standalone wai-quantum crate 2026-09-03 15:29:50 -04:00
quantum_qec.rs wai-quantum 0.3.20: the colour code, and the gate it buys 2026-09-10 10:43:29 -04:00
quantum_qfhrr.rs wai: extract the quantum stack into a standalone wai-quantum crate 2026-09-03 15:29:50 -04:00
quantum_qir.rs wai-quantum 0.3.3: QIR ingest — interop runs both ways 2026-09-04 06:10:16 -04:00
quantum_qudit.rs wai-quantum 0.3.14: qutrits 2026-09-07 03:57:14 -04:00
quantum_receipt.rs wai-quantum 0.3.1: document all 21 modules on docs.rs, fix broken doc links 2026-09-04 05:51:15 -04:00
quantum_source.rs wai-quantum 0.3.21: test the cross-architecture claim instead of asserting it 2026-09-10 12:01:42 -04:00
quantum_stabilizer.rs wai: extract the quantum stack into a standalone wai-quantum crate 2026-09-03 15:29:50 -04:00
quantum_toolchain.rs wai-quantum 0.3.19: ingest the QASM the mainstream toolchains actually emit 2026-09-10 10:33:53 -04:00
quantum_vml.rs wai: extract the quantum stack into a standalone wai-quantum crate 2026-09-03 15:29:50 -04:00