Skip to main content

wai_quantum/
lib.rs

1//! **wai-quantum** — a deterministic quantum stack in pure Rust.
2//!
3//! Byte-exact circuit simulation (statevector, stabilizer, tensor-network MPS and
4//! sparse-Pauli backends), the operational layer around it (calibration, error
5//! mitigation, qLDPC decoding, noise learning, circuit-equivalence proofs, atom
6//! rearrangement), a phasor/interference ML layer, and signed energy-accounted
7//! receipts binding every stage.
8//!
9//! No QPU, no cloud service, no vendor SDK, and **no system libraries** — pure
10//! Rust, so the same source runs natively, in the browser via wasm, and as a
11//! WASI component at the edge, producing **byte-identical** results and receipts
12//! on all three.
13//!
14//! Everything is behind a feature; enable only what you use.
15
16mod merkle;
17
18/// Re-exported so consumers get a **version-matched** signing type: the receipt
19/// sealing APIs take an `ed25519_dalek::SigningKey`, and a caller who depended on
20/// their own copy could easily pick an incompatible version.
21#[cfg(feature = "_signing")]
22pub use ed25519_dalek;
23
24
25#[cfg(feature = "quantum")]
26pub mod quantum;
27
28#[cfg(feature = "quantum_atom")]
29pub mod quantum_atom;
30
31#[cfg(feature = "quantum_cal")]
32pub mod quantum_cal;
33
34#[cfg(feature = "quantum_compile")]
35pub mod quantum_compile;
36
37#[cfg(feature = "quantum_control")]
38pub mod quantum_control;
39
40#[cfg(feature = "quantum_kernel")]
41pub mod quantum_kernel;
42
43#[cfg(feature = "quantum_mitigate")]
44pub mod quantum_mitigate;
45
46#[cfg(feature = "quantum_mps")]
47pub mod quantum_mps;
48
49#[cfg(feature = "quantum_noise")]
50pub mod quantum_noise;
51
52#[cfg(feature = "quantum_ops")]
53pub mod quantum_ops;
54
55#[cfg(feature = "quantum_pauli")]
56pub mod quantum_pauli;
57
58#[cfg(feature = "quantum_info")]
59pub mod quantum_info;
60
61#[cfg(feature = "quantum_qudit")]
62pub mod quantum_qudit;
63
64#[cfg(feature = "quantum_comm")]
65pub mod quantum_comm;
66
67#[cfg(feature = "quantum_source")]
68pub mod quantum_source;
69
70#[cfg(feature = "quantum_channel")]
71pub mod quantum_channel;
72
73#[cfg(feature = "quantum_qir")]
74pub mod quantum_qir;
75
76#[cfg(feature = "quantum_phasor")]
77pub mod quantum_phasor;
78
79#[cfg(feature = "quantum_phasor_meter")]
80pub mod quantum_phasor_meter;
81
82#[cfg(feature = "quantum_qbom")]
83pub mod quantum_qbom;
84
85#[cfg(feature = "quantum_qdata")]
86pub mod quantum_qdata;
87
88#[cfg(feature = "quantum_qec")]
89pub mod quantum_qec;
90
91#[cfg(feature = "quantum_qfhrr")]
92pub mod quantum_qfhrr;
93
94#[cfg(feature = "quantum_receipt")]
95pub mod quantum_receipt;
96
97#[cfg(feature = "quantum_stabilizer")]
98pub mod quantum_stabilizer;
99
100#[cfg(feature = "quantum_toolchain")]
101pub mod quantum_toolchain;
102
103#[cfg(feature = "quantum_vml")]
104pub mod quantum_vml;