Skip to main content

Crate wai_quantum

Crate wai_quantum 

Source
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.circuit reconstruction (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).