wai-quantum 0.3.24: fault-tolerant resource estimation, reproducible and signed #141
Loading…
Reference in a new issue
No description provided.
Delete branch "wai-quantum-resource"
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
wai-quantum0.3.24 adds fault-tolerant resource estimation. It takes a program's logical counts and computes the code distance, the T-state factories, the physical qubits and the wall-clock time. The estimate is a deterministic function of its inputs, and it can be sealed as a signed receipt that anyone can re-run and check.quantum_resourcecovers the full estimate:quantum_resource_receiptseals an estimate over its whole job, to the bit.verify_computationre-runs the job and demands every figure back, down to each factory round.wai-quantum estimate [factoring|chemistry|--qubits …] [--qubit …] [--frontier] [--json] [--receipt]prints or seals an estimate.verifyaccepts the receipt.Evidence
Reproduction. The model is held to the published planar-ISA tables (arXiv:2211.07629):
For example, factoring on the
(ns, 1e-4)qubit gives d = 13, 18 factories, 8,716,258 qubits and 17 h 43 min.Mutations. Each of these breaks those tests:
A pruning rule that no published row depended on was removed.
Where the source disagrees with itself. Four places where its prose and its numbers disagree:
Separately, one printed factory is not the minimum of the source's own model; the search here finds one with about a sixth of the volume. Each case is documented in the module and settled by the tables.
Determinism. Receipts and estimate output are byte-identical natively and under
wasm32-wasip2. I checked 8 commands with SHA-256 over non-empty output. A native receipt verifies underwasmtime. Tampering with the headline or with one round's copy count makesverifyprint INVALID and exit 1.Pins.
tests/bit_identity.rsnow pins every figure of 12 estimates. All 9 pins pass natively and underwasm32-wasip2.Test suite.
cargo test --locked --features full --lib --tests: 338 + 9 + 3 passed. Every feature still builds alone with zero warnings.repro's sin/cos moved to a gated submodule so that the estimator, which needs onlyln, builds without dead code.Next
This PR reproduces the 2022 planar model as the baseline. Next on top of it:
🤖 Generated with Claude Code