Skip to content

An error-correction simulation estimates a logical failure probability under a specified fault model and decoder. A syndrome is an input to that decoder, not a declaration that correction succeeded. The decisive test is whether the residual operation changes the encoded information.

Helpful background. Stabilizer simulation provides efficient Clifford propagation; noise models specifies faults.

Errors, syndromes, and residual logical operators

Section titled “Errors, syndromes, and residual logical operators”

For stabilizer generators SaS_a, a Pauli error EE gives syndrome bits through

SaE=(−1)saESa.S_aE=(-1)^{s_a}ES_a.

A decoder chooses a recovery R(s)R(s). With an error-free syndrome measurement, the residual R(s)ER(s)E has trivial syndrome when recovery has the same syndrome as EE. It may still be a nontrivial logical operator. Stabilizers act trivially on code states; a nontrivial logical Pauli commutes with all stabilizers but can change encoded information. Global phases do not count as logical errors. If the syndrome measurement itself is faulty, matching the reported syndrome need not remove the actual one.

Therefore count failures using the residual logical action, or by comparing decoded logical observables, rather than merely checking that the final syndrome vanishes. Include the intended final measurement basis in the experiment definition.

Encode α∣0⟩+β∣1⟩\alpha|0\rangle+\beta|1\rangle as α∣000⟩+β∣111⟩\alpha|000\rangle+\beta|111\rangle and use stabilizers Z0Z1Z_0Z_1 and Z1Z2Z_1Z_2. Under independent bit flips of probability pp, majority recovery corrects zero or one flip. Two or three flips cause a logical XX, so

pL=3p2(1−p)+p3=3p2−2p3.p_L=3p^2(1-p)+p^3=3p^2-2p^3.

Enumerate all eight error patterns with their exact probabilities and compare to Monte Carlo. This tests syndrome ordering, recovery lookup, and failure classification independently of a large simulator.

The code does not protect arbitrary qubit noise: a single ZZ error is a logical phase error on the encoded subspace. Calling the example a general quantum memory would misstate its scope.

A code-capacity model has perfect syndrome extraction and faults on data. A phenomenological model also flips syndrome outcomes. A circuit-level model inserts faults in preparation, gates, idles, and measurement. Their logical failure rates and apparent thresholds are different quantities.

With noisy repeated measurements, detection events are often changes between consecutive syndromes. Boundary rounds require a specified initialization and final measurement rule. Omitting the last boundary can make a decoder appear better by discarding late faults.

Fault propagation through extraction circuits matters: a single ancilla fault can produce correlated data errors. A phenomenological independent-syndrome model cannot certify a circuit’s fault tolerance.

For NN independent, identically distributed trials and ff failures, estimate p^L=f/N\hat p_L=f/N and report a binomial interval. Zero failures gives an upper bound, not zero logical error. Since Pr⁡(f=0)=(1−pL)N\Pr(f=0)=(1-p_L)^N, the exact one-sided upper confidence limit at confidence 1−α1-\alpha is

pupper=1−α1/N≃−log⁡αN.p_{\rm upper}=1-\alpha^{1/N} \simeq-\frac{\log\alpha}{N}.

At 95% confidence, 10410^4 failure-free trials give the one-sided upper bound pL≤2.9953×10−4p_L\leq2.9953\times10^{-4}; they do not establish pL=0p_L=0. Compute the expression as -expm1(log(alpha)/N) when cancellation matters. This fixed-sample interval does not automatically cover an adaptively stopped simulation.

Decoder comparisons can be more precise when the same fault samples are decoded by both methods, particularly when their failures are positively correlated. Let Ai,Bi∈{0,1}A_i,B_i\in\{0,1\} indicate their failures and Di=Ai−BiD_i=A_i-B_i. Report Dˉ\bar D with standard error sD/Ns_D/\sqrt N, where sD2s_D^2 is the sample variance of these paired differences. Since

Var⁡(D)=Var⁡(A)+Var⁡(B)−2Cov⁡(A,B),\operatorname{Var}(D)=\operatorname{Var}(A) +\operatorname{Var}(B)-2\operatorname{Cov}(A,B),

treating the two estimates as independent discards the pairing. If two decoders agree on every sampled fault, their paired differences are zero; that finite sample does not establish equality of their rare-event behavior outside the sample. Use adequate failure and disagreement counts or an appropriate discrete interval near this boundary.

Report the number of rounds and whether failure is per experiment, per round, or per unit time. The conversion pexperiment≈rproundp_{\rm experiment}\approx r p_{\rm round} assumes rare approximately independent failures and is not exact for arbitrary memory dynamics.

A crossing of finite-size curves can suggest a threshold, but its position may drift with size. Test multiple sizes, enough failures near the crossing, fixed noise definitions, and stability against finite-size corrections.

Find where the repetition benchmark improves the bit-flip error probability: pL<pp_L<p.

Solution

pL−p=−p(2p−1)(p−1)p_L-p=-p(2p-1)(p-1), which is negative for 0<p<1/20<p<1/2. At p=1/2p=1/2 the output is random and no improvement occurs. This is a property of the three-bit example under independent flips, not a threshold claim for a fault-tolerant quantum architecture.

  • Dennis, E., Kitaev, A., Landahl, A., and Preskill, J., “Topological quantum memory,” Journal of Mathematical Physics 43, 4452–4505 (2002), arXiv:quant-ph/0110143 — repeated syndrome data and logical failure.
  • Gidney, C., “Stim: a fast stabilizer circuit simulator,” Quantum 5, 497 (2021), doi:10.22331/q-2021-07-06-497 — circuit-level stabilizer sampling.
  • National Institute of Standards and Technology, “Exact Binomial Confidence Limits”, Dataplot Reference Manual, accessed 12 October 2026 — binomial confidence procedures and boundary cases.