Skip to main content
This page is the demo

A quantum circuit.
Simulated in your browser, byte-for-byte.

Simulate a circuit in this browser in whole-number arithmetic, and check its state byte for byte against the reference.

What arrived over the wire is a wai.quantum.circuit or wai.quantum.circuit2 container — a gate op-log, a few hundred bytes. Your device classically simulates it with the same pure-i64 Rust native sinks run, compiled to wasm32: every amplitude is a fixed-point complex integer (re, im : i64), no float anywhere, no ML runtime, and no quantum hardware. The circuit is tiny; the state it reconstructs is 2n amplitudes — exponential. Because the whole simulation is integer, the reconstructed statevector is byte-identical on every machine, so the page re-checks its BLAKE3 against the hash the native reference produced (statevector-equivalence). The two QFT presets are the quantum Fourier transform — the “quantum FFT,” carried as a circuit and reconstructed exactly. The circuit2 presets are the same transforms in the successor capability, whose phase table is correctly rounded; each capability has its own reference hashes. No speedup is claimed: this makes a quantum computation a transportable, receiptable object, not a fast one.

circuit: circuit2:
circuit — capability — wire — qubits — gates — state — decode —
statevector hash — native hash —

Why this is worth a receipt

Real quantum hardware is noisy and its measurement is stochastic, and WAI rests on byte-exact determinism. So WAI does not run on a quantum computer; it carries a quantum computation. The op-log above is a few hundred bytes; your device reconstructed the exponential statevector and proved its hash matches the native reference and the conformance corpus — the same bytes on every machine. Statevector simulation is exponentially expensive, which is why a byte-exact, signed record of the run and its work (see the QuantumReceipt) is worth keeping. No quantum advantage is claimed — the value is that the result and its cost are auditable.

Where it lives. The wai.quantum.circuit and wai.quantum.circuit2 capabilities are in the standard (the quantum-sim extension), with its reference engine and conformance corpus in the open-standards repo, Apache-2.0. Energy: not metered in this demo; it seals no energy figure.

Where to go from here