A circuit of faulty Steane gadgets #
Category: 3-Local (Empirical, QM twin). BACKLOG #62 (d1), the composition half.
SteaneFaultyGate.lean corrects one faulty gadget;
FaultTolerantComposition.lean composes
corrected gadgets along a circuit. This module joins them for the Steane code's transversal Hadamard,
which is the gadget whose code preservation is proved:
hadGadget,faultyHadGadget,hadStep— the ideal gadget, the gadget with a fault at one location, and the corrected step (the faulty gadget followed by the recovery channel);- ★★
isCorrectedStep_hadStep— one faulty Hadamard gadget with its recovery is a corrected step:steane_faultyHadamard_recoverygives the first condition andhadTransversal_code_statethe second; - ★★★
steane_hadamardCircuit_corrected— a circuit of faulty Hadamard gadgets is corrected: for any list of locations and unitary faults, one per gadget and each at a location of its own, the run with recoveries computes exactly what the ideal circuit computes on an encoded state; idealRun_hadGadget— the ideal circuit depends only on its length (conjugation by that power of the transversal Hadamard), and since the gate is an involution, ★★★steane_hadamardCircuit_even: an even-length circuit of faulty Hadamard gadgets returns the input state exactly. That is the concrete form of the composition theorem:2jfaulty gadgets,2jarbitrary unitary faults, and the encoded state comes back untouched.
Honest scope #
⚠️ The recovery gadget is still ideal. Every step here is a faulty gadget followed by a perfect recovery channel. Making the recovery itself a fault-tolerant circuit — syndrome extraction with a verified ancilla, and the extended rectangle — is BACKLOG #62(c), and until it lands this is a circuit-level theorem about faulty gates, not about a faulty computer.
⚠️ One gadget family. The Hadamard is instantiated because its projector-level code
preservation is proved. The logical X̄/Z̄ need the same preservation statement for the all-ones
Pauli, which is not proved (their logical action is, in #62(a)(b)); the two-block CNOT acts on a
pair of blocks and would need the register view #62(f)'s honest scope already flags. Faults are one
per gadget and unitary, as in steane_faultyHadamard_recovery.
⚠️ One level. No concatenation, no level reduction, no probability: see #62(d2).
References: D. Aharonov, M. Ben-Or, SIAM J. Comput. 38 (2008) 1207; SteaneFaultyGate.lean,
FaultTolerantComposition.lean; specs/BACKLOG.md #62.
The transversal Hadamard gadget as a corrected step #
The transversal Hadamard gadget with the fault E at location i: the fault acts after the
ideal single-qubit gate at that location.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The corrected step: the faulty gadget, then the recovery channel.
Equations
- CSD.Empirical.QM.QEC.Steane.hadStep R i E ρ = R.apply (CSD.Empirical.QM.QEC.Steane.faultyHadGadget i E ρ)
Instances For
★★ One faulty Hadamard gadget with its recovery is a corrected step in the sense of
QuantumInfo.IsCorrectedStep: it returns the ideal gadget's output on code states, and the ideal
gadget keeps code states in the code. The second half is what lets gadgets be composed.
A circuit of them #
★★★ A circuit of faulty transversal Hadamard gadgets is corrected. For any list of locations and unitary faults — one fault per gadget, each at a location of its own choosing — running the faulty gadgets with the recovery after each one computes exactly what the ideal circuit of Hadamards computes on an encoded state. This is the composition half of the threshold theorem's simulation step, with the recovery gadget still ideal.
The ideal circuit of Hadamard gadgets depends only on its length: it is conjugation by that power of the transversal Hadamard.
The transversal Hadamard is an involution, so an even-length ideal circuit does nothing.
★★★ An even-length circuit of faulty Hadamard gadgets returns the input exactly. The concrete
instance that makes the composition theorem's content visible: every one of the 2j gadgets is
faulty, each fault an arbitrary unitary at a location of its own choosing, and the encoded state comes
back untouched — because the ideal circuit is the identity and every fault was corrected on the way.