Expand description
wai-quantum — a deterministic quantum stack in pure Rust.
Byte-exact circuit simulation (statevector, stabilizer, tensor-network MPS and sparse-Pauli backends), the operational layer around it (calibration, error mitigation, qLDPC decoding, noise learning, circuit-equivalence proofs, atom rearrangement), a phasor/interference ML layer, and signed energy-accounted receipts binding every stage.
No QPU, no cloud service, no vendor SDK, and no system libraries — pure Rust, so the same source runs natively, in the browser via wasm, and as a WASI component at the edge, producing byte-identical results and receipts on all three.
Everything is behind a feature; enable only what you use.
Re-exports§
pub use ed25519_dalek;
Modules§
- gates
- Gates as matrices, shared by the dense state vector and the tensor networks: any unitary on any qubits, and the standard ones by name.
- quantum
- Deterministic quantum-circuit simulation as transportable, receiptable
content —
wai.quantum.circuit(extensions/quantum-sim). - quantum_
arch - Architecture-level ESTIMATION —
wai.quantum.arch. - quantum_
atom - Deterministic neutral-atom REARRANGEMENT —
wai.quantum.rearrange(extensions/quantum-ops § Register preparation). - quantum_
bptn - Tensor-network states on the hardware graph, evolved by simple update and
read through belief-propagation environments (
wai.quantum.bptn). - quantum_
cal - Deterministic autonomous qubit CALIBRATION —
wai.quantum.cal.rabi(extensions/quantum-ops § Calibration engines). - quantum_
channel - Transport, done honestly: what a noisy channel does to a quantum state, and how you find out what arrived.
- quantum_
chem - Molecules by DMRG —
wai.quantum.chem. - quantum_
comm - Quantum communication and security: key distribution, and why eavesdropping on it is not a matter of being careful.
- quantum_
compile - Deterministic circuit COMPILATION + equivalence proof —
wai.quantum.compile(extensions/quantum-ops § Compilation). - quantum_
control - Deterministic FILTER-FUNCTION control + NOISE SPECTROSCOPY —
wai.quantum.cal.spectroscopy+wai.quantum.cal.robust_ff(extensions/quantum-ops § Calibration, frequency domain). - quantum_
dmrg - Ground states of spin chains by DMRG —
wai.quantum.dmrg. - quantum_
energy - The acquisition class of a quantum receipt’s joule figure — an optional,
signed label (
extensions/energy-measurement.md§2 and §2.8 in the WAI repository). - quantum_
frame - Noisy Clifford circuits at QEC scale —
wai.quantum.frame. - quantum_
gbs - Gaussian boson sampling, exactly —
wai.quantum.gbs. - quantum_
info - Quantum information: mixed states, subsystems, and the measurements that separate quantum theory from any classical account of it.
- quantum_
kernel - Phasor-feature classifier — the quantum kernel, deployed (
wai.quantum.kernel). - quantum_
ldpc - qLDPC MEMORY at circuit level —
wai.quantum.ldpc. - quantum_
match - Exact minimum-weight perfect-matching decoding —
wai.quantum.match. - quantum_
mitigate - Deterministic quantum ERROR MITIGATION —
wai.quantum.mitigate(extensions/quantum-ops § Mitigation). - quantum_
mps - Matrix Product State backend — the classical referee (
wai.quantum.mps). - quantum_
noise - Deterministic NOISE LEARNING —
wai.quantum.cal.noise_learn(extensions/quantum-ops § Calibration, noise model). - quantum_
noisy - Noisy circuits —
wai.quantum.noisy. - quantum_
nqs - Neural quantum states —
wai.quantum.nqs. - quantum_
ops - Quantum-operations attestation —
wai.quantum.calibration+wai.quantum.job(extensions/quantum-ops). The verify-half of WAI applied to the quantum processing industry. - quantum_
pauli - Sparse-Pauli / Heisenberg propagation — the observable referee
(
wai.quantum.pauli). - quantum_
phasor - The phasor bridge — same interference, two substrates (
wai.quantum.phasor). - quantum_
phasor_ meter - Phasor energy meter — the energy-accounted seal for an interference
computation (
wai.quantum.phasor). The generative Born machine, the phasor kernel classifier, and the phasor bridge all reduce to the same three primitives — bind (elementwise phase add), bundle (superpose), and similarity (interference readout) — and this is the receipt that prices them. - quantum_
qbom - Quantum Bill of Materials —
wai.quantum.qbom(extensions/quantum-ops § Provenance). - quantum_
qdata - Learning from quantum data — the surviving quantum advantage
(
wai.quantum.qdata). - quantum_
qec - Deterministic quantum LDPC DECODING —
wai.quantum.decode(extensions/quantum-ops § Decoding). - quantum_
qfhrr - The full Born machine on the qFHRR phasor substrate (
wai.quantum.qfhrr). - quantum_
qio - Quantum-inspired OPTIMISATION —
wai.quantum.qio. - quantum_
qir - QIR export — emit a circuit as QIR (Quantum Intermediate Representation), the LLVM-based interchange the QIR Alliance defines and quantum toolchains consume.
- quantum_
qudit - Qubits and qutrits — quantum information in base
d. - quantum_
receipt - Quantum-circuit receipt — the energy-accounted seal for a
wai.quantum.circuitreconstruction (extensions/quantum-sim § Receipt). - quantum_
resource - Fault-tolerant RESOURCE ESTIMATION —
wai.quantum.resource. - quantum_
resource_ receipt - Signed, re-checkable resource estimates (
wai.quantum.resource). - quantum_
source - What quantum mechanics actually says about encoding and transporting information — including, most usefully, what it says you cannot do.
- quantum_
spd - Sparse Pauli dynamics at utility scale (
wai.quantum.spd). - quantum_
spd_ receipt - Signed, energy-accounted receipts for sparse Pauli dynamics
(
wai.quantum.spd). - quantum_
stabilizer - Stabilizer (CHP) backend — the O(n²) Clifford tier (
wai.quantum.stabilizer). - quantum_
sv - The dense state vector, any gate at any angle —
wai.quantum.sv. - quantum_
tdvp - Time evolution of spin chains by TDVP —
wai.quantum.tdvp. - quantum_
tn - Tensor-network contraction —
wai.quantum.tn. - quantum_
toolchain - WAI Quantum Toolchain — the compute core of a classical-hardware quantum IDE
(extensions/quantum-sim § Toolchain,
wai.quantum.toolchain). - quantum_
uf - Union-find DECODING in near-linear time —
wai.quantum.uf. - quantum_
vml - Variational quantum machine learning — interference on classical hardware
(
wai.quantum.vml).