Empirical/QM: independent bit-flip noise on the three-qubit code, and its residual failure #
Category: 3-Local. QM-validity layer (matrix algebra over the K2 Channel layer; no CSD
content). BACKLOG #52, the QM half.
SyndromeRecovery.lean corrects the single-error mixture ∑ₖ qₖ Eₖ ρ Eₖ exactly. The physical
noise is different: each of the three qubits flips independently with probability p, so all
eight flip patterns occur, the two- and three-flip patterns with total weight 3p² − 2p³, and
those the code mis-corrects into the logical flip X̄ = X ⊗ X ⊗ X. This file states the channel
and the exact outcome of syndrome recovery on it:
flipOp x = X^{x₁} ⊗ X^{x₂} ⊗ X^{x₃}for a patternx : Fin 2 × Fin 2 × Fin 2, with weightindepWeight p x = ∏ᵢ (p if xᵢ = 1 else 1 − p)(sum_indepWeight: they sum to1);indepFlipChannel p— the mixed-unitary channel of that family (Channel.mixedUnitaryChannel), soControlledDilation.leangives it as the Stinespring channel of one joint unitary on register ⊗ℂ⁸;flipOp_eq— every pattern is a single error times1(weight≤ 1) or timesX̄(weight≥ 2), the syndrome reading of the pattern;recoveryChannel_apply_flipOp— recovery returnsρon the first andX̄ ρ X̄on the second;- ★★
recoveryChannel_apply_indepFlipChannel_apply— on the code,R (N_p ρ) = (1 − p_fail) ρ + p_fail X̄ ρ X̄withp_fail = 3p² − 2p³: the recovered state is the input with probability1 − 3p² + 2p³and the logically flipped input otherwise (failProb_lt_of_lt_half:p_fail < pfor0 < p < 1/2, the code helps exactly belowp = 1/2).
Empirical/CSD/QEC/IndependentNoiseFlow.lean reads the joint unitary as a Σ-flow.
Source #
Nielsen–Chuang §10.1.1 (the three-qubit bit-flip code, the 3p² − 2p³ failure probability).
Flip patterns, their operators and their weights #
A flip pattern: which of the three qubits flip (1) or not (0).
Instances For
Instances For
The pattern error X^{x₁} ⊗ X^{x₂} ⊗ X^{x₃}.
Equations
Instances For
The weight of a pattern under independent flips: the product over the three qubits.
Equations
- CSD.Empirical.QM.QEC.indepWeight p x = CSD.Empirical.QM.QEC.bitWeight p x.1 * CSD.Empirical.QM.QEC.bitWeight p x.2.1 * CSD.Empirical.QM.QEC.bitWeight p x.2.2
Instances For
The pattern weights sum to 1: ((1 − p) + p)³ = 1.
The independent bit-flip channel #
The independent bit-flip channel on the register: each qubit flips independently with
probability p; ρ ↦ ∑ₓ w_p(x) Xˣ ρ Xˣ.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The logical flip, and how each pattern reads to the syndrome #
The logical bit-flip X̄ = X ⊗ X ⊗ X, which swaps |000⟩ and |111⟩.
Equations
Instances For
The number of flipped qubits in a pattern.
Equations
- CSD.Empirical.QM.QEC.flipCount x = ↑x.1 + ↑x.2.1 + ↑x.2.2
Instances For
The single-error label the syndrome assigns to a pattern: the flipped qubit for weight one,
the unflipped qubit for weight two (the code mis-corrects it), 0 for weights zero and three.
Equations
Instances For
Recovery, pattern by pattern #
The failure probability #
★★ Syndrome recovery on independent bit-flip noise, on the code: for every
code-supported ρ (P₀ ρ P₀ = ρ), R (N_p ρ) = (1 − p_fail) ρ + p_fail X̄ ρ X̄ with
p_fail = 3p² − 2p³ — the recovered state is the input with probability 1 − 3p² + 2p³ and the
logically flipped input otherwise.