wai-quantum 0.3.30: qLDPC memory at circuit level, re-derived from the circuit up #150
Loading…
Reference in a new issue
No description provided.
Delete branch "wai-quantum-ldpc"
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?
Stacked on #148 (→ #147). Merge those first; this diff then reduces to the one commit.
What
This PR adds
quantum_ldpc(wai-quantum 0.3.30). It re-derives the logical failure rates of bivariate-bicycle qLDPC memories (arXiv:2308.07915) from the circuit up.kby GF(2) rank, and a basis of logical operators. The five published presets all come out with their publishedk.quantum_framesamples the circuit and derives its error model.f64with in-crate logarithms, so a decode is the same bits on every machine.CLI:
wai-quantum ldpc …andwai-quantum ldpc --circuit …. Example:ldpc_memory.Checked against the source's own Apache-2.0 simulation software
Error model. For
[[72,12,6]]over six cycles atp = 0.003, the source's decoding-matrix columns are reproduced exactly: 2,268 for X faults and 2,232 for Z faults.Decoder. On identical syndromes and error model, the source's decoder makes the same decision as
BpOsdon all 1,500 of 1,500 shots.Failure rates per run on
[[72,12,6]](this crate combines the two halves as independent):In the source's software the two halves fail together in 2.9% of runs, against 1.3% if they were independent. That accounts for most of the gap at
p = 0.005.Half by half at
p = 0.005.[[144,12,12]].p = 0.004and0.005.Determinism.
Lint and prose. Clippy is clean on the new code, and the comparative-prose and vanity-metric checks pass.
🤖 Generated with Claude Code