Skip to main content
Algorithm Pack 0.4 · Verification artifact

Inspect what the QEC artifacts actually prove

Select a bounded code, inspect its stabilizer matrix and exact single-error syndrome map, then open either the deterministic round trace or generated feed-forward carrier in Playground.

QEC correction-map inspector

Every view is projected from the built-in, identity-hashed correction artifacts. The lab exposes the checked algebra and the execution boundary side by side.

Verified artifactExperimental QEC traces

The round trace is an exact algebraic correction-map projection, not a noisy multi-round decoder, fault-tolerance proof, threshold estimate, or hardware result. Syndrome extraction circuits and logical encoding remain outside this lab.

Data qubits
5
Syndrome bits
4
Code distance
3
Covered errors
15
Unique syndromes
15
Runtime evidence
Tier 1 exhaustive

Stabilizer generator matrix

The 4 declared generators have verified GF(2) rank 4 and commute pairwise.

fnv1a32:d41e0bd1
Stabilizer generator matrix
Generatorq0q1q2q3q4
S0XZZXI
S1IXZZX
S2XIXZZ
S3ZXIXZ

Exact correction lookup

Closed-world correction map for the declared single physical Pauli error model.

0001 → X0 · X0

Exact correction lookup
SyndromeCorrectionCovered error class
0001X(q[0])X0
0010Z(q[2])Z2
0011X(q[4])X4
0100Z(q[4])Z4
0101Z(q[1])Z1
0110X(q[3])X3
0111Y(q[4])Y4
1000X(q[1])X1
1001Z(q[3])Z3
1010Z(q[0])Z0
1011Y(q[0])Y0
1100X(q[2])X2
1101Y(q[1])Y1
1110Y(q[2])Y2
1111Y(q[3])Y3

Deterministic round trace

A three-round NM-RFC-0016 experiment injects X0 in round 1 and projects every result from the exact correction artifact.

fnv1a32:6871b2fa
  1. Round 0
    Injection
    none
    Syndrome
    0000
    Correction
    none
    Residual
    Clean
    Logical invariant
    Holds for the clean round
  2. Round 1
    Injection
    X0
    Syndrome
    0001
    Correction
    X0
    Residual
    Identity modulo stabilizer
    Logical invariant
    Holds within the published model
  3. Round 2
    Injection
    none
    Syndrome
    0000
    Correction
    none
    Residual
    Clean
    Logical invariant
    Holds for the clean round

Decoder artifact: fnv1a32:d41e0bd1. No client-side correction is recomputed.

Open round trace in Playground

Evidence boundary

The exact algebraic map covers the declared single-physical-Pauli error set only. It does not prove noisy execution, repeated rounds, decoder latency, logical error rate, or fault tolerance.

Inspect generated feed-forward carrier

The source measures dedicated syndrome-register qubits and applies the verified lookup map. It intentionally does not synthesize code encoding or stabilizer-measurement circuits.

module qec_lab_qec_perfect5_code;
@target("browser-stabilizer");
fn main() {
  let q: QReg<9> = qreg[9];
  // Decoder carrier only: syndrome extraction and logical encoding are outside this lab.
  let s0: Bit = measure(q[5]);
  let s1: Bit = measure(q[6]);
  let s2: Bit = measure(q[7]);
  let s3: Bit = measure(q[8]);
  if (s0 == 0 && s1 == 0 && s2 == 0 && s3 == 1) { X(q[0]); }
  if (s0 == 0 && s1 == 0 && s2 == 1 && s3 == 0) { Z(q[2]); }
  if (s0 == 0 && s1 == 0 && s2 == 1 && s3 == 1) { X(q[4]); }
  if (s0 == 0 && s1 == 1 && s2 == 0 && s3 == 0) { Z(q[4]); }
  if (s0 == 0 && s1 == 1 && s2 == 0 && s3 == 1) { Z(q[1]); }
  if (s0 == 0 && s1 == 1 && s2 == 1 && s3 == 0) { X(q[3]); }
  if (s0 == 0 && s1 == 1 && s2 == 1 && s3 == 1) { Y(q[4]); }
  if (s0 == 1 && s1 == 0 && s2 == 0 && s3 == 0) { X(q[1]); }
  if (s0 == 1 && s1 == 0 && s2 == 0 && s3 == 1) { Z(q[3]); }
  if (s0 == 1 && s1 == 0 && s2 == 1 && s3 == 0) { Z(q[0]); }
  if (s0 == 1 && s1 == 0 && s2 == 1 && s3 == 1) { Y(q[0]); }
  if (s0 == 1 && s1 == 1 && s2 == 0 && s3 == 0) { X(q[2]); }
  if (s0 == 1 && s1 == 1 && s2 == 0 && s3 == 1) { Y(q[1]); }
  if (s0 == 1 && s1 == 1 && s2 == 1 && s3 == 0) { Y(q[2]); }
  if (s0 == 1 && s1 == 1 && s2 == 1 && s3 == 1) { Y(q[3]); }
  return 0;
}
Open carrier with feed-forward enabled