Empirical/CSD: the three-qubit bit-flip code (CSD-side reading) #
Category: 3-Local (CSD-side companion to Empirical/QM/QEC/ThreeQubit.lean).
Pairs with the QM-validity bit-flip code (Shor 1995). The QM file proves error correction
as pure matrix algebra: stabilisers fix the codespace, the discretised Pauli errors give
distinct syndromes, and each X is self-inverse (recovery). This file states the CSD
reading and, since 2026-09-11, proves its two ontic halves (the error channel from a
Σ-flow; the code and error regions of Σ). The ontic content is subtler than "a flow off
the codespace", and getting it right is what makes QEC the corpus's sharpest pointer at the
dynamics layer.
- The codespace is a sub-surface of
Σ. The+1joint eigenspace of the stabilisers is a 2-dimensional subspace ofℂ⁸, i.e. aℂℙ¹ ⊂ ℂℙ⁷inside the onticΣ = ℂℙ⁷of the three-qubit register — a constraint surface within the constraint surface. - The physical error is decoherence, which is volume flow — not a volume-preserving flow
on the system alone. A coherent (stray-unitary) error would be a symplectomorphism of
Σ_sys(volume-preserving, no information lost). But the dominant error is the system entangling with the environment,|ψ_L⟩|e₀⟩ ↦ Σ_E (E|ψ_L⟩)|e_E⟩: the joint flow onΣ_sys × Σ_envis volume-preserving (Liouville — thehΦ_presfield), while the system marginal spreads as its coherence leaks into system–environment correlation. That is the "volume loss": lost from the system to the environment, conserved jointly. The Pauli errors{I, X₁, X₂, X₃}formalised on the QM side are the discretised representation of this channel (the QEC discretisation theorem), not coherent rotations. - The syndrome measurement is the entropy-extraction step — the part that actually
undoes decoherence. Measuring the stabilisers reads the environment's "which-error"
record, re-concentrating the system's spread reduced state back to a pure state in one
branch; the unitary recovery afterwards is the easy, volume-preserving return to the
codespace. The four syndrome weights are the decoherence probabilities, and each is a
sum of two computational-basis Fubini–Study volumes (a coarse-graining of the general-
NBorn-from-volume result atN = 8): "syndrome statistics as Kähler volumes."
So the honest ontic statement of QEC needs the environment Σ_env, the joint flow, and
partial trace. Since 2026-09-11 (W6, W11) that is what this module has, in two pieces:
- The error channel is produced by a
Σ-flow.bitFlipChannel_traceRight_barycenter_flow: on a joint sector (system qubit ⊗ environment qubit), for a preparation that is a product with the environment ready and an ontic flow lifting the bit-flip joint unitaryU_p(QM/QEC/BitFlipDilation.lean), the reduced density operator of the flowed preparation is the bit-flip channel applied to the system's density operator. The "volume loss" is the partial trace over the environment of a flow that is unitary on the joint space, exactly as described above. AndbitFlipFlow_traceRight_barycenteris the concrete instance: on the corpus's own sectorcpSectorDataoverℂℙ³(Σ = P = ℂℙ³,π = id), the projective actionbitFlipFlowofU_pis aΦ ≠ idflow, it liftsU_pwith no hypothesis (isUnitaryLift_bitFlipFlow, via the canonical measurable unit section), and its environment marginal is the bit-flip channel. - The code space is a region of
Σ, and the syndrome is a partition.codeRegionis the set of rays of the codespace, the sub-surfaceℂℙ¹ ⊂ ℂℙ⁷;errorRegion kis its image under the errorEₖ. ★★errorRegion_disjoint: the four error regions are pairwise disjoint — two errored codewords on one ray would share their stabiliser eigenvalues, hence their syndromes, hence their error — so the syndrome measurement is the ontic selection of which of four disjoint regions the trajectory occupies.recovery_mem_codeRegion: re-applying the identified error returns every point of its error region to the code region. - The syndrome measurement is a projective measurement whose outcomes are the regions
(2026-09-12).
QM/QEC/SyndromeRecovery.leanbuilds the syndrome projectorsPₖ(pairwise orthogonal, summing to1) and ★syndromeProj_fixes_errorRegionhere says every point of thek-th error region is fixed byPₖand annihilated by every otherPⱼ: the projectors are the indicator of the partition. The syndrome-conditioned recoveryR(KrausEₖ Pₖ: "if in regionk, applyEₖ") is then one channel that returns every code state from the mixed post-error state —Empirical/CSD/QECDecoherence.lean,syndrome_recovery_corrects_mixed, the conjunctcsd_qec_decoherence_correctedgained on 2026-09-12.
The joint flow on the three-qubit register ⊗ environment, and QEC on Σ end to end, are
Empirical/CSD/QEC/RegisterFlow.lean (2026-09-12): registerFlow on ℂℙ³¹ produces the
register's single-error channel as its environment marginal, and the syndrome-conditioned recovery
returns every code-region preparation's density operator from it (registerFlow_recovery). The
independent-noise channel (bit-flip_p)^{⊗3} itself, with its 3p² − 2p³ residual failure, is
Empirical/CSD/QEC/IndependentNoiseFlow.lean (indepFlow_recovery, 2026-09-21). The
LF5/SyndromeFlow.lean tranche carries the coherent-error syndrome flow.
Source #
Shor 1995, Phys. Rev. A 52, R2493 (the bit-flip half of the 9-qubit code).
The bit-flip channel produced by a Σ-flow #
★★ The bit-flip channel is produced by a Σ-flow. On a joint sector (system qubit ⊗
environment qubit), for a preparation that is a product with the environment ready and an ontic
flow lifting the bit-flip joint unitary U_p, the reduced density operator of the flowed
preparation is the bit-flip channel applied to the system's density operator.
The concrete flow: the bit-flip unitary acting on ℂℙ³ #
The bit-flip joint unitary as an element of U(4), reindexed to Fin 4.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The bit-flip de-isolation flow on the joint projective space ℂℙ³: the projective action of
U_p. This is a flow of the corpus's cpSectorData (Σ = P = ℂℙ³, π = id).
Equations
- CSD.Empirical.CSDBridge.QEC.bitFlipFlow p hp0 hp1 q = CSD.Empirical.CSDBridge.QEC.bitFlipU4 p hp0 hp1 • q
Instances For
The joint representative: the canonical unit section of ℂℙ³, transported to Fin 2 × Fin 2.
Equations
Instances For
★ The bit-flip flow lifts U_p, with no hypotheses: cpSectorData's projection is the
identity and the flow is the projective action of the reindexed unitary.
★★ On ℂℙ³ the bit-flip channel is the environment marginal of bitFlipFlow, with no lift
hypothesis. For any preparation on the joint projective space that is a product with the
environment ready (a.e., in the canonical representative), the reduced density operator of the
flowed preparation is the bit-flip channel applied to the system's density operator.
The code space as a region of Σ, and the error regions #
The code region: the rays of the codespace {a|000⟩ + b|111⟩} in the projective space of
the three-qubit register — the sub-surface ℂℙ¹ ⊂ ℂℙ⁷ of Σ.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The error region of error k: the image of the code region under the error Eₖ.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The errored codewords are stabiliser eigenvectors with eigenvalues the syndrome of the error.
★★ The four error regions are pairwise disjoint. Two errored codewords on one ray would
share their stabiliser eigenvalues, hence their syndromes, hence their error index. This is the
identifiability of the syndrome read as a partition of Σ: the syndrome measurement is the ontic
selection of which of the four disjoint regions the trajectory occupies.
★ The syndrome projectors are the indicator of the error regions. Every point of the
k-th error region has a representative fixed by the k-th syndrome projector and annihilated by
every other: the projective measurement {Pₖ} of QM/QEC/SyndromeRecovery.lean reads off which
of the four disjoint regions of Σ the trajectory occupies.
Recovery returns to the code region: re-applying the identified error sends every point of
its error region back into the code region (each Xⱼ is self-inverse).
★★ The three-qubit bit-flip code corrects any single bit-flip, in the CSD reading. The
QM-side correction theorem (stabilisers fix the codespace, the four syndromes are distinct, each
Xⱼ is self-inverse), together with its Σ-reading: the four error regions of Σ are
pairwise disjoint (the syndrome is a partition of Σ), and recovery returns each error region to
the code region. The error channel itself is produced by a Σ-flow
(bitFlipFlow_traceRight_barycenter). No bundle is carried: every conjunct is proved.