Documentation

CsdLean4.Empirical.QM.QEC.BitFlipDilation

Empirical/QM/QEC: the bit-flip channel as the environment marginal of a joint unitary #

Category: 3-Local (QM-validity companion of BitFlipChannel.lean).

The bit-flip channel Φ(ρ) = (1 − p) ρ + p X ρ X has a concrete Stinespring dilation: the joint unitary U_p = CX · (I ⊗ R_p) on system ⊗ environment (an environment qubit rotated by R_p |0⟩ = √(1−p) |0⟩ + √p |1⟩, then a flip of the system controlled by the environment), with the environment ready in |0⟩:

`U_p (ψ ⊗ |0⟩) = √(1−p) ψ ⊗ |0⟩ + √p (Xψ) ⊗ |1⟩`.

Consumer: Empirical/CSD/QEC/ThreeQubit.lean, where U_p lifted to a Σ-flow produces the bit-flip channel on the density operators of preparations (W11 of specs/qit-chain-scoping.md).

The bit-flip channel as the environment marginal of a joint unitary #

noncomputable def CSD.Empirical.QM.QEC.flipRotation (p : ℝ) :
Matrix (Fin 2) (Fin 2) ℂ

The real rotation R_p with R_p |0⟩ = √(1−p) |0⟩ + √p |1⟩ on the environment qubit.

Equations
Instances For

    The controlled flip CX with the environment as control: applies X to the system when the environment is |1⟩. Index (system, environment).

    Equations
    Instances For
      noncomputable def CSD.Empirical.QM.QEC.bitFlipUnitary (p : ℝ) :
      Matrix (Fin 2 × Fin 2) (Fin 2 × Fin 2) ℂ

      The bit-flip joint unitary U_p = CX · (I ⊗ R_p): rotate the environment, then flip the system conditioned on it. U_p (ψ ⊗ |0⟩) = √(1−p) ψ ⊗ |0⟩ + √p (Xψ) ⊗ |1⟩.

      Equations
      Instances For

        The environment blocks of U_p · (· ⊗ |0⟩) are the bit-flip Kraus operators {√(1−p) I, √p X}.

        ★ The bit-flip channel is the Stinespring channel of U_p with a ready environment, as channels (equal Kraus families).