Repetition-code logical Pauli error and exact syndrome probability
OpenQAlgorithms.Papers.Independent.Advance50.P15.repetitionCode_logicalError_and_probabilityLet , let be physical bit- and phase-error strings, and let have unit norm. Encode it as . The coherent repetition decoder retains the first physical qubit and writes the check outcomes into an -bit syndrome register. With acting before , it satisfies
Independently, let the physical bit errors be independent Bernoulli random variables of parameter . For a logical bit error and a particular syndrome string of Hamming weight , their joint probability is
This gives the exact logical channel and syndrome law used in the block-rate calculation. The probability is for an individual syndrome, with no binomial coefficient and with at the endpoints.
Formalization Note Lean writes for ; source qubit 1 is Lean wire 0.
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P15
noncomputable section
namespace QAlgorithms.Papers.Independent.Advance50.P15
open QAlgorithms
open scoped ComplexConjugate
attribute [local instance] Classical.propDecidable Classical.decEq
/-- Smith--Renes--Smolin, PDF p.2, Lemma 2 / Eq.(3): exact ordered-Pauli
logical action and the logical-bit/specific-syndrome law of independent errors.
There is no binomial coefficient and no majority decoder. -/
theorem repetitionCode_logicalError_and_probability
(k : ℕ) (u v : Qubits (k + 1))
(psi : EuclideanSpace ℂ Bool) (hpsi : ‖psi‖ = 1)
(p : ℝ) (hp0 : 0 ≤ p) (hp1 : p ≤ 1) :
repetitionDecode (physicalPauli u v (repetitionEncode k psi)) =
WithLp.toLp 2 (fun z : Bool × Qubits k =>
logicalPauli (u 0) (dotBits v (fun _ => true)) psi z.1 * (ket (repetitionSyndrome u)) z.2) ∧
∀ (a : Bool) (s : Qubits k),
logicalSyndromeProb k p a s =
if a then p ^ (k + 1 - hammingWeight s) * (1 - p) ^ hammingWeight s
else p ^ hammingWeight s * (1 - p) ^ (k + 1 - hammingWeight s) := by sorry
end QAlgorithms.Papers.Independent.Advance50.P15
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For every natural number , -bit strings , complex two-coordinate vector with , and real number satisfying , the following two assertions hold. Define the encoded vector by
the syndrome by , the string by and , and . Applying the physical operation whose amplitude at is , and then decoding by evaluating at , gives, for every bit and -bit string ,
where the dot product denotes parity and is when its condition holds and otherwise. Also, for every bit and -bit string ,
Here is the number of -bits in . The statement includes , empty syndromes, and ; powers with exponent zero, including , equal .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.