structure
definition
def or abbrev
ClassicalCode
show as:
view Lean formalization →
formal statement (Lean)
112structure ClassicalCode where
113 n : ℕ -- Block length
114 k : ℕ -- Message length
115 d : ℕ -- Minimum distance
116 k_le_n : k ≤ n
117 d_pos : d > 0
118
119/-- The 3-qubit repetition code.
120
121 |0⟩ → |000⟩
122 |1⟩ → |111⟩
123
124 Corrects single bit-flip errors. -/