Quantum Expander Codes: On a Biregular Left-Right Expanding Graph with δA, δB < 1/6, the Greedy Generator Decoder Corrects Every Quantum Error of Weight Below min(γA·nA, γB·nB)/(3(1+ΔB))Research Paper
Motivation
A quantum LDPC code is a CSS code whose two check matrices HX and HZ have rows and columns of bounded weight, so that every check measures only a few qubits. Such codes are the main candidates for fault-tolerant quantum memories, because their checks are local, but a code is only useful together with a decoder: an efficient procedure that recovers the error, up to stabilizers, from its syndrome. For classical LDPC codes built from expander graphs, Sipser and Spielman showed in 1996 that a simple bit-flipping algorithm corrects a constant fraction of the minimum distance in linear time (Sipser–Spielman 1996). In the quantum setting the obvious analogue fails, and before this work no family of quantum LDPC codes was known to admit an efficient decoder correcting a number of adversarial errors proportional to its minimum distance.
Timeline.
1996: Sipser and Spielman, expander codes and their linear-time bit-flipping decoder.
2009: Tillich and Zémor introduce the hypergraph product, giving quantum LDPC codes of positive rate and minimum distance of order n (arXiv:0903.0566).
2015: Leverrier, Tillich and Zémor take the hypergraph product of an expanding biregular graph with itself and prove that a greedy generator-flipping decoder corrects every error of weight up to a constant fraction of the minimum distance (arXiv:1504.00822, FOCS 2015). This mission formalizes that result.
Setting
Let G=(A∪B,E) be a finite bipartite graph, nA=∣A∣, nB=∣B∣, with nB≤nA, and write a∼b for adjacency. G is (ΔA,ΔB)-biregular if every vertex of A has ΔA neighbours and every vertex of B has ΔB. For S⊆A let Γ(S) be its neighbourhood. G is (γA,δA)-left-expanding if ∣Γ(S)∣≥(1−δA)ΔA∣S∣ for every S⊆A with ∣S∣≤γAnA; right expansion is the same on the B side, and left-right expanding means both. Γu(S) denotes the unique neighbours of S, adjacent to exactly one vertex of S.
Let H be the nB×nA binary biadjacency matrix of G. The quantum code QG has n=nA2+nB2 qubits, indexed by A2∪B2 (written αa and bβ), and check matrices
HX=(1nA⊗H,HT⊗1nB),HZ=(H⊗1nA,1nB⊗HT),
with rows indexed by A×B and B×A. The row ba of HZ has support the Z-generatorgba={αa:α∼b}∪{bβ:β∼a}. An X error is e∈F2A2∪B2, its syndrome is σX(e)=HXeT, and CZ⊥ is the space of sums of Z-generators. The weight w(eX,eZ) of a quantum error counts the qubits where eX or eZ is nonzero.
The decoder. On a syndrome s, one iteration picks a vector e1 whose support lies in some generator gba, such that s1=s+σX(e1) has ∣s1∣<∣s∣ and the ratio (∣s∣−∣s1∣)/∣e1∣ is maximal among all such vectors. It iterates on the current syndrome, fails if it gets stuck at a nonzero syndrome, and otherwise outputs the sum eO of the flipped vectors. The Z decoder is the same with HX and HZ exchanged.
Formalization targets
Goal: Theorem 2
Assume G is (ΔA,ΔB)-biregular and (γA,δA,γB,δB)-left-right expanding with
δA<61,δB<61,
and let (eX,eZ) be a quantum error with
w(eX,eZ)<w0=3(1+ΔB)1min(γAnA,γBnB).
Then on every run, the X decoder on input σX(eX) never outputs a failure and its output satisfies eO+eX∈CZ⊥. The Z decoder on σZ(eZ) behaves symmetrically, with eO+eZ∈CX⊥.
Milestones
In the paper's order of proof:
Lemma 3, ∣Γu(SA)∣≥(1−2δA)ΔA∣SA∣;
Proposition 4, distance at least γAnA for the classical code;
the distance half of eq. (3), dQ≥min(d,dT), already posed on the platform;
Corollary 5, dQ≥min(γAnA,γBnB);
the column-weight bound ∣σX(e)∣≤ΔB∣e∣;
Lemma 7, existence of a critical generator;
the displays (19), (22), (23), (24) of Appendix B;
Lemma 8, a step of ratio at least 1/3 inside a critical generator;
Lemma 10, the X half of the goal.
Significance
The result. Theorem 2 gives the first family of quantum LDPC codes with an efficient decoder that corrects a number of adversarial errors proportional to the minimum distance. Here that number is of order n. The same analysis yields a robustness property: low-weight errors have syndromes of proportional weight (Corollary 9 of the paper). Later work on quantum expander codes builds on this analysis, for example on their decoding under random noise (arXiv:1711.08351) and on fault tolerance with constant overhead (arXiv:1808.03821).
Formalizing it. The result is proved on paper. As far as is known, it has no machine-checked proof. The mission produces a formal statement of the decoder and its correctness, and it also produces reusable pieces:
unique-neighbour expansion;
the distance of expander codes;
the distance of hypergraph product codes, tied to an open item of the Tillich–Zémor mission;
a generic formalization of greedy syndrome-weight decoding.
Difficulty
The obvious quantum analogue of Sipser–Spielman flips single qubits that lower the syndrome weight. It fails because of degeneracy: an error and its sum with a generator have the same syndrome. A small error can therefore look locally like a large one, and no single qubit need be worth flipping. The paper's decoder instead flips arbitrary patterns inside one generator. The difficulty is to show that some pattern always lowers the syndrome weight by a constant fraction of its size. The proof needs a combinatorial structure, the critical generator, whose existence uses unique-neighbour expansion on both sides of the graph, and a case analysis on its six parts. A second difficulty is that the decoder minimizes the syndrome weight, not the error weight, so the intermediate error can grow. Bounding that growth is what limits the guarantee to w0 rather than the distance.
Formalization scope
The graph is a relation adj : A → B → Prop on finite types, and H = bipMatrix adj : Matrix B A (ZMod 2).
The published TillichZemor.HGP.Setting is reused. The paper's HX is TillichZemor.HGP.hz H H and its HZ is hx H H; the X/Z names are swapped relative to the 2009 paper, and this is checked against eq. (5) in a sanity file.
Qubits are (A × A) ⊕ (B × B), weights are hammingNorm, and CZ⊥ is CodingTheory.dualCode of ker H_Z.
Expansion constants are real and cardinalities are compared in R. Distance statements are per-vector, so no ∞-valued minimum distance is cast to a real number.
The decoder is defined once (Candidate, Step, Reach, DecodesCorrectly), generic in the syndrome and generator matrices. Its ratio is computed in Q.
Reach contains every state reachable under any tie-breaking. Correctness requires, at every reachable state, a further step while the syndrome is nonzero, and eO+e in the row space of the generator matrix once it is zero. Termination is automatic, because each step lowers a natural number.
Additions and omissions.
The hypothesis ΔA≥1 is added throughout. With ΔA=0 the expansion conditions are vacuous, H=0, and every error is invisible.
In Lemma 8 the vector e1 is required to be nonzero. With e1=0 the printed inequality reads 0≥0.
Lemma 8 is posed in its first assertion only. The critical generator is taken with respect to a minimum-weight representative of the coset, as in Appendix B.
The clauses "runs in time linear in the code length" and "letting ΔA, ΔB be fixed and allowing nA,nB to grow" are not formalized. The goal holds for every finite graph meeting the hypotheses.
Trivializing formalizations ruled out. The goal names the paper's own decoder, not "there exists a decoder", which a brute-force coset decoder would satisfy. It quantifies over every run, not a single favourable one. It asserts both never-failing and correctness, not partial correctness alone. It uses HX = hz H H, not the swapped matrix.
Welcome contributions. Proofs of the counting milestones (Lemma 3, Proposition 4, the column-weight bound, (19), (22)–(24)) are independent of one another. The distance bound of Tillich–Zémor, open on the platform, is the deepest dependency. Unique-neighbour expansion and the hypergraph-product distance bound are useful beyond this mission.
Selected references
A. Leverrier, J.-P. Tillich, G. Zémor, Quantum expander codes, FOCS 2015; arXiv:1504.00822v1 (2015). https://arxiv.org/abs/1504.00822
J.-P. Tillich, G. Zémor, Quantum LDPC codes with positive rate and minimum distance proportional to the square root of the blocklength, IEEE Trans. Inf. Theory 60(2), 2014; arXiv:0903.0566. https://arxiv.org/abs/0903.0566
O. Fawzi, A. Grospellier, A. Leverrier, Efficient decoding of random errors for quantum expander codes, STOC 2018; arXiv:1711.08351. https://arxiv.org/abs/1711.08351
O. Fawzi, A. Grospellier, A. Leverrier, Constant overhead quantum fault-tolerance with quantum expander codes, FOCS 2018; arXiv:1808.03821. https://arxiv.org/abs/1808.03821
Harlow TASI 2017: Entanglement Wedge Reconstruction, Quantum RT and JLMS are EquivalentResearch Paper
Motivation
In the AdS/CFT correspondence a quantum theory of gravity in an asymptotically anti-de Sitter spacetime is equivalent to a conformal field theory on its boundary. A central question is how local bulk physics is encoded in the boundary theory, and in particular which bulk region is described by a given boundary subregion R. Harlow's TASI 2017 lectures (arXiv:1802.01040) review the answer that emerged from quantum error correction: the boundary Hilbert space is a code, bulk effective field theory lives in a code subspace, and the boundary subregion R can reconstruct every bulk operator in its entanglement wedge. The lectures state as their main technical target the theorem that this entanglement wedge reconstruction, the quantum Ryu–Takayanagi (RT) formula with a central area operator, and the JLMS formula (equality of boundary and bulk relative entropies) are mathematically equivalent. All of these statements are finite-dimensional linear algebra, which makes them formalizable now.
Timeline. Almheiri, Dong and Harlow proposed the quantum-error-correction interpretation of AdS/CFT in 2014 (arXiv:1411.7041). Jafferis, Lewkowycz, Maldacena and Suh derived the JLMS relation in 2015 (arXiv:1512.06431), and Dong, Harlow and Wall established the implications between JLMS and reconstruction for factors in 2016 (arXiv:1601.05416). Harlow proved the general three-way equivalence for arbitrary finite-dimensional von Neumann algebras in 2016 (arXiv:1607.03901, Comm. Math. Phys. 2017). The TASI lectures (2017, published 2018) present this theorem as Theorem 5.2.
Setting
All Hilbert spaces are finite-dimensional. The boundary space factorizes as H=HR⊗HR. A code subspaceHcode⊆H is described by an isometry V whose columns ∣i~⟩ are an orthonormal basis of Hcode. An operator OR on HRrepresents a logical operator O~ if OR∣ψ~⟩=O~∣ψ~⟩ and OR†∣ψ~⟩=O~†∣ψ~⟩ for every code state.
A von Neumann algebraM on Hcode is a set of operators closed under sums, products and adjoints and containing all multiples of the identity; M′ is its commutant and ZM=M∩M′ its center. Every such M is block diagonal, Hcode=⨁αHrα⊗Hrα with M=⨁αL(Hrα)⊗Irα. For a state ρ~ with diagonal blocks pαρ~rαrα, the algebraic entropy is S(ρ~,M)=−∑αpαlogpα+∑αpαS(ρ~rα), and the algebraic relative entropyS(ρ~∣σ~,M) is defined analogously (eqs. (5.16), (5.18)).
For Hcode⊆HR⊗HR and a von Neumann algebra M on Hcode, the following are equivalent:
(1) every O~∈M is represented on R and every O~′∈M′ on R;(2) ∃LR∈ZM:S(ρ~R)=Tr(ρ~LR)+S(ρ~,M),S(ρ~R)=Tr(ρ~LR)+S(ρ~,M′)∀ρ~;(3) S(ρ~R∣σ~R)=S(ρ~∣σ~,M),S(ρ~R∣σ~R)=S(ρ~∣σ~,M′)∀ρ~,σ~.
Milestones
Theorem 4.1: four equivalent characterizations of a correctable erasure of R (operator reconstruction on R; PXRP=λP; decoupling of a reference system from R; the explicit encoding ∣i~⟩=UR(∣i⟩R1∣χ⟩R2R)).
Eq. (4.25): the quantum Singleton bound m≥2n+k for codes whose accessibility depends only on the number of qudits.
Theorem 5.1: every von Neumann algebra on a finite-dimensional Hilbert space is a block-diagonal direct sum of factors, with the matching descriptions of M′ and ZM.
Significance
Theorem 5.2 turns three separately motivated features of holography into a single mathematical statement. Since the RT formula is independently derived from the gravitational path integral, the theorem implies subregion duality in the entanglement wedge; it also shows that a non-trivial area operator requires an algebra with non-trivial center. Theorem 4.1 is the subsystem-code special case, and Theorem 5.1 is the structure result that gives the algebraic entropies their meaning.
The results are proved in the literature (Harlow 2017 for Theorem 5.2; Theorems 4.1 and 5.1 are standard), but the lectures state Theorem 5.2 without proof, and none of these statements has a machine-checked proof that this mission is aware of. The mission produces formal statements and, eventually, formal proofs of the finite-dimensional structure theory of operator-algebra quantum error correction.
Difficulty
The three conditions live at different levels: (1) is a statement about operators, (2) about von Neumann entropies of single states, and (3) about relative entropies of pairs of states. Passing between them requires control of the full block structure of M relative to the bipartition RR, not only of a single factor, and the classical term ∑αpαlog(pα/qα) of (5.18) couples different blocks, so the general case does not reduce to the factor case treated earlier in the literature. Relative entropies can be infinite (when supports are not nested), so the equalities in (3) are equalities of extended reals and every argument must remain valid at +∞.
Formalization scope
Hilbert spaces are coordinate spaces Cι for finite index types, operators are complex matrices, tensor products are Kronecker products, and Hcode is the image of an isometry V (an operator OR acts on code states as OR⊗IR applied to V). States are density matrices (positive semidefinite, trace one). Von Neumann entropy and relative entropy are defined from eigen-decompositions; relative entropy takes values in the extended reals. A von Neumann algebra is a ∗-subalgebra of matrices; the algebraic entropies are computed in a block decomposition U of M, which every statement takes as an arbitrary decomposition realizing M (the value does not depend on the choice). The RT identity is stated as an equality of complex numbers. Theorem 4.1 assumes a nonzero code subspace; the Singleton bound assumes d≥2 and k≥1; both conditions are implicit in the lectures and are needed for the statements to be true.
A trivializing reading is excluded: the hypotheses of every statement are satisfiable, and the goal is a full equivalence of three non-trivial conditions rather than any single implication.
Useful reusable infrastructure: partial traces and their interaction with Kronecker products, entropies of block-diagonal states, relative entropy (Klein's inequality and its equality case), and the structure theory of finite-dimensional ∗-algebras of matrices. Contributions of proofs of the individual implications (1)⇒(2), (2)⇒(3), (3)⇒(1) as sketches are welcome.
D. Harlow, The Ryu–Takayanagi Formula from Quantum Error Correction, Comm. Math. Phys. 354 (2017) 865–912. https://arxiv.org/abs/1607.03901
A. Almheiri, X. Dong, D. Harlow, Bulk Locality and Quantum Error Correction in AdS/CFT, JHEP 04 (2015) 163. https://arxiv.org/abs/1411.7041
D. Jafferis, A. Lewkowycz, J. Maldacena, S. J. Suh, Relative entropy equals bulk relative entropy, JHEP 06 (2016) 004. https://arxiv.org/abs/1512.06431
X. Dong, D. Harlow, A. C. Wall, Reconstruction of Bulk Operators within the Entanglement Wedge in Gauge-Gravity Duality, Phys. Rev. Lett. 117 (2016) 021601. https://arxiv.org/abs/1601.05416
Restrictions on Transversal Encoded Quantum Gate Sets: For Any Nontrivial Local-Error-Detecting Quantum Code, the Transversal Logical Unitary Operators Are Not UniversalResearch Paper
Motivation
A quantum computer that runs long computations must protect its data with a quantum error-correcting code and must compute on the encoded data without letting errors spread. The simplest gates with that property are transversal gates: a code is laid out in several code blocks, and a transversal gate couples each physical subsystem of one block only to the corresponding subsystem of the other blocks, so a single fault never becomes several faults inside one block (Gottesman 1997; Aliferis, Gottesman, Preskill 2006). Every known code has some encoded gate that is not transversal, and fault-tolerant schemes pay for the missing gates with expensive constructions such as magic-state distillation. Whether some code has a universal transversal gate set was a long-standing question.
Timeline.
2007: Zeng, Cross and Chuang show that transversal gates are not universal for stabilizer codes on qubits (arXiv:0706.1382).
2008: Chen, Chung, Cross, Zeng and Chuang extend this to stabilizer codes on qudits (arXiv:0801.2360).
2008–2009: Eastin and Knill prove the statement for every code that detects an arbitrary error on any single subsystem, stabilizer or not (arXiv:0811.4262; Phys. Rev. Lett. 102, 110502, 2009). This is the result of the present mission, now called the Eastin–Knill theorem.
Setting
A composite quantum systemQ consists of finitely many physical subsystems j, subsystem j having dimension dj. Operators on Q are complex matrices on Cd1⊗⋯⊗Cdn. A product operator is ⨂jUj with Uj acting on subsystem j, and T is the group of unitary product operators (Uj∈U(dj)).
A quantum code is a subspace of the state space, represented by the orthogonal projector P onto it; its dimension rankP is the dimension of the encoded system, and the code is nontrivial when this dimension is at least 2. An error E is detectable when PEP∝P. The code is local-error-detecting when every error on any single subsystem is detectable: P(I⊗E⊗I)P∝P for every operator E acting on one subsystem.
A unitary U is logical when it preserves the code space,
(I−P)UP=0(Eq. (1)),
and G denotes the logical unitary product operators. An encoded unitary is a unitary operator W of the code space (PWP=W, W†W=WW†=P). A set S of unitaries is universal when every encoded unitary is approximated to arbitrary accuracy by the actions PUP, U∈S, on the code space.
For a code made of blocks b, each with subsystems at the same positions j and a block code Pb, the joint code is P=⨂bPb. The transversal partj collects subsystem j of every block, and a transversal unitary is a product of unitaries, one on each transversal part.
Formalization targets
Goal: Corollary 1
For block codes Pb, each local-error-detecting, with rank⨂bPb≥2, the set G of transversal logical unitaries is not universal:
{W:PWP=W,W†W=WW†=P}⊆{PUP:U∈G}.
Theorem 1 (milestone)
The same conclusion for product operators on the physical subsystems of a single local-error-detecting code with rankP≥2.
Milestones on the way
In attack order: Lemma 1 (logical unitaries form a group); Lemma 2 (logical unitaries in a closed group of unitaries form a closed subgroup); T is a compact group; the derivative step (I−P)DP=0; elements of the Lie algebra of T are sums of local Hermitian operators; DP∝P for a logical sum of local Hermitians; the identity component C of G acts on the code space as a scalar; G has finitely many actions on the code space up to phase; Theorem 1; and the detectability of an error on a single transversal part.
Significance
The result. The theorem rules out the simplest route to fault tolerance for every code that detects single-subsystem errors, which includes every code of distance at least 2. It explains why every fault-tolerant architecture needs a non-transversal ingredient (state injection and distillation, code switching, gauge fixing, measurements with feed-forward), and it is the starting point for later refinements: approximate and covariant versions for continuous symmetries (Faist et al. 2020), and restrictions on the level of the Clifford hierarchy reachable transversally (Bravyi–König 2013).
Formalizing it. The result is proved; no machine-checked proof of it is known to exist. The mission produces a checked statement of the theorem for arbitrary finite-dimensional subsystems and arbitrary (non-stabilizer) codes, together with a reusable layer: tensor-product operators on index-typed subsystems, codes as projectors, logical operators, local error detection, encoded universality and block codes. Related platform items are QAlgorithms_Defs_QECC (qubit stabilizer codes, detectability for submodule codes) and QAlgorithms.GottesmanIntro.knillLaflamme (the error-correction criterion), which use a different model of codes and are not imported here.
Difficulty
The paper's argument runs through Lie theory: G is a closed subgroup of the compact group T, so it is a compact Lie group with finitely many connected components; its identity component is generated by exponentials of its Lie algebra, and local error detection forces that Lie algebra to act on the code space by scalars. None of this is about the code alone; the difficulty is the passage from a closed matrix group to its Lie algebra and back (exponential coordinates, connectedness of the identity component, finiteness of the component group of a compact Lie group). Mathlib has the matrix exponential and compactness of the unitary group but not Cartan's closed-subgroup theorem or the Lie algebra of a closed matrix group.
A frequent first idea, that G itself is a finite group, is false: every global phase eiθI is a logical product unitary, so G always contains a circle. Only the action of G on the code space is finite, and only up to phase; a statement that ignores the phase is false.
Formalization scope
Subsystem j is a finite index type αj (so dj=∣αj∣), and the system has basis ∏jαj; operators are Matrix over ℂ, unitaries are Matrix.unitaryGroup. A code is its projector (Hermitian, idempotent) and its dimension is Matrix.rank; "nontrivial" is 2≤rankP. Closure is in the standard topology on complex matrices, which is the topology of any norm. Exponentials are NormedSpace.exp with the factor i of the physics convention (footnote 1).
Disclosed restatements:
"Lie group/Lie subgroup" (Lemma 2, T) is stated as closed or compact subgroup; Cartan's theorem is not in Mathlib.
"D in the Lie algebra" is stated through the one-parameter group t↦eitD.
The real coefficients αj in D=∑jαjHj are absorbed into the Hermitian Hj.
The page's "the constant of proportionality must be one" is a slip (global phases lie in C); the identity-component and finite-actions milestones state CP∝P and GP=cFP.
Corollary 1's code blocks are a tensor product of block codes Pb with common positions j and possibly different codes and dimensions; a single block is Theorem 1.
Universality is defined only through approximation of encoded unitaries, local error detection quantifies over every matrix on one subsystem, and G is the full intersection of T with the logical unitaries, so no hypothesis trivializes the conclusion; at rank 1 the conclusion is false, which is why the rank hypothesis is ≥2 and not P=0.
A complete development needs the Lie algebra of a closed subgroup of Matrix.unitaryGroup, connectedness of the identity component via exponentials, and finiteness of the component group of a compact matrix group. These parts are reusable far beyond this mission, and contributions of them, as well as alternative proofs of Theorem 1 that avoid Lie theory, are welcome.
Selected references
B. Eastin, E. Knill, Restrictions on Transversal Encoded Quantum Gate Sets, Phys. Rev. Lett. 102, 110502 (2009). https://arxiv.org/abs/0811.4262
B. Zeng, A. Cross, I. L. Chuang, Transversality versus Universality for Additive Quantum Codes, IEEE Trans. Inf. Theory 57 (2011). https://arxiv.org/abs/0706.1382
X. Chen, H. Chung, A. W. Cross, B. Zeng, I. L. Chuang, Subsystem stabilizer codes cannot have a universal set of transversal gates for even one encoded qudit, Phys. Rev. A 78, 012353 (2008). https://arxiv.org/abs/0801.2360
S. Bravyi, R. König, Classification of topologically protected gates for local stabilizer codes, Phys. Rev. Lett. 110, 170503 (2013). https://arxiv.org/abs/1206.1609
P. Faist et al., Continuous symmetries and approximate quantum error correction, Phys. Rev. X 10, 041018 (2020). https://arxiv.org/abs/1902.07714
Decoding Quantum Tanner Codes: The Parallel Decoder Corrects Every Error of Weight Linear in the Code Length in Logarithmically Many RoundsResearch Paper
Why decoding good quantum LDPC codes matters
Quantum computers must correct errors faster than they accumulate, and quantum low-density parity-check (LDPC) codes are the leading candidates for doing so with little overhead: every check involves a bounded number of qubits, so syndromes can be measured by local circuits. In 2021–2022 the first asymptotically good quantum LDPC codes appeared, with dimension and minimum distance both linear in the code length n: the expander lifted product codes of Panteleev and Kalachev (arXiv:2111.03654) and the quantum Tanner codes of Leverrier and Zémor (arXiv:2202.13641). A code is only useful if errors can be corrected efficiently. Leverrier and Zémor (arXiv:2208.05537) give two decoders for quantum Tanner codes that correct every error of weight up to a constant fraction of n: a sequential one running in linear time, and a parallel decoder running in a logarithmic number of rounds of local updates. This mission is about the parallel decoder.
Timeline:
2021, Panteleev–Kalachev: asymptotically good quantum LDPC codes and locally testable classical codes (arXiv:2111.03654).
2022, Leverrier–Zémor: quantum Tanner codes, a simpler construction on left-right Cayley complexes (arXiv:2202.13641).
2022, Leverrier–Zémor, Decoding quantum Tanner codes: sequential and parallel decoders up to a constant fraction of n, with a revised parallel analysis in v3 (arXiv:2208.05537v3).
The code and the decoder
Let G be a finite group and A=A−1, B=B−1⊆G with ∣A∣=∣B∣=Δ. The quadripartite left-right Cayley complex has four copies of G as vertices, Vij=G×{ij}, and one square{(g,00),(ag,01),(gb,10),(agb,11)} for every (g,a,b)∈G×A×B. The set of squares Q has n=∣G∣Δ2 elements, and every vertex v sees its Q-neighbourhood Q(v) as an A×B array: columns are indexed by b, rows by a. The left Cayley graph Cay(G,A) and the right Cayley graph Cay(G,B) are assumed to be non-bipartite Ramanujan graphs: every adjacency eigenvalue other than ±Δ has absolute value at most 2Δ−1.
Two local codes CA⊆F2A, CB⊆F2B with dimCA+dimCB=Δ are fixed. Write V0=V00∪V11 and V1=V01∪V10. The code C1⊆F2Q consists of the vectors whose view on every Q(v), v∈V1, lies in the dual tensor codeCA⊗F2B+F2A⊗CB: every local view is a sum of a word whose columns are in CA and a word whose rows are in CB. C0 is defined in the same way on V0 with CA⊥, CB⊥. The local codes and their duals have distance at least δΔ. Both dual tensor codes are κ-product-expanding: every codeword x splits as x=c+r with ∣x∣≥κΔ(∥c∥+∥r∥), where ∥c∥ counts non-zero columns and ∥r∥ non-zero rows.
A σx-type error e∈F2Q is decoded in three phases. In the preprocessing phase every v∈V1 chooses a minimum-weight local error εv with the local syndrome of e; the mismatch is Z=∑v∈V1εv. The mismatch decomposition writes Z=C^0+R^0+C^1+R^1, with C^j a sum of CA-columns and R^i a sum of CB-rows. Postprocessing outputs e^=∑v∈V10εv+C^0+R^1. The parallel decoder (Algorithm 3) runs rounds of four substeps, one for each of V00,V01,V10,V11. In a substep, every vertex v of the current class simultaneously looks for a non-zero local dual tensor codeword xv on Q(v) with ∣Z^∣−∣Z^+xv∣≥∣xv∣/2, picks one of maximum weight, splits it as cv+rv with ∥cv∥+∥rv∥ minimal, and updates C^j, R^i and Z^.
Formalization targets
Goal: Theorem 20 (= Theorem 3)
Fix ε∈(0,1/6) and δ,κ>0. For all Δ large enough, every error with
∣e∣<2121min(16ε3,4κ)δ2κ2Δn
is corrected by every run of the parallel decoder. With θ=41(41−23ε), each round satisfies ∣Z^k+1∣≤(1−θ)∣Z^k∣, so Z^k=0 once (1−θ)k⋅4∣e∣<1, and then e+e^ lies in the span C0⊥ of the σx-generators.
Milestones
Lemma 4 (expander mixing) and Lemma 5: λ(G0□),λ(G1□)≤4Δ.
Lemmas 7, 10, 11, 8 and Theorem 9: the minimum distance, dmin≥δ2κ2n/(1024Δ).
Lemmas 14, 15, 16 and Theorem 12: if a minimum decomposition of a non-zero mismatch has few active vertices, some local codeword lowers ∣Z∣ by (1−ε)∣xv∣.
Lemma 17: ∣Z∣≤4∣e∣ and ∥Z∥≤4∣e∣/(κΔ).
Lemma 19: below 2−16ε3κ2δ2n/Δ, sequential decoding with parameter 1/2 never stalls, and switching to ε still converges.
Lemma 18: if the ε-sequential decoder converges, one parallel round removes at least θ∣Z∣.
Significance
The theorem shows that asymptotically good quantum LDPC codes can be decoded against adversarial errors of linear weight by O(logn) rounds of local computation, each vertex acting only on its own Q-neighbourhood. This matters for fault tolerance, where decoding latency is a bottleneck. The milestones carry independent value. Theorem 9 is a linear minimum distance bound for quantum Tanner codes in the quadripartite setting. Theorem 12 is the local-to-global "weight reduction" principle on which both decoders rest. Lemmas 4–5 are spectral facts about Cayley graphs and square complexes that are reusable for any expander-based code.
The paper's results are proved, not open; none has been machine-checked. The sequential decoder's correctness (Theorem 13) is posed separately on the platform as an open goal in the mission Decoding quantum Tanner codes (Leverrier, Zemor), which shares this mission's published definitions; this mission does not restate it. Formalizing the present chain would give a complete, checked proof that a parallel decoder exists for good quantum LDPC codes, and would expose the constants. Two printed constants are corrected here (see the scope section), and sharper constants or simpler arguments are welcome.
Difficulty
The obvious argument is to bound the mismatch and its norm, apply Theorem 12 repeatedly, and let all vertices of a class flip at once. That argument fails because parallel flips are not sequential flips. A vertex's best local move against the mismatch at its turn need not be the move a converging sequential run would make, and a round could stall even though a sequential run never does. Lemma 18 resolves this with a virtual sequential run, a partition of its increments into "good" and "bad" ones (Claim 1), and the maximum-weight rule at every vertex. Without that rule the lemma is false. Theorem 12 itself is a counting contradiction. It uses robustness, the expander mixing lemma twice, and two notions of "exceptional" vertices, and it needs Δ large. Theorem 9 needs the coset-minimization of Lemma 7 before the same counting can start.
Formalization scope
The development builds on the published layers QAlgorithms_Defs_TensorCode and QAlgorithms_Defs_TannerDecoder. These define the complex, φv, C0, C1, the σx span, minimum local corrections, the mismatch, Algorithm 2 and the output e^. The conventions are:
A vertex (g,ij) is (g, (i, j)) : G × (Bool × Bool), squares are G × A × B, and weights are hammingNorm cast to ℝ.
One new definitions file holds Algorithm 3 (admissible move, parallel choice, substep, round, run), decompositions and their norm, active, exceptional and ordinary vertices, the clustering sets T, stalled and converging sequential decoders, C1⊥, and the square graphs Gk□.
"Δ large enough" is ∃Δ0∀Δ≥Δ0, with Δ0 depending only on the constants fixed before it.
Only σx-type errors are treated; the σz case is symmetric.
Non-bipartiteness of the Cayley graphs (the standing choice of p. 10) is assumed wherever spectral bounds are used.
Theorem 12 assumes Z=0 and asks for a non-zero xv.
Corrected constants. Theorem 9 is stated with 1024 instead of the printed 256, because Lemma 8 and the proof's ∣x∣≥2κΔ∥x∥ give 1024. The goal's error bound uses min(ε3/16,κ/4) instead of min(ε3/16,κ), which is what the corrected distance supports. Both corrected statements are weaker than the printed ones.
No trivialization. Every vertex must flip a maximum-weight admissible move whenever one exists, and runs range over all such choices. "Logarithmic time" is the per-round contraction factor, not mere eventual termination. Validity is membership of e+e^ in the σx-generator span, with e^ the paper's postprocessing output. A formalization that lets vertices idle, drops the maximum-weight rule, or proves only eventual termination does not prove this theorem.
Needed and reusable infrastructure:
spectral graph theory for regular multigraphs (expander mixing, eigenvalues of commuting Cayley adjacencies);
product expansion and local minimality of decompositions;
the combinatorics of the left-right complex (shared rows and columns).
Contributions proving the graph lemmas or Lemma 18, whose proof is pure counting, are especially welcome.
Selected references
A. Leverrier, G. Zémor, Decoding quantum Tanner codes, IEEE Transactions on Information Theory; arXiv:2208.05537v3, 2022. https://arxiv.org/abs/2208.05537
P. Panteleev, G. Kalachev, Asymptotically good quantum and locally testable classical LDPC codes, STOC 2022; arXiv:2111.03654. https://arxiv.org/abs/2111.03654
S. Gu, C. A. Pattison, E. Tang, An efficient decoder for a linear distance quantum LDPC code, STOC 2023; arXiv:2206.06557. https://arxiv.org/abs/2206.06557
A. Leverrier, G. Zémor, Efficient decoding up to a constant fraction of the code length for asymptotically good quantum codes, SODA 2023; arXiv:2206.07571. https://arxiv.org/abs/2206.07571
I. Dinur, M.-H. Hsieh, T.-C. Lin, T. Vidick, Good quantum LDPC codes with linear time decoders, arXiv:2206.07750, 2022. https://arxiv.org/abs/2206.07750
NLTS Hamiltonians from good quantum codesResearch Paper
Motivation
NLTS Hamiltonians from good quantum codes establishes the selected mathematical guarantees below. The mission turns those original paper results into precise Lean proof targets.
Setting
Fix positive clustering constants c1,c2,δ0, a bound s on the number of nonzero entries in each row and column of the binary check matrices, and a positive constant B bounding the total number of checks by Bn. There exist a>0 and an integer n0≥2, uniform over the code, state, energy density and preparing circuit, with the following property.
For n≥n0, let Hx∈F2mx×n and Hz∈F2mz×n be check matrices with mx,mz>0, sparsity at most s, and mx+mz≤Bn. Put Cx=kerHx and Cz=kerHz, and assume the CSS condition Cx⊥⊆Cz. Write k for the encoded dimension, and assume k≥2. Assume Property 1: for every 0≤δ<δ0 and every y∈F2n, ∣Hzy∣≤δmz implies ∣y∣Cx⊥≤c1δn or ∣y∣Cx⊥≥c2n, and the same implication holds with x,z interchanged. Here ∣y∣S=minv∈S∣y+v∣, and ∣⋅∣ is Hamming weight. Define the unnormalized check Hamiltonian H=∑w row of Hx(I−Xw)/2+∑w row of Hz(I−Zw)/2, counting all supplied rows.
For every density matrix ρ and every 0≤ϵ<Eeff(C),
tr(Hρ)≤ϵn⟹depth(U)≥alogn
for every preparing circuit U. A preparing circuit consists of layers of disjoint arbitrary one- and two-qubit unitary gates on n+w qubits, for any w≥0, starts in ∣0⟩⊗(n+w), and has reduced output ρ on the first n qubits after discarding the other qubits. Depth is its number of layers; log is the natural logarithm.
Moreover, for every fixed r,q>0, there exist e∗>0 and n1≥2, uniform over all code instances, such that whenever n≥n1, k≥rn and min{mx,mz}≥qn, one has
k≥2,Eeff(C)≥e∗.
Consequently the allowed energy density can be chosen as a positive constant for the constant-rate, linear-distance qLDPC families satisfying Property 1 considered in the paper. The distance parameter does not enter the displayed cutoff; the paper's footnote 3 notes that Property 1 at δ=0 already implies linear distance.
This gives a depth obstruction for every low-energy density matrix, including mixed states, rather than only ground states.
Source correction. The paper prints only ϵ<E(C). Its proof uses Property 1 at 2ϵ1 with ϵ1=200nϵ/min(mx,mz), so we also require 400nϵ<δ0min(mx,mz). This is exactly the missing domain condition; it is automatic if c1≥1. No normalization c1≥1 is imposed, and the frozen printed cutoff is retained as the first entry of the minimum.
Correction to the printed source.
Printed: Theorem 5 permits eps < E(C), where E(C) is the printed energyCutoff, for arbitrary positive c1.
Corrected: Use eps < min(E(C), delta0min(mx,mz)/(400n)); give the eventual positive floor for this same minimum. No other hypothesis, constant, or conclusion is changed.
Reason: The source proof sets epsilon1=200neps/min(mx,mz) on p.3 and applies Property 1 at 2epsilon1 on p.4. Its domain is delta<delta0, but the printed cutoff only supplies 2c1epsilon1<delta0. The additional strict upper bound is exactly 2epsilon1<delta0. It is redundant for c1>=1 and retains every c1<1 instance satisfying the actual proof-domain condition.
Target
Theorem 5 (Formal statement of the NLTS theorem), §2
Fix positive clustering constants c1,c2,δ0, a bound s on the number of nonzero entries in each row and column of the binary check matrices, and a positive constant B bounding the total number of checks by Bn. There exist a>0 and an integer n0≥2, uniform over the code, state, energy density and preparing circuit, with the following property.
For n≥n0, let Hx∈F2mx×n and Hz∈F2mz×n be check matrices with mx,mz>0, sparsity at most s, and mx+mz≤Bn. Put Cx=kerHx and Cz=kerHz, and assume the CSS condition Cx⊥⊆Cz. Write k for the encoded dimension, and assume k≥2. Assume Property 1: for every 0≤δ<δ0 and every y∈F2n, ∣Hzy∣≤δmz implies ∣y∣Cx⊥≤c1δn or ∣y∣Cx⊥≥c2n, and the same implication holds with x,z interchanged. Here ∣y∣S=minv∈S∣y+v∣, and ∣⋅∣ is Hamming weight. Define the unnormalized check Hamiltonian H=∑w row of Hx(I−Xw)/2+∑w row of Hz(I−Zw)/2, counting all supplied rows.
For every density matrix ρ and every 0≤ϵ<Eeff(C),
tr(Hρ)≤ϵn⟹depth(U)≥alogn
for every preparing circuit U. A preparing circuit consists of layers of disjoint arbitrary one- and two-qubit unitary gates on n+w qubits, for any w≥0, starts in ∣0⟩⊗(n+w), and has reduced output ρ on the first n qubits after discarding the other qubits. Depth is its number of layers; log is the natural logarithm.
Moreover, for every fixed r,q>0, there exist e∗>0 and n1≥2, uniform over all code instances, such that whenever n≥n1, k≥rn and min{mx,mz}≥qn, one has
k≥2,Eeff(C)≥e∗.
Consequently the allowed energy density can be chosen as a positive constant for the constant-rate, linear-distance qLDPC families satisfying Property 1 considered in the paper. The distance parameter does not enter the displayed cutoff; the paper's footnote 3 notes that Property 1 at δ=0 already implies linear distance.
This gives a depth obstruction for every low-energy density matrix, including mixed states, rather than only ground states.
Source correction. The paper prints only ϵ<E(C). Its proof uses Property 1 at 2ϵ1 with ϵ1=200nϵ/min(mx,mz), so we also require 400nϵ<δ0min(mx,mz). This is exactly the missing domain condition; it is automatic if c1≥1. No normalization c1≥1 is imposed, and the frozen printed cutoff is retained as the first entry of the minimum.
Correction to the printed source.
Printed: Theorem 5 permits eps < E(C), where E(C) is the printed energyCutoff, for arbitrary positive c1.
Corrected: Use eps < min(E(C), delta0min(mx,mz)/(400n)); give the eventual positive floor for this same minimum. No other hypothesis, constant, or conclusion is changed.
Reason: The source proof sets epsilon1=200neps/min(mx,mz) on p.3 and applies Property 1 at 2epsilon1 on p.4. Its domain is delta<delta0, but the printed cutoff only supplies 2c1epsilon1<delta0. The additional strict upper bound is exactly 2epsilon1<delta0. It is redundant for c1>=1 and retains every c1<1 instance satisfying the actual proof-domain condition.
Significance
These are known results from the cited paper. The current contribution consists of source-reviewed, compiler-checked theorem statements and mathematical definitions. Formal proofs remain open. Only the listed selected results are in scope; no whole-paper completeness is claimed.
Difficulty
A complete solution must establish every quantified conclusion under the exact stated hypotheses, including error, probability and resource conditions wherever present. The source assumptions and conventions are recorded in the attached statements and independent readbacks.
Formalization scope
Definitions preserve the existing reviewed Lean interfaces. Every target proof is currently sorry, so each target is Open. Printed-source corrections, where necessary, are labeled with the printed claim, the change and its reason.
There is a deterministically explicit family of binary CSS check descriptions on n qubits, and constants ϵ,c,a,b>0, a locality bound s, and a threshold n0≥1, all independent of n. Explicit means that a deterministic polynomial-time function on unary n outputs the actual row counts and both binary check matrices. For every n≥1, both check matrices have row and column weights at most s, their total row count mn satisfies an≤mn≤bn, and their associated projector terms hi=(I−Xwi)/2 or (I−Zwi)/2 act on at most s qubits, commute, and annihilate a common unit vector. Let Hn=∑ihi be this unnormalized Hamiltonian. Every circuit P of parallel one- and two-qubit unitaries on disjoint wires, starting from zero qubits and allowing arbitrary clean ancillas and discarded qubits, has an output density operator ρP satisfying, for n≥n0,
Tr(HnρP)<ϵn⟹depth(P)≥clnn.
This is the existence of an NLTS Hamiltonian family. Quantifying over every preparation circuit gives the lower bound for mixed as well as pure low-energy states.
Formalization Note The deterministic interpretation of explicit and the CSS witness implementation are recorded for independent moderation; the theorem does not assume an NLTS guarantee on its family.
Section 2: support of both measurement distributions
Let HX,HZ be a binary CSS check presentation with n,mx,mz>0, and let ρ be any density operator with Tr(Hρ)≤ϵn, where ϵ≥0 and H is the sum of the actual check projectors. Write Dz,Dx for its standard- and product-Hadamard-basis distributions and Gbδ for the words violating at most a δ fraction of the actual checks on side b. For every ϵ1>0,
Dz(Gzϵ1)≥1−ϵ1mzϵn,Dx(Gxϵ1)≥1−ϵ1mxϵn.
If ϵ=0, both Gz0 and Gx0 have probability one. If ϵ>0, choosing ϵ1=200nϵ/min(mx,mz) gives both masses at least 199/200.
These bounds place low-energy measurement outcomes in the approximate classical codes. The energy identity and probability bounds are conclusions of the source argument, not hypotheses of the formal statement.
Section 2: equivalence classes and separated clusters
Let CX=kerHX and CZ=kerHZ be a binary CSS pair satisfying Property 1 with positive constants c1,c2,δ0. Assume ϵ1≥0, 2ϵ1<δ0, and 4c1ϵ1<c2. On Gzϵ1 define x∼zy when ∣x+y∣CX⊥≤2c1ϵ1n, with the corresponding definition on Gxϵ1 modulo CZ⊥. Here ∣v∣S=mins∈S∣v+s∣. For either basis this is an equivalence relation. Its distinct computed classes are nonempty, pairwise disjoint, and cover the corresponding approximate code. Distinct classes satisfy
x∈B,y∈B′,B=B′⟹∣x−y∣≥c2n.
This constructs the separated clusters needed for the depth argument.
Formalization Note The strict domain follows Property 1 on page 2; the page-4 prose writes a non-strict endpoint. The classes are computed from the relation rather than supplied with a separation guarantee.
Correction to the printed source.
Printed: Page 4 says 'assuming 2 epsilon1 <= delta0', but Property 1 on page 2 is stated only for delta < delta0.
Corrected: Use 0 <= epsilon1 and the strict inequality 2 epsilon1 < delta0 in the clustering regime.
Reason: The proof invokes Property 1 at delta = 2 epsilon1; the strict domain is necessary. This is a standing-domain clarification pending independent moderation.
Lemma 2: one basis has no highly concentrated cluster
Consider a binary CSS presentation with n,mx,mz>0 and logical dimension k≥1, satisfying Property 1 with c1,c2,δ0>0. Let ρ be any density operator. Assume ϵ1≥0, 2ϵ1<δ0, 4c1ϵ1<c2, and
2c1ϵ1≤(4nk−1)2.
For the computed clusters in the preceding result, either every standard-basis cluster has Dz-mass strictly less than 99/100, or every Hadamard-basis cluster has Dx-mass strictly less than 99/100.
This uncertainty consequence selects a basis in which no single cluster captures almost all probability. It requires no low-energy hypothesis once the clusters are defined.
Formalization Note The subtraction k−1 takes place in the reals. The positive-k reading comes from the section's positive-rate setting and is flagged for independent moderation.
Correction to the printed source.
Printed: The displayed finite lemma does not explicitly say k>=1, while Section 2 is introduced for constant-rate code families.
Corrected: State the finite lemma for k>=1 and n,mx,mz>0, keeping ((k-1)/(4n))^2 with real subtraction.
Reason: The proof uses a positive logical dimension; at k=0 the zero-radius clusters can concentrate in both bases. The finite positive-rate reading requires independent moderation.
Fact 3: uncertainty for subsets in conjugate bases
Let ρ be any n-qubit density operator, and let Dz,Dx be its standard- and product-Hadamard-basis measurement distributions. For all sets S,T⊆{0,1}n,
Dx(T)≤21−Dz(S)+2n∣S∣∣T∣.
This bounds concentration in conjugate bases and applies to mixed states. No positive-mass hypothesis on S is required; empty sets and n=0 are allowed.
Section 2: positive-mass separated unions
Let a binary CSS presentation on n>0 qubits satisfy Property 1 with c1,c2,δ0>0, and assume ϵ1≥0, 2ϵ1<δ0, and 4c1ϵ1<c2. Fix either basis and any density operator ρ. Suppose its measurement distribution D gives the approximate-code set mass at least 199/200, while each computed class has mass less than 99/100. Then there are disjoint subcollections M,M′ of the computed classes whose unions S,S′ are disjoint and satisfy
D(S)≥4001,D(S′)≥4001,∣x−y∣≥c2n(x∈S,y∈S′).
This extracts two positive-mass separated sets in whichever basis Lemma 2 selects. Both probability constants and the cross-union separation are retained.
Fact 4: depth lower bound for well-spread distributions
Let P be a circuit of depth t consisting of layers of disjoint one- and two-qubit unitaries, starting in the all-zero product state. Allow any number of clean ancillas and measure only its n>0 output qubits in the standard basis, giving distribution D. Let 0<μ<1, and suppose D(S),D(T)≥μ. For any u≥0 such that every x∈S,y∈T has Hamming distance at least u,
u2≤400nln(1/μ)23t.
For positive set distance this is equivalently t≥31log2(dist(S,T)2/(400nln(1/μ))).
This is the quantitative circuit-depth obstruction for well-spread output distributions. The exponential formulation also covers overlapping sets without taking the logarithm of zero; the original circuit's workspace is unrestricted.
Lemma 8: expansion implies clustering
Let A∈F2m×n and V⊆F2n. Let δ>0 and 0<μ<ν. Suppose every x∈V with ∣x∣≤νn satisfies ∣Ax∣≥(δ/μ)∣x∣. Then
x∈V,∣Ax∣≤δn⟹∣x∣≤μnor∣x∣≥νn.
This transfers small-set expansion to the clustering dichotomy. Both the size cutoff and syndrome cutoff use the number of columns n, even for rectangular matrices.
Formalization Note Positivity is taken from the proof and the paragraph immediately following Lemma 8; the unsupported zero-δ extension is excluded.
Correction to the printed source.
Printed: The displayed Lemma 8 omits its parameter domain; its proof uses delta>0 and mu>0 and the following paragraph takes mu<nu.
Corrected: State Lemma 8 on the meaningful positive regime delta>0 and 0<mu<nu, as pinned by the plan and proof.
Reason: For delta=0, an expansion hypothesis with beta=0 supplies no information and the claimed nontrivial dichotomy can fail. Independent moderation must confirm the intended domain.
Let F be a family of binary CSS check presentations. Fix positive αx,βx,αz,βz,δˉ,a,b and n0≥1. For all n≥n0, suppose an≤mx(n),mz(n)≤bn. For every 0≤δ<δˉ, define Vzδ as the words in Gzδ of minimum Hamming weight within their coset modulo CX⊥, and define Vxδ analogously modulo CZ⊥. Assume HX is (αx,βx)-expanding on Vxδ and HZ is (αz,βz)-expanding on Vzδ. Then there are constants c1,c2,δ0>0, independent of n, such that for all n≥n0 and 0≤δ<δ0,
y∈Gzδ⟹∣y∣CX⊥≤c1δnor∣y∣CX⊥≥c2n,
and the same dichotomy holds on the X side modulo CZ⊥.
This derives Property 1 from uniform expansion of minimal representatives, without assuming the desired dichotomy. The check-density factors converting δmside to a threshold relative to n are retained.
These additional statements have current no-edit source review. Their formal proofs remain open; deferred results are excluded.
Bivariate-Bicycle Codes: New [[336,20,12]] and [[360,24,12]] Codes and Certified DistancesResearch Paper
Motivation
A quantum memory stores logical qubits in many physical qubits so that errors can be detected and corrected. The overhead of doing so, measured by how many physical qubits are spent per logical qubit at a given error-correcting power, is one of the main costs of fault-tolerant quantum computation. Bivariate-bicycle (BB) codes are currently the leading low-overhead family: the gross code[[144,12,12]] of Bravyi et al. (Nature, 2024) stores 12 logical qubits at distance 12 using 144 data qubits, roughly a tenth of the overhead of a surface code with the same distance, and it is the basis of a published hardware roadmap. The search for higher-rate members of the family is active, and the claims made in it are claims about the exact distance of explicit finite codes. These are finite but very large computations, and they are rarely checked independently.
2013 — Kovalev and Pryadko generalize the construction to commuting pairs of group-algebra elements (generalized bicycle codes).
2024 — Bravyi, Cross, Gambetta, Maslov, Rall and Yoder define BB codes over Zl×Zm and give the ladder [[72,12,6]], [[90,8,10]], [[108,8,10]], [[144,12,12]], [[288,12,18]], with [[360,12,≤24]] left with only an upper bound.
2026 — An evolutionary search by Cruz-Benito et al. (arXiv:2606.02418) reports [[288,16,12]] as its best indecomposable weight-6 code at distance 12.
2026 — Daugherty, Ryan and Ward give two new [[336,20,12]] codes and a new [[360,24,12]] code. They certify the exact distances of the whole ladder, establish d=24 for [[360,12]], and show by enumeration that no connected three-term weight-6 BB code with n≤360 and k≥20 has distance 13 or more.
Setting
Fix positive integers l,m and let G=Zl×Zm. The monomial xiyj of the ring F2[x,y]/(xl−1,ym−1) is identified with (i,j)∈G. A polynomial P with coefficients in F2 is identified with its support, the finite set of monomials with coefficient 1. The circulant of P is the G×G binary matrix with a 1 in row g, column h exactly when h−g∈P.
Given two polynomials A,B, the BB codeBB(A,B) acts on n=2lm qubits, arranged in two blocks indexed by G. Its check matrices are
HX=[A∣B],HZ=[BT∣AT],
where A and B also denote their circulants. Because G is abelian, HXHZT=AB+BA=0 over F2, so this is a CSS code. Its parameters are:
the number of logical qubitsk=n−rankHX−rankHZ, with ranks over F2;
the Z-distancedZ, the least Hamming weight of a vector v∈F2n with HXv=0 and v∈/row(HZ) (a nontrivial Z-logical);
the X-distancedX, defined dually: HZv=0 and v∈/row(HX).
The code is [[n,k,d]] when dX=dZ=d. Each check of a code built from two three-term polynomials touches six qubits (weight 6). The Tanner graph joins each qubit to the X- and Z-checks acting on it, and the code is connected when this graph is connected.
each with dX=dZ=12 (Table 9 of the source). Each new code is also a milestone on its own.
Milestones
Lemma 1 (minimality). In any parity system, no nonempty proper subset of a minimum-weight logical is even on every check.
Table 3, the certified ladder.[[72,12,6]], [[90,8,10]], [[108,8,10]], [[144,12,12]], [[288,12,18]] and [[360,12,24]], all with dX=dZ, for the polynomials of Bravyi et al.
Section 6, the weight-6 envelope. Every connected BB code built from two three-term polynomials with n≤360 and k≥20 has a nontrivial X- or Z-logical of weight at most 12. In words, none has distance 13 or more.
Significance
The result. The new codes encode 25% and 50% more logical qubits at distance 12 than the best weight-6 code reported by evolutionary search, with figures of merit kd2/n of 8.57 and 9.60. The ladder distances turn published values, several of them previously supported only by heuristic searches or upper bounds, into exact statements. In particular d([[360,12]])=24 settles an upper bound left open by Bravyi et al. The envelope statement is a negative result: within this family and size range, distance 12 is the ceiling at k≥20.
Formalizing it. In the source, each lower bound on a distance is a DRAT refutation or a replayable proof tree, checked by external programs. Only the pruning lemma (Lemma 1) has a machine-checked proof, in Lean 4. A complete formalization would make the code parameters kernel-checked facts about explicit Mathlib objects, independent of every external checker. Upper bounds on distance and the values of k are finite linear-algebra facts. Lower bounds are exhaustive statements over (wn)-sized spaces and are the core of the work.
Difficulty
The upper bound d≤12 needs one explicit weight-12 logical together with a proof that it lies outside the opposite row space. The lower bound d≥12 asks that no nontrivial logical of weight at most 11 exist among roughly (11336)≈1019 candidate supports. Direct enumeration is out of reach. A SAT encoding with a cardinality constraint is several orders of magnitude slower than the source's pruned search, and the resulting proof objects are large: hundreds of megabytes for the larger ladder codes. Kernel-checking such certificates, or finding structure that avoids them, is the central difficulty. Computing k also requires an F2-rank of matrices with up to 180 rows and 360 columns, and Mathlib's Matrix.rank is not computable by decide. The envelope statement additionally quantifies over 971 group shapes and every pair of three-term polynomials on each.
Formalization scope
All objects are in the definition file BBCode_Setting. G is ZMod l × ZMod m, and a polynomial is a Finset of monomials, which makes it a set of distinct terms. The circulant has entry 1 at (g,h) iff h−g∈P. Qubits are G ⊕ G (left and right blocks). HX is Matrix.fromCols (circulant A) (circulant B) and HZ is Matrix.fromCols (circulant B)ᵀ (circulant A)ᵀ, over ZMod 2. The row space is the ZMod 2-span of the rows, and the weight counts nonzero coordinates. NumLogical A B k states rankHX+rankHZ+k=n additively, avoiding truncated subtraction. HasZDistance A B d requires both a nontrivial Z-logical of weight exactly d and the lower bound for every nontrivial Z-logical, so a code without logicals cannot satisfy it vacuously. IsCode A B n k d bundles n=2lm, k and both distances.
The envelope quantifies over all l,m≥1 with 2lm≤360. The source enumerates 961 shapes; the 10 it omits (lm≤5) cannot have k≥20, so the two ranges are equivalent.
Reusable infrastructure includes computable F2 rank certificates (explicit row-echelon or basis witnesses), a verified checker for DRAT or proof-tree certificates, and symmetry lemmas for group translations acting on BB codes. Contributions of any of these, of individual sectors (dX or dZ separately), or of upper and lower bounds as separate lemmas are welcome.
B. W. Daugherty, S. Ryan, G. Ward, New distance-12 bivariate-bicycle codes with 20 and 24 logical qubits: an exhaustive classification and checkable distances to 360 qubits, certificate release v1.0.0, Zenodo, 2026. https://doi.org/10.5281/zenodo.23382175
D. J. C. MacKay, G. Mitchison, P. L. McFadden, Sparse-graph codes for quantum error correction, IEEE Trans. Inf. Theory 50(10), 2315–2330, 2004. https://arxiv.org/abs/quant-ph/0304161
A. A. Kovalev, L. P. Pryadko, Quantum Kronecker sum-product low-density parity-check codes with finite rate, Phys. Rev. A 88, 012311, 2013. https://arxiv.org/abs/1212.6703
J. Cruz-Benito et al., evolutionary search for bivariate-bicycle codes, arXiv:2606.02418, 2026. https://arxiv.org/abs/2606.02418
Quantum Tanner Codes 2: A Random Dual Tensor Code Is Δ^{3/2−ε}-Robust with Δ^γ-Resistance to Puncturing with Probability Tending to 1Research Paper
Motivation
Quantum error correction needs families of codes that protect a growing number of logical qubits while using checks that touch few physical qubits. In a quantum Tanner code, the local constraints come from two smaller binary codes. The distance analysis requires those local codes to satisfy a geometric condition called robustness: a low-weight word in a certain sum code must occupy only a controlled number of complete rows and columns. The deterministic distance theorem in Leverrier and Zémor's Quantum Tanner codes assumes this condition; their Theorem 9 supplies it for randomly chosen component codes. Establishing that random codes satisfy the assumption makes the later existence result meaningful rather than conditional on a property with no known examples.
Fix two coordinate sets A and B, each of cardinality Δ. A binary linear codeCA⊆F2A is a vector subspace; similarly CB⊆F2B. Regard a word on A×B as a matrix x=(xab). The column code contains matrices whose column at every b∈B belongs to CA. The row code contains matrices whose row at every a∈A belongs to CB. Their intersection is the tensor code CA⊗CB; their sum is the dual tensor codeCA⊗F2B+F2A⊗CB. The Hamming weight ∣x∣ counts its nonzero entries. These conventions are those of §3.5 of the source paper.
Write dA,dB for the actual minimum distances of the two component codes. The dual tensor code is w-robust if every codeword x with ∣x∣≤w vanishes outside the union of some set of at most ∣x∣/dB rows and some set of at most ∣x∣/dA columns. Thus a low-weight word cannot be spread thinly across many rows and columns. For retained coordinate sets A′⊆A and B′⊆B, the punctured codesCA′ and CB′ are the images under restriction. Robustness has p-resistance to puncturing when the corresponding dual tensor code remains w-robust for every pair A′,B′ of equal size obtained by removing at most p coordinates from each side. These are Definitions 5 and 8 on pp. 15–16 of the paper.
A uniform generator matrix with r rows and Δ columns is sampled uniformly from all binary matrices of that shape. Its row span is CA. Independently, a uniform parity-check matrix with s rows and Δ columns defines CB as its kernel. Probability is the fraction of matrices, or matrix pairs, satisfying an event. In the asymptotic statement, Δ tends through natural numbers to infinity.
Formalization targets
Random robustness and resistance
For 0<ρA,ρB<1, 0<ε<1/2, and 1/2+ε<γ<1, sample CA and CB from the matrix models above, using ⌊ρAΔ⌋ generator rows and ⌈(1−ρB)Δ⌉ parity-check rows. The goal, Theorem 9, is
Pr[CA⊗F2B+F2A⊗CB is Δ3/2−ε-robust with Δγ-resistance]⟶1.
The milestones are the paper's numbered appendix statements: Lemma 31 converts concentration on few rows and columns into Definition 5's sharper weight-based bounds; Lemmas 24–29 address ranks and probabilities for random kernels and punctured kernels; Theorem 30 gives the quantitative high-probability alternative used before the final limit. The goal fixes the exponents and quantifies over the whole uniform matrix experiment.
Significance
Theorem 9 certifies that the robustness hypothesis needed by the paper's distance construction occurs with asymptotic probability one. It covers all allowed puncturings at once, which matters because a later distance argument deletes coordinates selected by the codeword under study. A statement about one fixed puncturing would not provide that guarantee. The result is proved in the 2022 paper; this mission poses its statements for machine-checked proofs and does not claim that those proofs already exist.
Formalizing the result produces reusable finite probability statements for random linear codes, a parity-check treatment of puncturing, and rank bounds for sparse binary matrices. Those ingredients are independent of the group complex used in the paper's other mission. They can support later formalizations of random coding arguments where a union over many coordinate restrictions is necessary.
Difficulty
The evident first check is that one fixed low-weight matrix probably does not belong to a random dual tensor code. That alone does not establish robustness: the statement ranges over all such matrices and, for resistance, over every pair of large retained coordinate sets. The paper's intermediate results control this whole collection using rank information about sparse matrices and the exact probability that independent vectors lie in a random kernel. A further issue is that puncturing a parity-check code does not simply delete columns from its defining matrix; the discarded columns contribute a random subspace. The quantitative event in Theorem 30 and the simultaneous limit in Theorem 9 both have to survive these ranges.
Formalization scope
Lean uses ZMod 2 for F2, Fin \Delta for each coordinate set, and functions on A×B for matrices. Rows are indexed by A and belong to CB; columns are indexed by B and belong to CA. The published TillichZemor.HGP.Setting supplies the parity-check kernel and the extended-natural minimum distance, whose value is infinity for the zero code. CodingTheory is a published prerequisite. Local definitions give the row and column codes, their sum, puncturing, robustness, uniform finite probability, generator row span, and binary entropy in bits.
The printed matrix sizes ρAΔ and (1−ρB)Δ need integer values. The chosen floor and ceiling keep their respective dimensions within the bounds used in the appendix. Every logarithm in the formalized appendix bounds means log2, including occurrences printed simply as log. Theorem 30 includes an explicit sufficiently-large-Δ threshold, as its proof's asymptotic count requires, and carries the appendix's preceding entropy condition δ<h−1(1−ρ) as δ<1/2 and h2(δ)<1−ρ. Lemmas 25, 26, and 29 use the preceding condition d>2αΔ; the symbol beside Δ in the scan is ambiguous, and the argument on p. 29 determines this reading. These choices are recorded for audit in MODERATION_NOTES.md.
The probability space is all matrices of each stated size, with the two matrices in Theorem 9 sampled independently. There is no conditioning on a favorable code or an assumed version of Theorem 30 in the goal. The mission does not formalize the later quantum Tanner code construction or the cited Gilbert–Varshamov result as an additional item. Contributions proving the goal, the numbered milestones, or reusable rank and finite-probability facts are within scope.
Selected references
Anthony Leverrier and Gilles Zémor, Quantum Tanner codes, arXiv:2202.13641v3, 2022. Preprint.
Pavel Panteleev and Gleb Kalachev, Asymptotically good quantum and locally testable classical LDPC codes, arXiv:2111.03654, 2021. Preprint.
Quantum Tanner Codes 1: On a Ramanujan Left-Right Cayley Complex with Robust Dual Tensor Codes, the Quantum Tanner Code Has Rate at Least (1−2ρ)² and Distance at Least δn/(4Δ^{3/2+ε})Research Paper
Why quantum Tanner codes matter
An error-correcting code protects information by adding redundancy. A quantum code must also account for two kinds of errors, commonly called X and Z errors. Quantum low-density parity-check codes use checks that each touch only a bounded number of qubits, while each qubit participates in only a bounded number of checks. Such locality matters when the number of qubits grows. For years it was difficult to make both the number of encoded qubits and the minimum distance proportional to the block length while retaining bounded-weight checks. Leverrier and Zémor's quantum Tanner construction gives a route through local codes placed on an expanding square complex; its main distance theorem is the target of this mission Leverrier and Zémor, 2022.
The construction combines two earlier ingredients. Left-right Cayley complexes provide the squares and expansion properties used by the code Dinur, Evra, Livne, Lubotzky, and Mozes, 2021. Robustness of a dual tensor code, including after puncturing coordinates, controls local words Panteleev and Kalachev, 2021. The paper states the local reduction property as Theorem 1 and derives the rate and distance bounds as Theorem 17. This mission formalizes that implication under the paper's stated component-code and expansion conditions; the separate random-code result that supplies robust examples belongs to the second mission of this series.
The square complex and its codes
Let G be a finite group and let A,B⊆G be inverse-closed sets, each of size Δ. The total no-conjugacy condition says ag=gb for every a∈A, b∈B, and g∈G. Vertices are two copies of the group, V=G×{0,1}. A square associated with v=(g,i) and (a,b)∈A×B has vertices v, (ag,1−i), (gb,1−i), and (agb,i). The set of squares is Q, and a binary word on Q has length n=∣Q∣. At a vertex v, the incident squares are indexed by A×B; this indexing makes the local viewxv of a word x∈F2Q an A×B matrix Leverrier and Zémor, §§3.2 and 4.1.
A binary linear codeCA has coordinates indexed by A, and CB has coordinates indexed by B. Their tensor codeCA⊗CB consists of matrices whose columns lie in CA and whose rows lie in CB. The dual tensor codeCA⊗F2B+F2A⊗CB is the sum of the column and row codes. In Definition 5, it is w-robust when every member of weight at most w is supported on a union of few rows and columns, with the bounds determined by the two component minimum distances. Definition 8 requires this property after deleting up to p coordinates from each side. These are conditions on all relevant codewords and all permitted puncturings, including the unpunctured pair Leverrier and Zémor, pp. 15–16.
The two Tanner codes are C0=T(G0□,(CA⊗CB)⊥) and C1=T(G1□,(CA⊥⊗CB⊥)⊥). Here Gi□ is the square-adjacency graph on the vertices in copy i. Together they define the quantum CSS code Q=(C0,C1). Its dimension counts encoded qubits. Its distance is the smaller of the minimum weights in C0∖C1⊥ and C1∖C0⊥Leverrier and Zémor, pp. 14, 18.
Formalization targets
The goal is Theorem 17. Fix 0<ρ<1/2, 0<ε<1/2, 1/2+ε<γ<1, and δ>0. For sufficiently large Δ, take a left-right Cayley complex satisfying total no-conjugacy and the paper's Ramanujan conditions. Require 0<dimCA≤ρΔ, dimCB=Δ−dimCA, minimum distance at least δΔ for CA,CB and both duals, and Δ3/2−ε/2 robustness with Δγ resistance to puncturing for both relevant dual tensor codes. The target is
k≥(1−2ρ)2n,d≥4Δ3/2+εδn.
The milestones mirror the paper's route to this result. Lemma 4 bounds the nontrivial eigenvalues of the union and square graphs. Propositions 6 and 7 turn dual-tensor robustness into a decomposition and a 3/2 closeness bound. Theorem 1 supplies a weight-reducing local codeword for every sufficiently light nonzero Tanner-code word. Display (5) supplies the dimension lower bound. Theorem 17 combines the two distance directions with that rate estimate Leverrier and Zémor, pp. 12, 15–16, 18–23.
What the result supplies
The lower bound on k ensures a positive fraction of qubits can carry logical information when ρ<1/2. The lower bound on d rules out small undetectable logical errors. For a fixed allowable degree Δ, both bounds scale linearly with n. The paper also shows that random component codes can satisfy the robustness assumptions; that probabilistic result is a separate formalization target Leverrier and Zémor, Theorems 9 and 17.
A checked development would make explicit how the square indexing, duals, punctured codes, and CSS quotient fit together. The source proves the mathematical result; the statements here remain open Lean theorems. Reusable contributions include the tensor-code interface, spectral bounds for the graph construction, and lemmas connecting local views to the global Tanner codes. A proof of the existence of infinite Ramanujan complex families is outside this mission's stated target.
Where the proof is difficult
A light global codeword need not have a local view that is itself close to a tensor-code word. Some square-graph vertices have unusually large local weight, and puncturing is needed to isolate coordinates shared with those exceptional vertices. The paper's small-set expansion estimates and robustness conditions control those interactions. Simply averaging local weights does not yield the weight-reducing local codeword asserted by Theorem 1 Leverrier and Zémor, §4.2.
Formalization scope
Words are functions into ZMod 2, codes are submodules, and a matrix is a function on A×B with A indexing rows. The square coordinates are four-element vertex sets. The construction uses V=G×Fin(2) and counts n as the number of squares rather than building n=Δ2∣G∣/2 into a definition. The minimum distance of the zero code is infinity, and robustness uses inequalities involving that extended value. Powers of Δ and the parameters w,p are real; the paper uses integer w,p in Definition 8, while the theorem's power thresholds need real comparisons. The formal robustness predicate includes Definition 5's range 0≤w≤Δ2; the theorem thresholds satisfy it for sufficiently large Δ. These conventions are recorded with each item.
The goal quantifies over every finite complex satisfying inverse closure, total no-conjugacy, and Ramanujan conditions, with a uniform threshold Δ0 chosen before the group and codes. This pins the complexes in the cited infinite family without formalizing their existence. In particular, the goal contains no auxiliary set or local reduction assumption that could make the distance bound immediate. The published CodingTheory and TillichZemor.HGP.Setting definitions supply dual codes and CSS dimension; the paper-specific setting supplies the square complex, local views, Tanner codes, and robustness. Contributions that keep these conventions and close any milestone theorem are welcome.
Selected references
A. Leverrier and G. Zémor, Quantum Tanner codes, arXiv preprint, 2022. arXiv:2202.13641v3.
I. Dinur, S. Evra, R. Livne, A. Lubotzky, and S. Mozes, Locally Testable Codes with constant rate, distance, and locality, arXiv preprint, 2021. arXiv:2111.04808.
P. Panteleev and G. Kalachev, Asymptotically good quantum and locally testable classical LDPC codes, arXiv preprint, 2021. arXiv:2111.03654.
Reversing quantum dynamics with near-optimal quantum and classical fidelity I: The Reversal Operation Attains at Least the Square of the Optimal Average Entanglement FidelityResearch Paper
Motivation
Quantum error correction and quantum communication both ask the same question: after a known noise process A has acted on a quantum system, how well can its effect be undone? For a given noise model the best recovery is the solution of a semidefinite program, which gives a number but no structure and no formula. Barnum and Knill showed in 2000 that a single, explicit recovery map, built from A and the input state alone, is always close to the best one: its fidelity is at least the square of the optimal fidelity (arXiv:quant-ph/0004088). The map they use is now usually called the Petz recovery map or transpose channel; Petz had introduced it in operator-algebraic work on sufficiency (Petz 1986; Petz 1988). Near-optimality results of this kind underlie approximate quantum error correction and the later theory of recoverability in quantum information.
Timeline.
1986–1988, D. Petz: the map ρ1/2A†(A(ρ)−1/2⋅A(ρ)−1/2)ρ1/2 characterizes when a channel can be reversed exactly on a family of states.
2002, Barnum and Knill (J. Math. Phys. 43, 2097; doi:10.1063/1.1459754): in the published version, the reversal operation achieves at least the square of the optimal entanglement fidelity for a single input state.
arXiv v2 of the same paper (the source of this mission): the published Eq. (34) had dropped the ensemble weights; with that corrected, the bound holds for the average entanglement fidelity of any ensemble of commuting density matrices (Acknowledgments, p. 14).
Setting
A finite-dimensional quantum system is described by complex n×n matrices; X† is the conjugate transpose, and a density matrix is a positive semidefinite matrix of trace one. A completely positive mapA is given by a finite decompositionA∼{Ai}i of matrices and acts by
A(X)=i∑AiXAi†.
It is trace-preserving if ∑iAi†Ai=I and trace-nonincreasing if ∑iAi†Ai≤I in the Loewner order. The composite RA has decomposition {RkAi}(k,i).
For a state ρ the paper defines the reversal operation
RA,ρ∼{ρ1/2Ai†A(ρ)−1/2}i,
under the standing assumption that A(ρ) has full support. Here X−1/2 is the generalized inverse square root: invert the square roots of the non-zero eigenvalues and keep the zero eigenvalues.
Fidelities are measured by the entanglement fidelityFe(ρ,K)=∑k∣trKkρ∣2 of a map K∼{Kk}k and, for an ensembleE={pl,ρl}l (weights pl≥0 summing to one, density matrices ρl), by the average entanglement fidelity
Fˉe(E,K)=l∑plFe(ρl,K).
When ρ=∑ipi∣i⟩⟨i∣ in an orthonormal eigenbasis, the classical fidelity is Fcl(ρ,K)=∑ipi⟨i∣K(∣i⟩⟨i∣)∣i⟩, the average entanglement fidelity of the ensemble of eigenstates.
Formalization targets
Goal: Theorem 3 (p. 7)
Let A be trace-preserving, E={pl,ρl}l an ensemble of pairwise commuting density matrices, ρ=∑lplρl, and assume A(ρ) has full support. Then for every trace-preserving completely positive R,
Fˉe(E,RA,ρA)≥Fˉe(E,RA)2.
Milestones
The milestones follow the paper's proof:
Lemma 1 (p. 7): RA,ρ depends only on the map A, not on its decomposition.
(14)–(15) (p. 7): after replacing Rk by PCRk (PC the support projector of ρ), which leaves Fˉe unchanged and makes R trace-nonincreasing, each Rk=ρ1/2Bk†A(ρ)−1/2, and B(ρ)≤A(ρ).
(33)–(34) (p. 9): that sum equals trR(B(ρ))≤trR(A(ρ))≤1.
Two companions are also posed: Proposition 2, RA,ρ(A(ρ))=ρ, and Corollary 4, Fcl(ρ,RA)≤Fcl(ρ,RA,ρA) and Fe(ρ,RA)≤Fe(ρ,RA,ρA).
Significance
The result. Theorem 3 says that the error 1−Fˉe of the reversal operation is at most twice the optimal error, since (1−η)2≥1−2η. It gives a closed-form recovery whose performance is within a factor two in error of the semidefinite optimum, for every noise process and every commuting ensemble. Taking the ensemble of eigenstates of ρ (Corollary 4) gives the same guarantee for classical information sent through a quantum channel; the companion mission (II of this series) applies the construction to state discrimination, where the reversal operation is the pretty good measurement.
Formalizing it. The result is proved on paper; none of it has a machine-checked proof that we know of. The mission asks for the full argument: the decomposition independence of the reversal map, the reduction to the support of ρ, the singular-value change of decomposition (17)–(18), the chain (19)–(26) of Cauchy–Schwarz inequalities, and the normalization (27)–(34). It also fixes in Lean the arXiv v2 statement (commuting ensembles), which is stronger than the published one.
Difficulty
The obvious approach is to compare RA,ρ with an optimal R term by term. That fails: the fidelity of RA is a sum of squared traces mixing the decompositions of R and A, and no termwise inequality relates it to the fidelity of RA,ρA. The paper first rewrites every recovery in the shape of the reversal map, then chooses, for each ensemble member separately, new decompositions of A and B that diagonalize a coefficient matrix; making that choice legitimate needs the unitary freedom of Kraus decompositions, which Mathlib does not have. The commutation [ρ,ρl]=0 is used to move fractional powers of ρ and ρl past each other inside traces; without commutation the authors do not know whether the theorem holds (p. 10).
Formalization scope
Matrices are Matrix n n ℂ over a finite type n with decidable equality; Loewner order, square roots and functional calculus come from Mathlib (open scoped MatrixOrder). The map X↦∑iAiXAi† is the published PeresTerno.krausUpdate, referenced, not redefined.
Maps are unbundled Kraus families over arbitrary finite index types. The recovery R in Theorem 3 ranges over every finite family with ∑kRk†Rk=I.
X−1/2 is cfc (fun x => (Real.sqrt x)⁻¹) X, the generalized inverse; Mathlib's junk matrix inverse is not used. The support projector is the functional calculus of the indicator of x=0.
Fe is defined by the formula (8), which the paper derives from its purification definition. Fcl takes an orthonormal eigenbasis and weights as data, with ρ=∑ipi∣i⟩⟨i∣ as a hypothesis.
Standing hypotheses, all from the paper: A trace-preserving (§II's noise model); A(ρ) positive definite (full support, p. 7); the ensemble is a probability vector of pairwise commuting density matrices with ρ=∑lplρl.
In (34) the page prints trR(A(ρ))=1; after the replacement Rk↦PCRk the map is only trace-nonincreasing, so the milestone states ≤1.
Trivializing encodings are ruled out: the reversal family is the literal formula (12) for the given A and the ensemble's own ρ, and the fidelity of a composite map is (8) applied to the composite decomposition {RkAi}, never the right-hand side of the proof's chain.
Infrastructure a complete development needs, reusable beyond this mission: the unitary freedom of Kraus decompositions, the singular value decomposition of a complex square matrix, the trace Cauchy–Schwarz inequality for Hilbert–Schmidt products, and functional-calculus identities such as ρ1/2ρ−1/2=PC. Contributions of any of these as separate theorems are welcome. The pure-state, measurement form Popt2≤PPGM≤Popt is already posed on the platform as QAlgorithms.Arunachalam.barnumKnill and is not repeated here.
Selected references
H. Barnum, E. Knill, Reversing quantum dynamics with near-optimal quantum and classical fidelity, arXiv:quant-ph/0004088v2. https://arxiv.org/abs/quant-ph/0004088
D. Petz, Sufficient subalgebras and the relative entropy of states of a von Neumann algebra, Commun. Math. Phys. 105, 123–131 (1986). https://doi.org/10.1007/BF01212345
Quantum LDPC Codes with Positive Rate and Minimum Distance Proportional to n^{1/2}: The Hypergraph Product of a Full-Rank [n,k,d] Parity-Check Matrix with Itself Is an [[n²+(n−k)², k², d]] CSS CodeResearch Paper
Motivation
Quantum computers need error correction, and the codes that are cheapest to run in hardware are quantum low-density parity-check (LDPC) codes: every check involves a bounded number of qubits, and every qubit takes part in a bounded number of checks. For a long time the only well-understood quantum LDPC codes were surface codes such as Kitaev's toric code, whose minimum distance grows like the square root of the length but which encode a fixed number of qubits, so their rate tends to zero. Tillich and Zémor (arXiv:0903.0566; IEEE Transactions on Information Theory, 2014; preliminary version ISIT 2009) gave the first general construction of quantum LDPC codes with positive rate and minimum distance proportional to N, from any classical LDPC code. Their hypergraph product became the standard building block of the field.
Timeline.
1996: Calderbank–Shor and Steane introduce CSS codes, quantum codes built from two classical binary codes (quant-ph/9512032, quant-ph/9601029).
2009: Tillich and Zémor: the hypergraph product, with positive rate and distance Θ(N) (this mission).
2020–2021: distance beyond N for quantum LDPC codes: NlogN by Evra, Kaufman and Zémor (arXiv:2004.07935); N3/5 up to polylogarithmic factors by Hastings, Haah and O'Donnell (arXiv:2009.03921).
2022: Panteleev and Kalachev construct asymptotically good quantum LDPC codes, using lifted products that generalize the hypergraph product (arXiv:2111.03654).
Setting
All codes are binary linear codes, subspaces of F2ι for a finite coordinate set ι. The Hamming weight∣x∣ of x is its number of nonzero coordinates. The minimum distanced(C) of a code is the least weight of a nonzero codeword, with the convention d({0})=∞.
A Tanner graphG=T(V,C,E) is the bipartite graph of a parity-check matrix H∈F2C×V: the variable nodes V index the columns, the check nodes C index the rows, and c∼v iff Hcv=1. Its code is C=kerH. The transpose Tanner graph GT is that of HT, and its code CT=kerHT is the transpose code. It depends on the matrix H, not only on C.
A CSS code is a pair (CX,CZ) of codes of the same length N with CZ⊥⊆CX. Its quantum dimension and quantum minimum distance are
with CX=kerHX and CZ=kerHZ. Write ki=dimCi, kiT=dimCiT, di=d(Ci) and diT=d(CiT).
Formalization targets
Goal: Theorem 1 (p. 3)
Let H be a full-rank (n−k)×n parity-check matrix of an [n,k,d] code. The code Q(G×G) built from two copies of its Tanner graph is a CSS code with
N=n2+(n−k)2,kQ=k2,dQ=d,
and each row of HX and HZ has weight i+j, with i a row weight and j a column weight of H.
General results
Proposition 14 (dimension): kQ=k1k2+k1Tk2T for any two Tanner graphs.
Theorem 15 (distance): dQ≥m:=min(d1,d2,d1T,d2T), with dQ=m whenever di=m and d3−i=∞, or diT=m and d3−iT=∞, for some i∈{1,2}.
The milestones follow the paper. They are Proposition 4 (validity), eq. (4), Fact 12 and Propositions 9, 10, 13 (product codes and transposes), which lead to Proposition 14. Then come eq. (17), the weight claim and Lemma 16 (lower bound), and the two claims of p. 17 and Lemma 17 (upper bound), which lead to Theorem 15. The degree count of p. 11 gives the row weights.
Significance
The result. The construction needs no orthogonality between the input codes: any two parity-check matrices give a valid CSS code. Its parameters are read off the classical inputs. A family of classical LDPC codes with fixed rate and linear distance therefore gives quantum LDPC codes with fixed rate and distance Θ(N), and sparse inputs give sparse stabilizers. The toric code is the special case where both inputs are cycle graphs. The hypergraph product is also the base case of the later homological and lifted-product constructions, and the source of the standard decoding and fault-tolerance results for these codes.
Formalizing it. The theorem is proved in the paper; what is missing is a machine-checked proof. The platform holds the toric code's distance and dimension (ToricCode.toric_distance, ToricCode.toric_homologyRank), but over its own chain complex, not over a general construction. This mission produces a reusable layer: Tanner graphs as binary matrices, CSS dimension and distance with the ∞ convention, product codes, and the parameters of the hypergraph product for arbitrary finite index sets.
Difficulty
The dimension count is linear algebra once the codes kerHXT and kerHZT have been identified with product codes. The obstacle is the distance. Lower bounds on the minimum weights of CX and CZ themselves are useless: CZ⊥⊆CX contains the rows of HZ, which have constant weight, so the minimum weight of CX is bounded by a constant. Any bound of order min(d1,d2,d1T,d2T) must use the definition of dX over CX∖CZ⊥ and show that every low-weight codeword of CX is degenerate, i.e. lies in CZ⊥. The upper bound needs an explicit codeword of CX outside CZ⊥, and showing that it is not in CZ⊥ requires an argument of its own.
Formalization scope
Lean represents a Tanner graph by its matrix H : Matrix C V (ZMod 2) over arbitrary finite index types. The code is ker H, the transpose code is ker Hᵀ, and the dual code is CodingTheory.dualCode from the published definition CodingTheory. Hamming weight is Mathlib's hammingNorm. Minimum distances live in ℕ∞, where the empty infimum is ⊤, the paper's ∞. kQ is the dimension of the quotient of CX by CZ⊥∩CX. In HX and HZ the qubits are ordered (V1×V2)⊔(C1×C2), as on p. 18. A product code is a set of ι1×ι2 matrices whose columns (fixed second coordinate) lie in the first code. The general results are stated without nonemptiness assumptions; they hold for empty index sets.
Theorem 1 has two disclosed differences from the page:
It adds the hypothesis k≤n, which is implicit in "[n,k,d]". Without it the matrix has no rows and the dimension claim fails.
It drops the word "LDPC", a property of families of codes. Its finite content is the row-weight clause, which is kept.
"There is a construction" is formalized as the paper's construction, the hypergraph product of H with itself.
Several encodings would trivialize the statements and are excluded: an N-valued minimum distance that is 0 on the zero code; dX taken over CX∖{0} instead of CX∖CZ⊥; kQ computed by truncated natural subtraction; an existential "there is a code with these parameters"; and the transpose code replaced by the dual code.
A complete development needs ranks and kernels of Kronecker products over F2, dimensions of product codes (Proposition 9, not in Mathlib), and the restriction of Tanner graphs to induced subgraphs. The product-code and CSS layers are reusable beyond this mission. Proofs of any milestone are welcome, as are alternative arguments for Proposition 14 via the Künneth formula.
Selected references
J.-P. Tillich and G. Zémor, Quantum LDPC codes with positive rate and minimum distance proportional to the square root of the blocklength, IEEE Transactions on Information Theory 60(2), 2014; preprint arXiv:0903.0566v2. https://arxiv.org/abs/0903.0566 , https://doi.org/10.1109/TIT.2013.2292061
A. M. Steane, Multiple particle interference and quantum error correction, Proceedings of the Royal Society A 452, 1996. https://arxiv.org/abs/quant-ph/9601029
F. J. MacWilliams and N. J. A. Sloane, The Theory of Error-Correcting Codes, North-Holland, 1977, Ch. 18 §2 (product codes).
S. Evra, T. Kaufman and G. Zémor, Decodable quantum LDPC codes beyond the √n distance barrier using high-dimensional expanders, FOCS 2020. https://arxiv.org/abs/2004.07935
M. B. Hastings, J. Haah and R. O'Donnell, Fiber bundle codes: breaking the N^{1/2} polylog(N) barrier for quantum LDPC codes, STOC 2021. https://arxiv.org/abs/2009.03921
P. Panteleev and G. Kalachev, Asymptotically good quantum and locally testable classical LDPC codes, STOC 2022. https://arxiv.org/abs/2111.03654
N. P. Breuckmann and J. N. Eberhardt, Quantum low-density parity-check codes, PRX Quantum 2, 2021. https://arxiv.org/abs/2103.06309
A quantum computer cannot perform gate operations perfectly, so a small constant error per operation is unavoidable. A priori this could mean that a noisy quantum computer can apply only a bounded number of gates before the computation is destroyed by noise, which would rule out long quantum computations in practice. The threshold theorem (or quantum fault-tolerance theorem) says that this does not happen: if the error rate of the physical components is below a constant threshold, quantum error correction can suppress the logical error rate to arbitrarily low levels at a modest cost in size. It is the quantum analogue of von Neumann's threshold theorem for classical computation with unreliable components (von Neumann 1956).
Timeline.
1956: von Neumann shows that reliable classical computation is possible with components that fail with a small constant probability.
1996: Shor gives the first fault-tolerant quantum computation scheme, proving a weaker version of the threshold theorem (Shor 1996).
2000: Nielsen and Chuang give the general framework stated below in their textbook.
Setting
A register of qubits is labelled by a finite set Q, and its states are density matrices indexed by bit strings x:Q→{0,1}. A location applies one elementary operation to an ordered tuple of distinct qubits. The elementary operations are the gates H, T=diag(1,eiπ/4) and CNOT, the preparation of a qubit in ∣0⟩, and a single-qubit wait. A layer is a set of locations whose supports partition the register, so idle qubits carry explicit waits. A circuitC is a sequence of layers started in ∣0⋯0⟩, and its size∣C∣ is its total number of locations. Measuring every qubit at the end gives the outcome distribution Pideal(C).
The hardware follows an independent stochastic noise model with fault rate at most p: each location, independently, is faulty with some probability q≤p, and a faulty location applies an arbitrary, adversarially chosen quantum channel to its own qubits instead of its ideal operation. Running a physical circuit C′ on such hardware gives the outcome distribution Pnoisy(C′). A physical circuit simulating n logical qubits acts on n blocks of b qubits; at the end each block's measured bits are decoded to one logical bit by a fixed map dec:{0,1}b→{0,1}.
Formalization targets
Goal: threshold theorem
The source states the theorem as follows: a quantum circuit on n qubits containing p(n) gates may be simulated with probability of error at most ε using O(logc(p(n)/ε)p(n)) gates, for some constant c, on hardware whose components fail with probability at most p, provided p is below some constant threshold pth, and given reasonable assumptions about the noise in the underlying hardware. Formally: there are pth>0 and c∈N such that for each 0≤p<pth there is A such that for all n, D and 0<ε<1 there are b and dec such that every depth-D circuit C on n qubits has a simulation C′ with
for every noise model with fault rate at most p. The goal leaves the threshold, the exponent and the constants unspecified; it asserts only the shape of the result.
Milestones
Errors accumulate at most linearly: without encoding, dTV≤p∣C∣.
Better gates: one level of encoding gives dTV≤cp2∣C∣ with ∣C′∣≤A∣C∣.
Recursion: ek+1≤cek2 and e0≤p imply ek≤(cp)2k/c.
Concatenation: for every k, dTV≤c(cp)2k∣C∣ with ∣C′∣≤Adk∣C∣.
Overhead: choosing k to make the total error at most ε costs dk=O((log(g/ε)+1)⌈log2d⌉).
Significance
The theorem shows that noise is not a fundamental obstacle to scalable quantum computation: any efficient ideal quantum algorithm remains efficient on noisy hardware once the physical error rate is below a constant. Current estimates put the threshold for the surface code on the order of 1% (Fowler, Stephens, Groszkowski 2009), and the theorem underlies the resource estimates that guide current hardware development (Campbell, Terhal, Vuillot 2017).
The theorem has been proved on paper in several forms. A machine-checked proof requires an explicit model of noisy circuits, the construction of fault-tolerant gadgets for a universal gate set, and the probabilistic bookkeeping that is usually left informal. This mission provides the model and an attack path that follows the standard proof strategy.
Difficulty
Encoding a gate in an error-correcting code makes it larger, and therefore exposes it to more faults. The whole difficulty is to show that errors are corrected faster than they are created: every encoded gadget, including error correction itself and the non-Clifford T gate, must be designed so that a single fault cannot cause a logical failure, and this must hold uniformly at every level of concatenation. Simply repeating each operation and taking a majority vote does not work for quantum states, which cannot be copied, and measuring a qubit directly destroys the encoded information.
Formalization scope
All statements use one definition file. Qubits of the physical register are labelled by Fin n × Fin b; states are complex matrices indexed by Q → Fin 2; channels are lists of Kraus operators; noise is the independent stochastic model above, with per-location fault probabilities in [0,p] and arbitrary fault channels. No mid-circuit measurement is available, but qubits can be re-prepared in ∣0⟩ at any time. Sizes count every location, idle steps included. The block size and the decoder may depend on n, the depth, ε and p, but never on the circuit being simulated; this rules out a decoder that simply writes down the answer, and the size bound rules out classical brute-force simulation inside the physical circuit.
A complete development needs: trace-distance and contractivity facts for channels, a quantum error-correcting code with fault-tolerant gadgets for H, T, CNOT, preparation and error correction, a fault-counting argument for one level of encoding, and its iteration under concatenation. The channel and trace-distance infrastructure is reusable beyond this mission.
Selected references
J. von Neumann, Probabilistic Logics and the Synthesis of Reliable Organisms From Unreliable Components, Automata Studies, Princeton University Press, 1956. https://doi.org/10.1515/9781400882618-003
D. Aharonov and M. Ben-Or, Fault-Tolerant Quantum Computation with Constant Error Rate, SIAM J. Comput. 38(4), 2008. https://arxiv.org/abs/quant-ph/9906129
An Introduction to Quantum Error Correction and Fault-Tolerant Quantum Computation 3: Every error syndrome of a stabilizer is realized by a Pauli errorTextbook
The linked theorem statements and shared definitions specify the register types, oracle access, normalization, and resource conventions. Their source locators and independent readbacks accompany each target.
Chapter goal
Let Pn be the n-qubit Pauli group and let g1,…,ga∈Pn generate a stabilizer S=⟨g1,…,ga⟩, that is, an Abelian subgroup of Pn with −I∈/S, and suppose the generators are independent, i.e. ∣S∣=2a. The error syndrome of a Pauli operator E is the vector in F2a whose i-th bit is 0 if gi commutes with E and 1 if it anticommutes.
Then for every v∈F2a there is E∈Pn with syndrome v:
giE=Egi if vi=0,giE=−Egi if vi=1(i=1,…,a).
This lemma is the step in the proof of the dimension count of stabilizer codes (Theorem 5) that shows all 2a syndrome subspaces are nonempty.
Formalization Note The syndrome is relative to the generator list, as in the source's proof; the independence of the generators (used in the proof as linear independence of their binary vectors) is the hypothesis ∣S∣=2a. The anticommutation clause is stated explicitly.
Significance
These are known mathematical results. Their Lean statements have been checked and reviewed against the cited source; formal proofs remain open for contributors.
Supporting targets
Theorem 5: Stabilizer codes: an Abelian S of order 2^a without -1 gives an [[n, n-a, d]] code.
Lemma 1: Every error syndrome of a stabilizer is realized by a Pauli error.
Formalization scope
Prove the existing statements under their stated hypotheses and definitions. Any correction to a printed source claim remains explicit in its target description. All listed target proofs are currently sorry; no proof is claimed. The mission goal is the designated chapter capstone; the remaining targets are separate milestones. Parts a, b, c and d are merged into their original chapter.
Selected references
Daniel Gottesman, An Introduction to Quantum Error Correction and Fault-Tolerant Quantum Computation, 2009, v1. https://arxiv.org/pdf/0904.2557v1.
The linked theorem statements and shared definitions specify the register types, oracle access, normalization, and resource conventions. Their source locators and independent readbacks accompany each target.
Chapter goal
Let a stabilizer on n=m+k qubits (m=n−k generators) be given in the standard form (4.3) of §4.1,
(I0A10A20BDC1IC2E),
with r rows in the first block, and assume its rows commute: HxHzT+HzHxT=0. For a binary row (a∣b) write P(a∣b)=⨂qσzbqσxaq (the real form, sign +1). Let Mi=P(row i) be the generators and let Xˉ1,…,Xˉk be the logical σx operators in the standard form of p.40: Xˉi=P(0u2ei∣v100) with u2 the i-th row of ET and v1 the i-th row of ETC1T+C2T.
Let Uenc be the encoding network of §4.2 (with the author's errata): first, for each i, the controlled-NOTs that apply Xˉi without its final σx, controlled on qubit n−k+i; then, for i=1,…,r in turn, the Hadamard R on qubit i, a σz on qubit i if Bii=1, and Mi without its qubit-i factor, controlled on qubit i (controlled-σzbσxa gates). Then for every c=c1…ck∈{0,1}k,
and in particular the vector on the right-hand side is nonzero.
This is the correctness of Gottesman's general encoding circuit for stabilizer codes: the network prepares exactly the encoded basis states, with no leftover global phase.
Formalization Note The errata are built in: the Hadamard on qubit i comes just before that qubit's control operations, controlled-Y gates are controlled-σzσx gates in the real form, and every generator has sign +1. The page writes encoded states unnormalized; the unitary network yields the normalized vector. Since the real form σzσx=iσy, a generator with an odd number of (1∣1) positions is i times a Hermitian Pauli operator; the identity is the one the page's network computes in this convention.
Significance
These are known mathematical results. Their Lean statements have been checked and reviewed against the cited source; formal proofs remain open for contributors.
Supporting targets
§4.1: Every stabilizer code can be put into the standard form (4.3).
§4.2: The standard-form encoding network maps |c⟩ to the encoded basis state (4.8).
Formalization scope
Prove the existing statements under their stated hypotheses and definitions. Any correction to a printed source claim remains explicit in its target description. All listed target proofs are currently sorry; no proof is claimed. The mission goal is the designated chapter capstone; the remaining targets are separate milestones. Parts a, b, c and d are merged into their original chapter.
Selected references
Daniel Gottesman, Stabilizer Codes and Quantum Error Correction, 1997 thesis, downloaded arXiv v1 PDF; PDF title page now prints 2024. https://arxiv.org/pdf/quant-ph/9705052v1.
An Introduction to Quantum Error Correction and Fault-Tolerant Quantum Computation 2: Quantum Gilbert–Varshamov, quantum Hamming, and asymptotic rate boundsTextbook
The linked theorem statements and shared definitions specify the register types, oracle access, normalization, and resource conventions. Their source locators and independent readbacks accompany each target.
Chapter goal
An [[n,k,d]] code is a subspace C of (C2)⊗n of dimension 2k such that every operator E acting on at most d−1 qubits satisfies ⟨ψ∣E∣ψ⟩=c′(E) for all unit vectors ∣ψ⟩∈C, with c′(E) independent of ∣ψ⟩ (eq. (34)); that is, C has distance at least d. Put t=⌊(d−1)/2⌋. The code is nondegenerate if, for every unit vector ∣ψ⟩∈C, the Gram matrix (⟨ψ∣Pa†Pb∣ψ⟩)a,b over the phase-free Pauli operators Pa of weight at most t is nonsingular. Let H(x)=−xlog2x−(1−x)log2(1−x).
(Quantum Gilbert–Varshamov bound.) If d≥1 and
(j=0∑d−13j(jn))2k≤2n,
then an [[n,k,d]] code exists.
2. (Quantum Hamming bound.) Every nondegenerate [[n,k,d]] code satisfies
(j=0∑t3j(jn))2k≤2n.
(Asymptotic rates.) Let 0<p<1/2 and ε>0. There is N such that for every n≥N:
every nondegenerate [[n,k,d]] code with d≥2pn has k/n≤1−plog23−H(p)+ε;
if 1−2plog23−H(2p)>0, there is a nondegenerate [[n,k,d]] code with d≥2pn and k/n≥1−2plog23−H(2p)−ε.
The first two bounds are counting arguments. The third gives the rate window, eq. (37), between which the best nondegenerate codes lie.
Formalization Note The source's 'distance d' is read as distance at least d, so existence is meaningful also for k=0. The hypothesis d≥1 excludes d=0, where (36) is an empty sum and the claim would demand a 2k-dimensional code for every k. The asymptotic clause is read as an ε–N statement. The lower rate bound is asserted only when it is positive.
Significance
These are known mathematical results. Their Lean statements have been checked and reviewed against the cited source; formal proofs remain open for contributors.
Supporting targets
Theorem 1: No-Cloning: no quantum operation copies every state.
Theorem 2: Correctable errors are closed under linear combinations; weight-t Pauli errors give all t-qubit errors.
Theorem 3: Knill–Laflamme condition for quantum error correction.
Theorem 4: Quantum Gilbert–Varshamov, quantum Hamming, and asymptotic rate bounds.
Formalization scope
Prove the existing statements under their stated hypotheses and definitions. Any correction to a printed source claim remains explicit in its target description. All listed target proofs are currently sorry; no proof is claimed. The mission goal is the designated chapter capstone; the remaining targets are separate milestones. Parts a, b, c and d are merged into their original chapter.
Selected references
Daniel Gottesman, An Introduction to Quantum Error Correction and Fault-Tolerant Quantum Computation, 2009, v1. https://arxiv.org/pdf/0904.2557v1.
An Introduction to Quantum Error Correction and Fault-Tolerant Quantum Computation 5: Threshold theorem: below p_T, concatenated circuits simulate C to distance ε with polylog overheadTextbook
The linked theorem statements and shared definitions specify the register types, oracle access, normalization, and resource conventions. Their source locators and independent readbacks accompany each target.
Chapter goal
There exist an [[n,1,2t+1]] code with fault-tolerant gadgets of a common depth (Definitions 2–5) and a threshold pT>0 with the following property. For every p with 0≤p<pT there are constants K>0 and c∈N such that for every ideal circuit C (Definition 6: preparation, H, Rπ/8, CNOT, wait and measurement locations, no input) and every ε>0 there is a level L for which the L-fold concatenated fault-tolerant simulation C′=C(L) satisfies
#qubits(C′)≤K(log2(2+∣C∣/ε))c#qubits(C) and #steps(C′)≤K(log2(2+∣C∣/ε))c#steps(C), where ∣C∣ is the number of locations of C;
for every local stochastic error model on C′ (Definition 12) with error bounds pi≤p, pi<1,
dTV(decoded output of C′,output of C)≤ε.
The output of C′ is decoded classically level by level. The threshold theorem shows that arbitrarily long quantum computations can be performed reliably with polylogarithmic overhead once the physical error rate is below a constant.
Formalization Note The fault-tolerant circuit is pinned to the concatenated circuit of the proof (p.42); an unconstrained circuit with free classical computation could sample the output of C classically. polylog(x) is encoded as K(log2(2+x))c, which is positive also for x≤1.
Significance
These are known mathematical results. Their Lean statements have been checked and reviewed against the cited source; formal proofs remain open for contributors.
Supporting targets
§5.1, Theorem 6: Good implies correct: an extended rectangle with at most t faults is correct.
§5.2, Theorem 7: A fault-tolerant circuit with only good ExRecs has the ideal output distribution.
§5.2, Lemma 2: *Correctness for the ideal decoder implies correctness for a -decoder.
§5.2, Lemma 3: *A good truncated ExRec is correct for ideal decoders and -decoders.
Theorem 8: A fault-tolerant circuit simulates the ideal circuit with errors at the bad ExRecs.
Theorem 9: Level reduction: a local stochastic model on C′ induces one on C with bounds Σ_{|R|=t+1} Π p_j.
Theorem 10: Threshold theorem: below p_T, concatenated circuits simulate C to distance ε with polylog overhead.
Formalization scope
Prove the existing statements under their stated hypotheses and definitions. Any correction to a printed source claim remains explicit in its target description. All listed target proofs are currently sorry; no proof is claimed. The mission goal is the designated chapter capstone; the remaining targets are separate milestones. Parts a, b, c and d are merged into their original chapter.
Selected references
Daniel Gottesman, An Introduction to Quantum Error Correction and Fault-Tolerant Quantum Computation, 2009, v1. https://arxiv.org/pdf/0904.2557v1.
Knill-Laflamme-Zurek: Resilient Quantum Computation and the Error ThresholdResearch Paper
Motivation
A quantum computer manipulates superpositions of many degrees of freedom, and every gate it applies is imperfect. Before 1996 it was widely argued that this fragility is fatal: the accuracy demanded of each elementary operation appeared to grow with the length of the computation, so that arbitrarily long computations would require arbitrarily perfect hardware. The discovery of quantum error-correcting codes, of fault tolerant syndrome extraction, and of transversally encoded operations changed that picture, but the first fault tolerant schemes still required the error per operation to shrink as the computation grew.
Knill, Laflamme and Zurek, Resilient Quantum Computation: Error Models and Thresholds (arXiv:quant-ph/9702058), together with the independent work of Kitaev and of Aharonov and Ben-Or, removed that requirement: they exhibited a fixed threshold value such that any physical error rate below it permits arbitrarily accurate encoded computation, at an overhead that is only polylogarithmic in the length of the computation. Their paper is also the one that pushes past independent stochastic noise: its thresholds are proved for quasi-independent error models, which accommodate coherent over-rotation and weak residual couplings between neighbouring qubits.
This mission formalizes the quantitative engine of that paper: the concatenation recursion, the error-model bounds it is applied to, the threshold it produces, and the resulting overhead.
Setting
Fix a physical implementation in which each gate, state preparation and idle memory step carries an error location. A noisy network with error locations indexed by a finite set locs is described through an error expansion; each summand fails at a set of locations, and the model constrains how probable simultaneous failures are.
Write μ for the underlying probability measure and Fi for the event that location i has failed. Two models from Section I.B of the paper are used here.
Quasi-independent stochastic model with error probability p: for every set S⊆locs of error locations,
μ(i∈S⋂Fi)≤p∣S∣.
Quasi-independent monotonic model with constant C and parameter p: the same quantity is bounded by Cp∣S∣.
The fault tolerant construction of Section I turns physical qubits into encoded qubits: each encoded gate is a transversal operation preceded by fault tolerant recovery networks built from the 7-qubit Steane code. The analysis of Section II declares an encoded gate failed according to an explicit combinatorial rule, and shows that a failure requires two failures among a set of f minimal pairs of physical error locations. Consequently one level of encoding maps a failure parameter p to fp2.
Iterating this reduction is concatenation. Define the level-h failure parameter by
E0=p,Eh+1=fEh2,
written Eh=levelErrorfph in the Lean development. Let K bound the number of qubits and time steps at the level below that are consumed by one encoded gate, so that one computational gate at level h costs Kh physical resources.
Formalization targets
Goal — threshold theorem with polylogarithmic overhead
For f≥1, K≥2, 0≤p<1/f, and every gate count n and target failure probability q with 0<q<n, there exists a level h with
The first clause is resilience: a computation of n encoded gates can be made to fail with probability below any prescribed q. The second is the cost: the overhead per computational gate is polylogarithmic in n/q, with exponent log2K. The threshold itself is the hypothesis p<1/f; no numerical value is hard-coded, so the statement survives any improvement of the paper's count f≤337195 and of the resulting bounds 3.0×10−6 and 1.3×10−6.
Supporting targets
The milestone list covers the closed form Eh=f2h−1p2h of the concatenation recursion and its threshold form Eh=(fp)2h/f; convergence Eh→0 below threshold; the failure bounds ∣locs∣p and C∣locs∣p for a network under the two error models; the criterion 2h>log(n/q)/log(1/(fp)) under which n(fp)2h<q; and the overhead estimate K⌈log2L⌉≤KLlog2K.
Significance
The threshold theorem is the reason large-scale quantum computation is regarded as a physically meaningful goal rather than an idealization: it converts an engineering requirement that scales with the problem size into a fixed, size-independent accuracy target, and it fixes the currency — threshold value and overhead exponent — in which every later architecture is compared. The quasi-independent models matter separately: they show the conclusion does not depend on noise being stochastic, which is what rules out the objection that coherent over-rotations invalidate the stochastic analysis.
The paper's own argument is a physics-style derivation: a circuit-level construction, a combinatorial count of failure-inducing pairs of error locations, and a recursion. This mission formalizes the recursion, the probabilistic bounds and the resulting threshold and overhead statements. It does not formalize the circuit-level content — the 7-qubit code, the cat-state syndrome extraction networks, transversality, or the count f≤337195 itself; these enter the formal statements as the parameters f and K. No machine-checked proof of the full threshold theorem, in the sense of a verified fault tolerant circuit construction, is known to the author of this proposal; formalizing the quantitative layer is a prerequisite for one.
Difficulty
The obvious route to "errors vanish under concatenation" is to iterate the bound p↦fp2 and observe the doubly exponential decay. That step is the easy half, and the milestone list makes it explicit. What the naive argument silently assumes is exactly what Section II must establish: that the level-(h+1) failure events again obey a quasi-independent bound, with k simultaneous encoded failures bounded by (fp2)k rather than merely each single failure bounded by fp2. This is why the paper's failure declaration is defined backwards in time and demands disjoint pairs of contributing locations. A formalization that bounds only single-gate failure probabilities cannot close the induction.
The second difficulty is bookkeeping at the edges: the recursion is stated for a failure parameter that is a probability in one model and an operator strength in the other, and the overhead bound involves a real exponent log2K and a ceiling, whose interaction with the degenerate cases p=0 and n≤q has to be handled rather than assumed away.
Formalization scope
All parameters are real numbers: f,p,q,K,C∈R, and the gate count n is a natural number cast to R. levelError is defined by recursion on the level and is total, so it is meaningful for every real f,p; the threshold hypothesis appears explicitly as p<1/f where it is needed.
The two error models are predicates on a measure μ on a measurable space, a Finset of error locations, and a family of failure events, with values in ENNReal; they quantify over all subsets S of the location set, matching the paper's "at a given k many error locations". The network failure bounds are stated for μ(⋃iFi), the probability that some location fails.
The goal is not vacuous: the hypotheses f≥1, K≥2, 0≤p<1/f, 0<q<n are simultaneously satisfiable (for instance f=1, K=2, p=10−6, n=106, q=1/2), and the conclusion asserts a strict inequality together with a quantitative overhead bound, so it cannot be discharged by a degenerate reading. Degenerate inputs are inside the statement rather than excluded: p=0, and the case log(n/q)/log(1/(fp))≤1, are covered by the max and must be handled.
A complete development needs only Mathlib's real analysis (Real.log, Real.logb, Real.rpow, Nat.ceil) and the measure-theoretic union bound; nothing quantum is required by the formal statements. Contributions strengthening the milestone list towards the circuit level — a formal model of error locations in a network, of the induced next-level error model, or of stabilizer-code recovery — are welcome as further targets.
Selected references
E. Knill, R. Laflamme, W. H. Zurek, Resilient Quantum Computation: Error Models and Thresholds, arXiv:quant-ph/9702058 (1997), https://arxiv.org/abs/quant-ph/9702058
P. W. Shor, Fault-tolerant quantum computation, Proceedings of the 37th Symposium on Foundations of Computer Science (1996), https://arxiv.org/abs/quant-ph/9605011
Aharonov-Ben-Or Threshold: Recursive Sparseness Below the ThresholdResearch Paper
Motivation
Quantum computations are performed on physical devices whose elementary operations are never exact: every gate, every idle qubit, every time step is subject to decoherence, damping and systematic inaccuracy. Without protection these errors accumulate and destroy the computation. In 1997 Dorit Aharonov and Michael Ben-Or proved that this can be overcome: as long as the error rate — the probability, per location per time step, that a fault occurs — is below a fixed positive threshold, an arbitrary quantum circuit can be simulated reliably with only polylogarithmic overhead (arXiv:quant-ph/9906129). This threshold theorem is the reason large-scale quantum computing is regarded as physically possible in principle, and the number it produces is the target every hardware programme is measured against.
The engine of the proof is not quantum mechanical but combinatorial. A circuit is encoded, then the encoded circuit is encoded again, r times over. The locations of the resulting circuit are organised into a tree of nested rectangles, and the computation survives precisely when the set of faulty locations is sparse in a recursive sense. The mission formalizes that engine: the recursive sparseness calculus of §7.4–7.6 and §8.2 of the paper, which converts a constant error rate below the threshold into a doubly exponentially small failure probability.
Setting
Fix two natural numbers: A, the number of locations in a rectangle, and k, the number of faulty sub-rectangles a rectangle tolerates (in the paper k=⌊d/l⌋, where d is the number of errors the code corrects and l is the spread of a fault). A 0-rectangle is a single location of the circuit, and an (r+1)-rectangle consists of A many r-rectangles. A fault pattern of an r-rectangle records, for each of its Ar locations, whether a fault occurred there.
Following Definition 18 of the paper, a fault pattern is (r,k)-sparse by recursion on r: at level 0 it is sparse when the location carries no fault; at level r+1 it is sparse when at most k of the A constituent r-rectangles carry a pattern that is not(r,k)-sparse. Under independent probabilistic noise of rate η each location is faulty with probability η, independently; write P(r) for the probability that the pattern of an r-rectangle is (r,k)-sparse, and 1−P(r) for the probability that it is not.
Two thresholds appear. The threshold condition for probabilistic noise (Definition 19) is
(k+1A)ηk+1<η,
and the threshold condition for general noise (Definition 21) is
e(k+1A)(2η)k+1<2η.
The corresponding thresholds are ηc=(k+1A)−1/k and ηc′=21(e(k+1A))−1/k: every positive η below them satisfies the respective condition.
Target
The goal is the quantitative core of Theorem 10. Below the threshold there are constants C,c>0 such that for every circuit size v≥1 and every accuracy 0<ε<1 some recursion depth r satisfies both
v⋅(1−P(r))<εandAr≤C(1+logεv)c.
The first inequality says that, over all v rectangles of the simulated circuit, the probability that any of them carries a non-sparse fault pattern is below ε; the second says that the overhead per simulated location, Ar, is polylogarithmic in v/ε — the cost claimed in Theorem 10.
The milestones build up to it: the two threshold conditions hold below the respective thresholds, the exponent gap δ of equation 7.5 exists, the base case P(0)=1−η, the union-bound recursion 1−P(r+1)≤(k+1A)(1−P(r))k+1, Lemma 10 itself (P(r)≥1−η(1+δ)r), and the analogous recursion 8.8–8.10 governing the bad part in the general-noise analysis.
Significance
Lemma 10 is where a constant error rate becomes a vanishing one. Each level of concatenation only has to improve reliability slightly, because the improvement compounds doubly exponentially in the number of levels; this is exactly why constant-rate noise can be tolerated while Shor's earlier scheme needed a polylogarithmically small rate. The same recursion, with 2η in place of η and an extra factor of e, controls the trace norm of the bad part of the fault-path expansion in the general-noise model (§8.2), which is how the result is extended from probabilistic errors to decoherence, damping and systematic inaccuracy.
Formalizing this part of the paper yields a reusable, model-independent statement: nothing in the milestones mentions density matrices, so the sparseness calculus can later be plugged into a formal model of noisy quantum circuits, or reused for classical concatenated fault tolerance. What this mission does not do is formalize the circuit-level statement of Theorem 10 — that requires a full Lean model of quantum circuits with mixed states, fault-tolerant procedures, and the code constructions of §3–§6, and is deliberately out of scope here.
Difficulty
The obvious approach — bound the failure probability by a union bound over all fault sets of size k+1 and iterate — is exactly right, but the iteration is where the work is. The recursion qr+1≤(k+1A)qrk+1 only produces the doubly exponential decay η(1+δ)r once the threshold condition is converted into the strict exponent gapδ of equation 7.5, and the induction has to keep qr≤η alive to reuse that gap at every level. In the general-noise recursion there is a second trap: the factor (1+br)A−k−1 exceeds 1, so the recursion is not contracting termwise, and one needs 2ηA≤1 to bound it by e.
On the probabilistic side, the statements are about a genuine product distribution on an exponentially large sample space, not a recursively defined real number: the union-bound step must be carried out over the actual set of fault patterns, where independence across the A sub-rectangles is what makes the product bound valid.
Formalization scope
Fault patterns are a type defined by recursion on the level: FaultPattern(A,0) is the booleans and FaultPattern(A,r+1) is the functions from the A sub-rectangles to FaultPattern(A,r); every level is a finite type with decidable equality. Sparseness is a decidable predicate following Definition 18 verbatim. The noise distribution is given by the weight of a pattern, the product over all locations of η (faulty) or 1−η (clean), and the sparseness probability is the sum of these weights over the sparse patterns — an honest finite product measure, so no hypothesis 0≤η≤1 is built into the definitions and each statement carries the range hypotheses it needs.
Two conventions are worth flagging. First, the thresholds are formalized as (k+1A)−1/k and 21(e(k+1A))−1/k; the paper prints the exponent as −k in equations 7.4 and 8.6, which is inconsistent with its own threshold conditions 7.3 and 8.5, and −1/k is the exponent for which the paper's claim "any η<ηc satisfies the threshold condition" is true. Second, Lemma 10 is stated with ≥ rather than the paper's strict >, because at r=0 the two sides are equal.
Nothing here is vacuous: all hypotheses are satisfiable — for instance A=7, k=1, η=10−3 satisfies every hypothesis of the goal — and the goal quantifies over all circuit sizes and all accuracies, so it cannot be discharged by a degenerate choice. A complete development needs only real analysis, finite sums and binomial counting from Mathlib. Contributions that generalise the branching factor to a per-rectangle bound Ai≤A, or that connect the calculus to a formal model of noisy circuits, are welcome.
Selected references
Dorit Aharonov and Michael Ben-Or, Fault-Tolerant Quantum Computation With Constant Error Rate, arXiv:quant-ph/9906129 (1999); preliminary version in Proc. 29th ACM STOC (1997). https://arxiv.org/abs/quant-ph/9906129
Counterexamples to the Zeng–Pryadko Homological-Distance ConjectureResearch Paper
Background and main question
The tensor product of chain complexes is a basic construction in homological algebra and in the theory of quantum CSS codes. If A and B are finite based chain complexes over a finite field, their tensor product is graded by total degree,
(A⊗B)j=i=0⨁jAi⊗Bj−i.
Each complex carries a basis-dependent homological distance: dj(A) is the least Hamming weight of a degree-j cycle that is not a boundary, with dj(A)=∞ when the degree-j homology vanishes. A natural candidate for the distance of the tensor product is therefore
mj(A,B)=0≤i≤jmindi(A)dj−i(B).
Every nonzero pair of homology classes in complementary degrees gives a pure-tensor class of the corresponding product weight, so one always has dj(A⊗B)≤mj(A,B). The substantive question is whether this upper bound is always sharp.
The conjecture is appealing because it would make tensor-product distance completely compositional: the degreewise distances of the two factors would determine the distance of their product. The obstruction is that a homology class in A⊗B need not have a minimum-weight representative supported in a single bidegree. A representative spread across several summands of the total complex can be lighter than every pure-tensor representative. The purpose of this formalization is to turn that observation into a concrete, machine-checked counterexample to Conjecture 18 while preserving the valid one-complex theorem as a sharply delimited special case.
The one-complex result is separately available as Eq. (13) — Exact distance with a one-complex. The construction below uses exactly the same notion of distance, but both tensor factors are genuine three-term complexes.
Begin with binary CSS check maps
HX:F2n⟶F2rX,HZ:F2n⟶F2rZ,
assumed surjective and satisfying HXHZT=HZHXT=0. Suppose there are logical vectors x,z∈F2n such that
HZx=0,HXz=0,x⋅z=1.
The check maps determine two dual three-term complexes
Their degree-two tensor space has three bidegree summands, corresponding to (2,0), (1,1), and (0,2). Under the natural matrix identifications, consider the element whose three blocks are
(IrZ,In,IrX).
The CSS orthogonality relations make this element a cycle. Its pairing with the chosen logical vectors certifies that it is not a boundary. Its Hamming weight is exactly rZ+n+rX, whereas the componentwise candidate in degree two reduces to
m2(A,B)=d1(A)d1(B).
Consequently, any CSS datum satisfying
rZ+n+rX<d1(A)d1(B)
produces the strict inequality d2(A⊗B)<m2(A,B). For orientation, a binary quantum Golay CSS presentation with parameters [[23,1,7]] has rX=rZ=11, giving the numerical comparison 45<49. The formal proof must supply an explicit CSS instance and verify its algebraic and distance properties, rather than relying on the parameter notation alone.
Formalization objectives
The first milestone proves the general certificate: for every CSS datum satisfying the hypotheses above, the element (IrZ,In,IrX) is a nontrivial degree-two cycle of weight rZ+n+rX, and the componentwise minimum is d1(A)d1(B).
The second milestone constructs and verifies one explicit CSS datum for which rZ+n+rX<d1(A)d1(B). This is the step that turns the general mechanism into an actual counterexample.
The capstone packages the construction as the direct existential statement
∃A,Bd2(A⊗B)<0≤i≤2mindi(A)d2−i(B).
Thus the final theorem is not conditional on the existence of suitable code data: it exhibits finite based binary chain complexes for which the equality proposed in Conjecture 18 fails.
Relation to prior work
The counterexample concerns only the unrestricted passage from a one-complex factor to two arbitrary bounded complexes. It does not conflict with Zeng and Pryadko's Eq. (13), whose one-complex hypothesis rules out the three-bidegree interaction used here.
The broader literature also indicates why additional structure matters. Bravyi and Hastings introduced homological-product codes and analyzed logical representatives in product constructions; Audoux and Couvreur developed tensor products of CSS codes through chain-complex methods. More recently, Akhmechet et al. discussed the Zeng–Pryadko conjecture in the structured setting of complexes derived from Khovanov homology, while Berthusen et al. restated it as Conjecture 5.1 in their study of automorphism gadgets. Golowich and Guruswami obtained strong distance guarantees for iterated homological products under expansion and local-testability hypotheses. These results are compatible with the proposed counterexample: they concern special families or impose hypotheses that are absent from Conjecture 18.
Besides settling the unrestricted statement, the formalization isolates a reusable obstruction. It shows precisely how a low-weight class assembled across several bidegrees can evade a formula based only on the degreewise distances of the factors. This distinction should help guide corrected formulations in which an exact product formula, or a useful lower bound, is recovered from additional geometric, expansion, or local-testability assumptions.
The main formal issues are mathematically substantive rather than presentational: the proof must respect the endpoint conventions for the boundary maps, distinguish a cycle from a non-boundary, compare finite weights with ∞-valued distances, and verify a concrete strict-gap instance. Making each of these points explicit is especially important here, because an indexing shift or a merely conditional existence statement would no longer constitute a refutation of the conjecture as stated.
Fix code parameters ρ,dr,κ∈(0,1) and decoder parameters 0<2δ<ε<1. For all sufficiently large degrees Δ (with the threshold depending only on these fixed parameters), let G be a finite group with symmetric generating sets A,B of size Δ, whose left and right Cayley graphs are Ramanujan in the paper's sense: their second largest adjacency eigenvalue is at most 2Δ−1. Let the binary local codes CA,CB have exact rates ρ,1−ρ, respectively. Each of CA,CB,CA⊥,CB⊥ has distance at least drΔ, and both dual tensor codes CA⊞CB and CA⊥⊞CB⊥ are κ-product-expanding.
Construct the quadripartite quantum Tanner code on Q=G×A×B, with n=∣G∣Δ2 qubits, X checks from CA⊗CB at V00∪V11 and Z checks from CA⊥⊗CB⊥ at V01∪V10. Let d be its actual CSS distance. Let e∈F2Q be an X error and D a binary error on the vertex-labelled Z checks. Write ∣e∣R=mins∈CX⊥∣e+s∣ and let ∣D∣V count vertices with at least one nonzero syndrome-error bit. Define
then Algorithm 1, receiving only σ=HZe+D and parameter ε, terminates and every lawful output f satisfies
∣e+f∣R≤(1+κc12c2)Δ2∣D∣V.
Local minimum-weight choices are fixed consistently before the input; infeasible local syndromes use the zero fallback. Algorithm 2 starts with zero accumulators, uses the stated weight-decrease test and minimum column/row decomposition, and halts only at zero mismatch or when no permitted move exists. Algorithm 1 returns ∑v∈V01εv+C1+R0.
This is the quantitative adversarial single-shot guarantee for the sequential Tanner decoder. With D=0, the residual is a stabilizer, rather than necessarily the zero vector.
Formalization Note The printed theorem leaves decoder domains implicit; the range above is inherited from pp.14 and 22. The distance is an extended natural minimum; when both logical-error sets are empty it is infinite, and the threshold uses only Cδn. Termination is represented by existence of a terminal execution together with the bound for every lawful terminal execution. No stochastic residual support law is asserted.
Target
Theorem 4.17 (Main Theorem for the Sequential Decoder)
Fix code parameters ρ,dr,κ∈(0,1) and decoder parameters 0<2δ<ε<1. For all sufficiently large degrees Δ (with the threshold depending only on these fixed parameters), let G be a finite group with symmetric generating sets A,B of size Δ, whose left and right Cayley graphs are Ramanujan in the paper's sense: their second largest adjacency eigenvalue is at most 2Δ−1. Let the binary local codes CA,CB have exact rates ρ,1−ρ, respectively. Each of CA,CB,CA⊥,CB⊥ has distance at least drΔ, and both dual tensor codes CA⊞CB and CA⊥⊞CB⊥ are κ-product-expanding.
Construct the quadripartite quantum Tanner code on Q=G×A×B, with n=∣G∣Δ2 qubits, X checks from CA⊗CB at V00∪V11 and Z checks from CA⊥⊗CB⊥ at V01∪V10. Let d be its actual CSS distance. Let e∈F2Q be an X error and D a binary error on the vertex-labelled Z checks. Write ∣e∣R=mins∈CX⊥∣e+s∣ and let ∣D∣V count vertices with at least one nonzero syndrome-error bit. Define
then Algorithm 1, receiving only σ=HZe+D and parameter ε, terminates and every lawful output f satisfies
∣e+f∣R≤(1+κc12c2)Δ2∣D∣V.
Local minimum-weight choices are fixed consistently before the input; infeasible local syndromes use the zero fallback. Algorithm 2 starts with zero accumulators, uses the stated weight-decrease test and minimum column/row decomposition, and halts only at zero mismatch or when no permitted move exists. Algorithm 1 returns ∑v∈V01εv+C1+R0.
This is the quantitative adversarial single-shot guarantee for the sequential Tanner decoder. With D=0, the residual is a stabilizer, rather than necessarily the zero vector.
Formalization Note The printed theorem leaves decoder domains implicit; the range above is inherited from pp.14 and 22. The distance is an extended natural minimum; when both logical-error sets are empty it is infinite, and the threshold uses only Cδn. Termination is represented by existence of a terminal execution together with the bound for every lawful terminal execution. No stochastic residual support law is asserted.
Significance
These are known results from the cited paper. The current contribution consists of source-reviewed, compiler-checked theorem statements and mathematical definitions. Formal proofs remain open. Only the listed selected results are in scope; no whole-paper completeness is claimed.
Difficulty
A complete solution must establish every quantified conclusion under the exact stated hypotheses, including error, probability and resource conditions wherever present. The source assumptions and conventions are recorded in the attached statements and independent readbacks.
Formalization scope
Definitions preserve the existing reviewed Lean interfaces. Every target proof is currently sorry, so each target is Open. Printed-source corrections, where necessary, are labeled with the printed claim, the change and its reason.
Quantum Expander Codes establishes the selected mathematical guarantees below. The mission turns those original paper results into precise Lean proof targets.
Setting
Fix positive integer degrees ΔA,ΔB and positive real constants γA,δA,γB,δB, with δA,δB<1/6. There are a deterministic classical decoder, a constant C>0, and an integer n0, all chosen before the graph sizes and inputs, with the following properties.
Let G=(A⊔B,E) be any finite simple bipartite graph with 1≤nB=∣B∣≤nA=∣A∣, left degree ΔA and right degree ΔB. For every S⊆A with ∣S∣≤γAnA, require ∣Γ(S)∣≥(1−δA)ΔA∣S∣, where Γ(S) denotes its neighboring vertices. Require the corresponding right expansion for every S⊆B with ∣S∣≤γBnB.
Form the self hypergraph-product CSS code on the tagged coordinates Q=(A×A)⊔(B×B), of length n=nA2+nB2. Write H for the binary incidence matrix with rows B and columns A, and set HX=[IA⊗H∣HT⊗IB], HZ=[H⊗IA∣IB⊗HT]. Let RX and RZ be their respective binary row spaces.
On every syndrome input, the decoder terminates and realizes the Section 3 small-set-flip algorithm, treating the two components independently. Each step flips a nonempty subset of an opposite generator's support, strictly reduces syndrome weight, and maximizes the decrease divided by the number of flipped coordinates. The deterministic implementation fixes its choices among the finitely many tied candidates. A zero syndrome returns the accumulated correction; a nonzero syndrome with no improving flip returns failure. Whenever n≥n0, its total uniform-cost word-machine instruction count, together with the cost of loading its adjacency-list and syndrome input, is at most Cn.
For every binary error pair e=(eX,eZ) on Q, let w(e) count coordinates on which at least one component is nonzero. If
w(e)<w0:=3(1+ΔB)min(γAnA,γBnB),
then on the exact syndrome (HXeX,HZeZ) the decoder returns a correction (cX,cZ) satisfying
cX+eX∈RZ,cZ+eZ∈RX.
Correctness holds at every admissible finite size. This is an exact adversarial decoding guarantee for the associated quantum code, with linear classical runtime when degrees are fixed.
Formalization Note The positive-degree, nonempty-part convention used in the paper's proof is explicit. Equation (6)'s mixed coordinate names are read as the supports of the HX rows fixed by Equation (1) and the incidence formulas. These source clarifications are disclosed for independent moderation; the strict threshold and all constants in it are unchanged. Runtime and realization are conclusions about an executable classical machine; no progress or minimum-distance assertion is a hypothesis.
Target
Theorem 2
Fix positive integer degrees ΔA,ΔB and positive real constants γA,δA,γB,δB, with δA,δB<1/6. There are a deterministic classical decoder, a constant C>0, and an integer n0, all chosen before the graph sizes and inputs, with the following properties.
Let G=(A⊔B,E) be any finite simple bipartite graph with 1≤nB=∣B∣≤nA=∣A∣, left degree ΔA and right degree ΔB. For every S⊆A with ∣S∣≤γAnA, require ∣Γ(S)∣≥(1−δA)ΔA∣S∣, where Γ(S) denotes its neighboring vertices. Require the corresponding right expansion for every S⊆B with ∣S∣≤γBnB.
Form the self hypergraph-product CSS code on the tagged coordinates Q=(A×A)⊔(B×B), of length n=nA2+nB2. Write H for the binary incidence matrix with rows B and columns A, and set HX=[IA⊗H∣HT⊗IB], HZ=[H⊗IA∣IB⊗HT]. Let RX and RZ be their respective binary row spaces.
On every syndrome input, the decoder terminates and realizes the Section 3 small-set-flip algorithm, treating the two components independently. Each step flips a nonempty subset of an opposite generator's support, strictly reduces syndrome weight, and maximizes the decrease divided by the number of flipped coordinates. The deterministic implementation fixes its choices among the finitely many tied candidates. A zero syndrome returns the accumulated correction; a nonzero syndrome with no improving flip returns failure. Whenever n≥n0, its total uniform-cost word-machine instruction count, together with the cost of loading its adjacency-list and syndrome input, is at most Cn.
For every binary error pair e=(eX,eZ) on Q, let w(e) count coordinates on which at least one component is nonzero. If
w(e)<w0:=3(1+ΔB)min(γAnA,γBnB),
then on the exact syndrome (HXeX,HZeZ) the decoder returns a correction (cX,cZ) satisfying
cX+eX∈RZ,cZ+eZ∈RX.
Correctness holds at every admissible finite size. This is an exact adversarial decoding guarantee for the associated quantum code, with linear classical runtime when degrees are fixed.
Formalization Note The positive-degree, nonempty-part convention used in the paper's proof is explicit. Equation (6)'s mixed coordinate names are read as the supports of the HX rows fixed by Equation (1) and the incidence formulas. These source clarifications are disclosed for independent moderation; the strict threshold and all constants in it are unchanged. Runtime and realization are conclusions about an executable classical machine; no progress or minimum-distance assertion is a hypothesis.
Significance
These are known results from the cited paper. The current contribution consists of source-reviewed, compiler-checked theorem statements and mathematical definitions. Formal proofs remain open. Only the listed selected results are in scope; no whole-paper completeness is claimed.
Difficulty
A complete solution must establish every quantified conclusion under the exact stated hypotheses, including error, probability and resource conditions wherever present. The source assumptions and conventions are recorded in the attached statements and independent readbacks.
Formalization scope
Definitions preserve the existing reviewed Lean interfaces. Every target proof is currently sorry, so each target is Open. Printed-source corrections, where necessary, are labeled with the printed claim, the change and its reason.
Let H∈F2r×n have linearly independent rows, where n=r+k, and let C=kerH. Write d for the minimum Hamming weight of a nonzero word of C, with d=∞ when C={0}. Form the two parity-check matrices
HX=(H⊗In∣Ir⊗HT),HZ=(In⊗H∣HT⊗Ir).
The qubit coordinates are the disjoint union ([n]×[n])⊔([r]×[r]), explicitly reindexed as [N] for N=n2+r2. Set CX=kerHX and CZ=kerHZ. Then dimF2C=k, HXHZT=0, and CZ⊥⊆CX, so these matrices define a valid CSS code. Its parameters are
Here Q is the CSS coding subspace, ∣⋅∣ denotes Hamming weight, and an empty minimum is infinity. For every row index a∈[r] and column index b∈[n], the exact check weights are
Consequently, if every row of H has weight at most u and every column has weight at most v, every row of either constructed check matrix has weight at most u+v. Bounds u,v independent of blocklength therefore preserve the LDPC property; no regularity or self-orthogonality of the input code is required.
This construction transfers the classical code's minimum distance to a quantum CSS code while giving the exact logical dimension and preserving sparse checks.
Target
Theorem 1
Let H∈F2r×n have linearly independent rows, where n=r+k, and let C=kerH. Write d for the minimum Hamming weight of a nonzero word of C, with d=∞ when C={0}. Form the two parity-check matrices
HX=(H⊗In∣Ir⊗HT),HZ=(In⊗H∣HT⊗Ir).
The qubit coordinates are the disjoint union ([n]×[n])⊔([r]×[r]), explicitly reindexed as [N] for N=n2+r2. Set CX=kerHX and CZ=kerHZ. Then dimF2C=k, HXHZT=0, and CZ⊥⊆CX, so these matrices define a valid CSS code. Its parameters are
Here Q is the CSS coding subspace, ∣⋅∣ denotes Hamming weight, and an empty minimum is infinity. For every row index a∈[r] and column index b∈[n], the exact check weights are
Consequently, if every row of H has weight at most u and every column has weight at most v, every row of either constructed check matrix has weight at most u+v. Bounds u,v independent of blocklength therefore preserve the LDPC property; no regularity or self-orthogonality of the input code is required.
This construction transfers the classical code's minimum distance to a quantum CSS code while giving the exact logical dimension and preserving sparse checks.
Significance
These are known results from the cited paper. The current contribution consists of source-reviewed, compiler-checked theorem statements and mathematical definitions. Formal proofs remain open. Only the listed selected results are in scope; no whole-paper completeness is claimed.
Difficulty
A complete solution must establish every quantified conclusion under the exact stated hypotheses, including error, probability and resource conditions wherever present. The source assumptions and conventions are recorded in the attached statements and independent readbacks.
Formalization scope
Definitions preserve the existing reviewed Lean interfaces. Every target proof is currently sorry, so each target is Open. Printed-source corrections, where necessary, are labeled with the printed claim, the change and its reason.
Quantum Tanner codes (Leverrier, Zemor)Research Paper
Motivation
Quantum Tanner codes (Leverrier, Zemor) establishes the selected mathematical guarantees below. The mission turns those original paper results into precise Lean proof targets.
Setting
This is the main technical theorem behind quantum Tanner codes.
Setting. Let G be a finite group and A=A−1, B=B−1⊆G with ∣A∣=∣B∣=Δ, satisfying the Total No-Conjugacy condition ag=gb for all a∈A, b∈B, g∈G. The left-right Cayley complex has vertices V=V0∪V1, Vi=G×{i}, and squares Q, the 4-sets {(g,0),(ag,1),(gb,1),(agb,0)}. For a vertex v=(g,i) the squares {v,(ag,1−i),(gb,1−i),(agb,i)} incident to v are in bijection with A×B, so the restriction xv of x∈F2Q to the squares at v is an A×B array. Let GA, GB be the bipartite double covers of Cay(G,A) and Cay(G,B); we require both to be Ramanujan: connected, and every adjacency eigenvalue other than ±Δ has absolute value at most 2Δ−1.
For codes CA⊆F2A, CB⊆F2B, the tensor code CA⊗CB consists of arrays whose columns lie in CA and whose rows lie in CB. The dual tensor code is CA⊗F2B+F2A⊗CB. It is w-robust if every codeword x of weight ∣x∣≤w vanishes outside A′×B∪A×B′ for some A′⊆A, B′⊆B with ∣A′∣≤∣x∣/dB and ∣B′∣≤∣x∣/dA, where dA,dB are the minimum distances. It is w-robust with p-resistance to puncturing if, for all A′⊆A, B′⊆B with ∣A′∣=∣B′∣=Δ−w′ and w′≤p, the dual tensor code of the punctured codes CA′, CB′ is w-robust. The quantum Tanner code C1 is
C1={x∈F2Q:xv∈CA⊗F2B+F2A⊗CBfor every v∈V1}.
Theorem. Fix ε∈(0,21), γ∈(21+ε,1) and δ>0. There is Δ0, depending only on ε,γ,δ, such that the following holds for every Δ≥Δ0 and every complex as above. Suppose every nonzero codeword of CA and of CB has weight at least δΔ, and the dual tensor code is Δ3/2−ε/2-robust with Δγ-resistance to puncturing. Let n=∣Q∣. Then for every x∈C1 with
0<∣x∣<4Δ3/2+εδn,
there are a vertex v∈V0 and a tensor codeword c∈CA⊗CB such that the word y∈F2Q that equals c on the squares at v and is 0 elsewhere lies in C1 and satisfies ∣x+y∣<∣x∣.
Applied repeatedly, the theorem shows that low-weight codewords of C1 lie in C0⊥, which gives the linear minimum distance of quantum Tanner codes. It also recovers the local testability of the Dinur et al. code.
Formalization Note The paper says "there exists an infinite family of square complexes". The formal statement instead holds for every left-right Cayley complex that satisfies the hypotheses the proof uses (TNC, Ramanujan double covers). The infinite family is the cited [DEL+21] construction. Minimum distances are taken in N∪{∞}, and the bounds ∣A′∣≤∣x∣/dB are written as ∣A′∣dB≤∣x∣.
Target
Theorem 1
This is the main technical theorem behind quantum Tanner codes.
Setting. Let G be a finite group and A=A−1, B=B−1⊆G with ∣A∣=∣B∣=Δ, satisfying the Total No-Conjugacy condition ag=gb for all a∈A, b∈B, g∈G. The left-right Cayley complex has vertices V=V0∪V1, Vi=G×{i}, and squares Q, the 4-sets {(g,0),(ag,1),(gb,1),(agb,0)}. For a vertex v=(g,i) the squares {v,(ag,1−i),(gb,1−i),(agb,i)} incident to v are in bijection with A×B, so the restriction xv of x∈F2Q to the squares at v is an A×B array. Let GA, GB be the bipartite double covers of Cay(G,A) and Cay(G,B); we require both to be Ramanujan: connected, and every adjacency eigenvalue other than ±Δ has absolute value at most 2Δ−1.
For codes CA⊆F2A, CB⊆F2B, the tensor code CA⊗CB consists of arrays whose columns lie in CA and whose rows lie in CB. The dual tensor code is CA⊗F2B+F2A⊗CB. It is w-robust if every codeword x of weight ∣x∣≤w vanishes outside A′×B∪A×B′ for some A′⊆A, B′⊆B with ∣A′∣≤∣x∣/dB and ∣B′∣≤∣x∣/dA, where dA,dB are the minimum distances. It is w-robust with p-resistance to puncturing if, for all A′⊆A, B′⊆B with ∣A′∣=∣B′∣=Δ−w′ and w′≤p, the dual tensor code of the punctured codes CA′, CB′ is w-robust. The quantum Tanner code C1 is
C1={x∈F2Q:xv∈CA⊗F2B+F2A⊗CBfor every v∈V1}.
Theorem. Fix ε∈(0,21), γ∈(21+ε,1) and δ>0. There is Δ0, depending only on ε,γ,δ, such that the following holds for every Δ≥Δ0 and every complex as above. Suppose every nonzero codeword of CA and of CB has weight at least δΔ, and the dual tensor code is Δ3/2−ε/2-robust with Δγ-resistance to puncturing. Let n=∣Q∣. Then for every x∈C1 with
0<∣x∣<4Δ3/2+εδn,
there are a vertex v∈V0 and a tensor codeword c∈CA⊗CB such that the word y∈F2Q that equals c on the squares at v and is 0 elsewhere lies in C1 and satisfies ∣x+y∣<∣x∣.
Applied repeatedly, the theorem shows that low-weight codewords of C1 lie in C0⊥, which gives the linear minimum distance of quantum Tanner codes. It also recovers the local testability of the Dinur et al. code.
Formalization Note The paper says "there exists an infinite family of square complexes". The formal statement instead holds for every left-right Cayley complex that satisfies the hypotheses the proof uses (TNC, Ramanujan double covers). The infinite family is the cited [DEL+21] construction. Minimum distances are taken in N∪{∞}, and the bounds ∣A′∣≤∣x∣/dB are written as ∣A′∣dB≤∣x∣.
Significance
These are known results from the cited paper. The current contribution consists of source-reviewed, compiler-checked theorem statements and mathematical definitions. Formal proofs remain open. Only the listed selected results are in scope; no whole-paper completeness is claimed.
Difficulty
A complete solution must establish every quantified conclusion under the exact stated hypotheses, including error, probability and resource conditions wherever present. The source assumptions and conventions are recorded in the attached statements and independent readbacks.
Formalization scope
Definitions preserve the existing reviewed Lean interfaces. Every target proof is currently sorry, so each target is Open. Printed-source corrections, where necessary, are labeled with the printed claim, the change and its reason.
This is the correctness and iteration bound of the sequential decoder for quantum Tanner codes (Leverrier–Zémor, Theorem 13 with the bound established in its proof).
Fix ε∈(0,1) and constants δ,κ>0. There is Δ0 (depending only on ε,δ,κ) such that the following holds for every Δ≥Δ0. Let G be a finite group with self-inverse subsets A=A−1, B=B−1 of size ∣A∣=∣B∣=Δ such that the left Cayley graph Cay(G,A) and the right Cayley graph Cay(G,B) are connected, non-bipartite (−Δ is not an adjacency eigenvalue) and Ramanujan (every adjacency eigenvalue λ=±Δ has ∣λ∣≤2Δ−1). Let CA⊆F2A, CB⊆F2B be linear codes with dimCA+dimCB=Δ, such that CA, CB, CA⊥, CB⊥ all have minimum distance at least δΔ, and both dual tensor codes CA⊗F2B+F2A⊗CB and CA⊥⊗F2B+F2A⊗CB⊥ are κ-product-expanding (every codeword x is c+r with ∣x∣≥κΔ(∥c∥+∥r∥), counting nonzero columns of c and nonzero rows of r). Let Q≅G×A×B be the set of squares of the quadripartite left-right Cayley complex, n=∣Q∣, and let Q=(C0,C1) be the quantum Tanner code.
Let e∈F2Q be a σx-type error with
∣e∣<2111min(16ε3,κ)(1−ε)δ2κ2Δn.
For each v∈V1=V01∪V10 let εv be any minimum-weight local vector on Q(v) with the same local syndrome as ev, and let Z=∑v∈V1εv be the mismatch. Consider any run of the sequential mismatch decomposition (Algorithm 2 with parameter ε, with any of its choices of vertex v∈Vij and nonzero local dual tensor codeword xv=cv+rv with ∣Z^∣−∣Z^+xv∣≥(1−ε)∣xv∣ and ∥cv∥+∥rv∥ minimal, updating C^j+=cv, R^i+=rv, Z^+=xv), started from C^=R^=0, Z^=Z, after m iterations. Then:
(1−ε)m≤4∣e∣, i.e. the decoder makes at most 4∣e∣/(1−ε) iterations, a number linear in n;
if Z^=0, a further iteration is possible (the decoder never returns Failure);
if Z^=0, the output e^=∑v∈V10εv+C^0+R^1 satisfies e+e^∈C0⊥, the span of the σx-generators (codewords of CA⊗CB on the Q-neighbourhoods of V0): e^ is equivalent to e up to the stabilizer group.
This is the paper's linear-time decoding guarantee: quantum Tanner codes built from Ramanujan left-right Cayley complexes and robust local codes admit a sequential decoder correcting every error of weight linear in the code length.
Formalization Note The squares are indexed injectively by G×A×B; vertices are G×{0,1}2 with the paper's labelling φv (p.10). Algorithm 2 is a nondeterministic step relation, so the statement quantifies over all runs and over all choices of the εv. Only the σx case is stated, as in the paper's proof (the σz case is symmetric). The group G ranges over Type (universe 0).
Target
Theorem 13
This is the correctness and iteration bound of the sequential decoder for quantum Tanner codes (Leverrier–Zémor, Theorem 13 with the bound established in its proof).
Fix ε∈(0,1) and constants δ,κ>0. There is Δ0 (depending only on ε,δ,κ) such that the following holds for every Δ≥Δ0. Let G be a finite group with self-inverse subsets A=A−1, B=B−1 of size ∣A∣=∣B∣=Δ such that the left Cayley graph Cay(G,A) and the right Cayley graph Cay(G,B) are connected, non-bipartite (−Δ is not an adjacency eigenvalue) and Ramanujan (every adjacency eigenvalue λ=±Δ has ∣λ∣≤2Δ−1). Let CA⊆F2A, CB⊆F2B be linear codes with dimCA+dimCB=Δ, such that CA, CB, CA⊥, CB⊥ all have minimum distance at least δΔ, and both dual tensor codes CA⊗F2B+F2A⊗CB and CA⊥⊗F2B+F2A⊗CB⊥ are κ-product-expanding (every codeword x is c+r with ∣x∣≥κΔ(∥c∥+∥r∥), counting nonzero columns of c and nonzero rows of r). Let Q≅G×A×B be the set of squares of the quadripartite left-right Cayley complex, n=∣Q∣, and let Q=(C0,C1) be the quantum Tanner code.
Let e∈F2Q be a σx-type error with
∣e∣<2111min(16ε3,κ)(1−ε)δ2κ2Δn.
For each v∈V1=V01∪V10 let εv be any minimum-weight local vector on Q(v) with the same local syndrome as ev, and let Z=∑v∈V1εv be the mismatch. Consider any run of the sequential mismatch decomposition (Algorithm 2 with parameter ε, with any of its choices of vertex v∈Vij and nonzero local dual tensor codeword xv=cv+rv with ∣Z^∣−∣Z^+xv∣≥(1−ε)∣xv∣ and ∥cv∥+∥rv∥ minimal, updating C^j+=cv, R^i+=rv, Z^+=xv), started from C^=R^=0, Z^=Z, after m iterations. Then:
(1−ε)m≤4∣e∣, i.e. the decoder makes at most 4∣e∣/(1−ε) iterations, a number linear in n;
if Z^=0, a further iteration is possible (the decoder never returns Failure);
if Z^=0, the output e^=∑v∈V10εv+C^0+R^1 satisfies e+e^∈C0⊥, the span of the σx-generators (codewords of CA⊗CB on the Q-neighbourhoods of V0): e^ is equivalent to e up to the stabilizer group.
This is the paper's linear-time decoding guarantee: quantum Tanner codes built from Ramanujan left-right Cayley complexes and robust local codes admit a sequential decoder correcting every error of weight linear in the code length.
Formalization Note The squares are indexed injectively by G×A×B; vertices are G×{0,1}2 with the paper's labelling φv (p.10). Algorithm 2 is a nondeterministic step relation, so the statement quantifies over all runs and over all choices of the εv. Only the σx case is stated, as in the paper's proof (the σz case is symmetric). The group G ranges over Type (universe 0).
Significance
These are known results from the cited paper. The current contribution consists of source-reviewed, compiler-checked theorem statements and mathematical definitions. Formal proofs remain open. Only the listed selected results are in scope; no whole-paper completeness is claimed.
Difficulty
A complete solution must establish every quantified conclusion under the exact stated hypotheses, including error, probability and resource conditions wherever present. The source assumptions and conventions are recorded in the attached statements and independent readbacks.
Formalization scope
Definitions preserve the existing reviewed Lean interfaces. Every target proof is currently sorry, so each target is Open. Printed-source corrections, where necessary, are labeled with the printed claim, the change and its reason.
An Introduction to Quantum Error Correction and Fault-Tolerant Quantum Computation 4: Steane error correction: final errors lie only on the fault locationsTextbook
The linked theorem statements and shared definitions specify the register types, oracle access, normalization, and resource conventions. Their source locators and independent readbacks accompany each target.
Chapter goal
This is the key claim in the proof that Steane error correction satisfies property EC A (Gottesman intro p.28).
Let C1,C2⊆F2n be binary linear codes with C2⊥⊆C1, and let C be their CSS code, spanned by the states ∑w∈C2⊥∣u+w⟩ for u∈C1. Steane error correction is applied to a data block in an arbitrary state ∣ψ⟩. The state may be entangled with a reference system R, and its incoming error is unrestricted. The procedure runs as follows:
A phase ancilla is prepared in the encoded ∣0⟩=∑w∈C2⊥∣w⟩ and a bit-flip ancilla in the encoded ∣0⟩+∣1⟩=∑u∈C1∣u⟩.
A transversal CNOT is applied with the phase ancilla as control and the data as target. Then a transversal CNOT is applied with the data as control and the bit-flip ancilla as target.
The phase ancilla is measured in the Hadamard-rotated basis, giving a word wP. The bit-flip ancilla is measured in the standard basis, giving wB.
Classical decoders return dP=decP(wP) with the same C2-syndrome as wP and dB=decB(wB) with the same C1-syndrome as wB. Then Z is applied on the qubits of dP and X on the qubits of dB. This correction step is error-free.
The faults are arbitrary operators. They may act within fP,fB on the prepared ancillas, and within the pairs (data qubit i, ancilla qubit i) for i∈gP, resp. gB, right after the two CNOTs. During the Hadamard and measurement of the phase ancilla they act within hP, and during the measurement of the bit-flip ancilla within hB. Put F=fP∪fB∪gP∪gB∪hP∪hB. Then for every pair of outcomes (wP,wB) the corrected (unnormalized) data–reference state satisfies
∣ψfinal⟩∈VF⊗R,VF=span{E∣c⟩:c∈C,E acts only on the qubits in F},
and moreover ∣F∣≤s=∣fP∣+∣fB∣+∣gP∣+∣gB∣+∣hP∣+∣hB∣.
In words: after Steane error correction, the data is a codeword (possibly a different logical state) with errors only on the qubits where faults occurred during error correction. This gives EC A when s≤t.
Formalization Note The circuit is the chunk-local definition steaneECOutput. It returns the post-measurement branch for the given outcomes, i.e. the amplitude of the ancillas on ∣wP,wB⟩. In that branch the map is linear, so the arbitrary fault operators per Kraus branch and the arbitrary incoming vector cover the source's 'no restrictions as to the types of errors'. The hypothesis s≤t of EC A is omitted because the claim's proof never uses it.
Significance
These are known mathematical results. Their Lean statements have been checked and reviewed against the cited source; formal proofs remain open for contributors.
Supporting targets
§4.4, Claim 1: Steane error correction: final errors lie only on the fault locations.
Formalization scope
Prove the existing statements under their stated hypotheses and definitions. Any correction to a printed source claim remains explicit in its target description. All listed target proofs are currently sorry; no proof is claimed. The mission goal is the designated chapter capstone; the remaining targets are separate milestones. Parts a, b, c and d are merged into their original chapter.
Selected references
Daniel Gottesman, An Introduction to Quantum Error Correction and Fault-Tolerant Quantum Computation, 2009, v1. https://arxiv.org/pdf/0904.2557v1.
The linked theorem statements and shared definitions specify the register types, oracle access, normalization, and resource conventions. Their source locators and independent readbacks accompany each target.
Chapter goal
Fix an erasure probability p∈[0,1]. The qubit erasure channel Np acts independently on each qubit sent: with probability 1−p the qubit passes unchanged together with a classical flag 0, and with probability p it is replaced by the maximally mixed state I/2 together with the flag 1, so that the receiver knows which qubits were erased. On n qubits the channel is Np⊗n.
A rate R∈R is achievable (for quantum codes, equivalently one-way entanglement purification) if for every ε>0 and δ>0 there is N0 such that for every n≥N0 there are a number k≥(R−δ)n of logical qubits, an encoding quantum channel E from k qubits to n qubits and a decoding quantum channel D from the channel output (qubits and erasure flags) to k qubits with
Fe(D∘Np⊗n∘E)≥1−ε,
where Fe(Φ)=⟨Φk∣(id⊗Φ)(∣Φk⟩⟨Φk∣)∣Φk⟩ is the entanglement fidelity with respect to the maximally entangled state ∣Φk⟩ of two k-qubit registers. The theorem states that the quantum capacity of the erasure channel is max(0,1−2p), in the strong form that the set of achievable rates is exactly
{R:R achievable for Np}=(−∞,max(0,1−2p)].
In particular every rate below 1−2p is achievable (random stabilizer codes), no rate above 1−2p is (a no-cloning argument), and for p≥1/2 the capacity is zero.
Formalization Note The supremum of achievable rates is not written as a real sSup (which would be junk on an empty or unbounded set); instead the achievable set itself is characterized. Because the definition of achievability already has the slack δ, the achievable set is closed, so the capacity max(0,1−2p) is itself an achievable rate. The author's errata note that the thesis's proof of the upper bound assumes there is no superadditivity when a noiseless channel is added to a zero-rate channel; the theorem itself is the established value (Bennett–DiVincenzo–Smolin).
Significance
These are known mathematical results. Their Lean statements have been checked and reviewed against the cited source; formal proofs remain open for contributors.
Supporting targets
§7.5: The quantum capacity of the erasure channel is max(0, 1 − 2p).
Formalization scope
Prove the existing statements under their stated hypotheses and definitions. Any correction to a printed source claim remains explicit in its target description. All listed target proofs are currently sorry; no proof is claimed. The mission goal is the designated chapter capstone; the remaining targets are separate milestones. Parts a, b, c and d are merged into their original chapter.
Selected references
Daniel Gottesman, Stabilizer Codes and Quantum Error Correction, 1997 thesis, downloaded arXiv v1 PDF; PDF title page now prints 2024. https://arxiv.org/pdf/quant-ph/9705052v1.