- A multi-agent platform called TeXRA generated 14,116 Lean-certified quantum error-correcting codes across 2–6 physical qubits, each formally verified — not just numerically approximated
- Among 12 distance-3 candidates that survived combinatorial filters, 10 admitted exact realizations while 2 were eliminated by formal no-go proofs, demonstrating that AI search coupled with proof verification eliminates false positives
- Organizations planning post-quantum migrations should track nonadditive code families with transversal diagonal gates — they represent a hardware-efficient path to fault tolerance that bypasses limitations of traditional stabilizer codes
Last updated: April 2026
Why Formally Verified Quantum Codes Change Your Risk Calculus
Quantum error correction sits at the foundation of every fault-tolerant quantum computer. Without reliable codes, quantum processors cannot execute the sustained computations needed to break classical encryption — or, critically, to run the quantum algorithms that post-quantum cryptography must defend against. The quality of these codes determines how quickly credible quantum threats materialize.
Here is the problem: most quantum error-correcting code discovery relies on numerical search. Researchers generate candidates, test them computationally, and publish results that other teams must independently verify. This pipeline introduces latency and uncertainty. A code that appears valid under floating-point arithmetic may fail under exact algebraic constraints. Security architects building migration timelines around quantum threat projections are, in effect, trusting unverified mathematics.
A recent preprint on arXiv (arXiv:2510.20728v3) changes this dynamic. The researchers extended a multi-agent AI platform called TeXRA with an independent Lean 4 formal verification layer, then applied it to the problem of nonadditive quantum error-correcting codes with prescribed transversal diagonal gates. The result: a certified catalogue of 14,116 codes, each backed by machine-checked proof.
Quantum error-correcting codes are mathematical structures that protect quantum information from decoherence and operational errors by encoding logical qubits into larger systems of physical qubits. Unlike classical error correction, quantum codes must handle both bit-flip and phase-flip errors simultaneously while respecting the no-cloning theorem.
Inside TeXRA: How AI Agents Produce Certified Codes
TeXRA is not a single model generating candidates. It is a human-guided multi-agent platform that couples four distinct capabilities into a single pipeline:
- Symbolic synthesis — agents generate candidate code structures using algebraic methods
- Combinatorial and linear-programming search — the SSLP (subset-sum linear-programming) framework filters candidates against hard mathematical constraints
- Exact reconstruction — numerical candidates are converted to exact algebraic representations, eliminating floating-point uncertainty
- Formal verification in Lean 4 — every accepted code, infinite family, and no-go result is formalized and machine-checked
This architecture matters because it closes a gap that has plagued computational mathematics: the distance between “the computer found it” and “we can prove it exists.” Each stage acts as an independent filter. A candidate that passes symbolic synthesis but fails SSLP search is discarded. A candidate that survives SSLP but cannot be exactly reconstructed is discarded. And a candidate that passes all computational stages but cannot be formalized in Lean 4 is discarded.
The coupling of AI-driven search with formal proof verification represents a methodological shift. As the authors state: “AI-assisted workflows can bridge search, exact reconstruction, and formal proof in the physical sciences.” (arXiv:2510.20728v3)
The SSLP framework deserves specific attention. It targets nonadditive codes — quantum codes that fall outside the well-studied stabilizer formalism. Stabilizer codes dominate current quantum error correction research (surface codes, color codes), but they carry structural limitations on which logical gates can be implemented transversally. Nonadditive codes break free of these constraints, potentially enabling hardware-efficient fault-tolerant gate sets that stabilizer codes cannot achieve.
[IMAGE: A cascading multi-agent pipeline visualization showing four distinct processing stages — symbolic synthesis, combinatorial search, exact reconstruction, and formal verification — with quantum code lattice structures flowing through each stage, rendered with deep blacks and cyan energy traces connecting the stages]
The Catalogue: 14,116 Codes and What They Encode
The certified catalogue spans specific parameter ranges that matter for near-term quantum hardware:
| Parameter | Range | Significance |
|---|---|---|
| Physical qubits (n) | Up to 6 | Compatible with current small-scale processors |
| Code dimension (K) | 2, 3, 4 | Encodes 1–2 logical qubits of information |
| Distance (d) | 2 | Corrects detectable single-qubit errors |
| Cyclic logical orders | 2 through 18 | Determines which transversal diagonal gates are available |
| Total certified codes | 14,116 | Each backed by Lean 4 machine-checked proof |
At distance 2, the researchers discovered that logical states occupy distinct residue classes — a structural property that enabled systematic extraction of closed-form infinite families from the finite catalogue. These families are not just individual codes but algebraic descriptions that generate codes for arbitrarily many physical qubits, extending the practical reach far beyond the 6-qubit computational boundary.
Two specific constructions stand out:
The ((6,4,2)) code uses 6 physical qubits to encode a 4-dimensional code space at distance 2. It implements a logical controlled-phase gate diag(1,1,1,i) — a non-Clifford operation that is particularly valuable because non-Clifford gates are the bottleneck in most fault-tolerant architectures. Achieving this gate transversally (applied qubit-by-qubit without entangling operations between code blocks) reduces the overhead that magic state distillation would otherwise require.
The ((7,2,3)) distance-3 analysis pushes into the regime where genuine error correction (not just detection) is possible. Within the complementary binary-dihedral BD₁₆ setting, the researchers examined the transversal-T problem for ((7,2,3)) codes. Of 12 candidates that survived SSLP filters, 10 admitted exact realizations and 2 were excluded by formal no-go proofs. Every outcome — acceptance and rejection — was formalized in Lean 4.
The distance-3 result is particularly significant: by proving that exactly 10 of 12 candidates work and 2 provably cannot, the researchers eliminated ambiguity that numerical methods alone could never resolve. This is the difference between “we think these codes exist” and “we have machine-checked certainty.”
Nonadditive vs. Stabilizer Codes: Why This Matters
| Property | Stabilizer Codes | Nonadditive Codes (This Work) |
|---|---|---|
| Mathematical framework | Group-theoretic (Pauli group) | Beyond stabilizer formalism |
| Transversal gate constraints | Limited by Eastin-Knill theorem | Can circumvent standard restrictions |
| Discovery method | Algebraic construction | AI-assisted search + formal verification |
| Verification status | Varies (often numerical) | Lean 4 machine-checked |
| Hardware overhead for non-Clifford gates | Requires magic state distillation | Potential for direct transversal implementation |
| Catalogue size (this parameter range) | Well-explored | 14,116 newly certified codes |
Regulatory and Industry Context: Formal Verification Meets Quantum Timelines
NIST’s post-quantum cryptography standards (FIPS 203, 204, 205) address the “harvest now, decrypt later” threat by replacing vulnerable key exchange and signature algorithms. But these standards assume a threat model: that fault-tolerant quantum computers of sufficient scale will eventually exist. The timeline for that threat depends directly on quantum error correction.
Every advance in quantum error-correcting codes — particularly codes that reduce hardware overhead for fault-tolerant gates — potentially accelerates the timeline. The 14,116-code catalogue does not build a quantum computer, but it maps the mathematical landscape that quantum hardware engineers will navigate.
Three implications for security planning:
Near-term (1–2 years): The TeXRA methodology demonstrates that AI multi-agent workflows can produce formally verified results at scale. Expect this approach to accelerate code discovery across the full parameter space, not just the 2–6 qubit regime explored here. Quantum roadmaps from IBM, Google, and others will incorporate these verified code families into their fault-tolerance strategies.
Medium-term (3–5 years): Closed-form infinite families of nonadditive codes with transversal diagonal gates could inform hardware-efficient fault-tolerant implementations as processors scale beyond 10–50 physical qubits. If nonadditive codes prove competitive with surface codes for practical error correction, the overhead estimates that drive current quantum threat timelines may need revision — downward.
Long-term (5+ years): The methodology itself — coupling AI search with formal proof verification — may become standard practice for exact scientific discovery. This has implications beyond quantum computing: any domain where computational candidates require mathematical certification (cryptographic protocol analysis, formal hardware verification) could adopt similar multi-agent pipelines.
The BeQuantum Perspective: Why Formal Verification Aligns With Our Architecture
BeQuantum’s approach to content authenticity and cryptographic verification shares a philosophical foundation with the TeXRA methodology: trust requires proof, not just computation.
Our Digital Notary platform uses cryptographic commitments to verify content provenance — ensuring that a document, image, or dataset has not been tampered with since its creation timestamp. The underlying cryptographic primitives must survive the transition to post-quantum standards. As quantum error-correcting codes improve and fault-tolerant quantum computers become more feasible, the urgency of that transition intensifies.
The TeXRA research demonstrates a principle we apply in our PQC Layer: automated verification must be independent of the generation process. TeXRA’s Lean 4 verification layer operates independently of its search agents, just as BeQuantum’s verification infrastructure operates independently of the content creation pipeline. This separation prevents a single point of failure from producing false assurances.
For organizations evaluating their quantum-readiness posture, the 14,116-code catalogue is a data point in a larger trend: the tools for building fault-tolerant quantum computers are maturing faster than most enterprise migration plans account for. Our IceCase hardware security modules are designed with algorithm agility precisely because the cryptographic landscape — shaped by advances like these — continues to shift.
What You Should Do Next
-
Within 30 days: Audit your quantum threat timeline assumptions. If your organization’s PQC migration plan assumes fault-tolerant quantum computing is 15+ years away, revisit that estimate. Advances in AI-assisted quantum code discovery — producing 14,116 verified codes in a single study — suggest the mathematical foundations are maturing faster than linear projections indicate. Document your assumptions explicitly so they can be updated as new results emerge.
-
Within 90 days: Evaluate your cryptographic agility. Map every cryptographic primitive in your infrastructure — TLS certificates, key exchange protocols, digital signatures, data-at-rest encryption. Identify which components can be swapped to PQC algorithms (FIPS 203/204/205) without architectural changes and which require deeper refactoring. Prioritize long-lived secrets and data with extended confidentiality requirements.
-
Within 6 months: Establish a quantum monitoring cadence. Assign a team member to track quarterly developments in quantum error correction, fault-tolerant gate implementations, and hardware milestone announcements. The gap between “interesting research” and “operational threat” will close through incremental advances like this catalogue — not through a single dramatic announcement.
Frequently Asked Questions
Q: What are nonadditive quantum error-correcting codes, and why do they matter for post-quantum security?
A: Nonadditive codes are quantum error-correcting codes that exist outside the stabilizer formalism — the mathematical framework underlying most studied quantum codes (including surface codes). They matter because they can implement logical gates transversally that stabilizer codes cannot, potentially reducing the hardware overhead needed for fault-tolerant quantum computation. Lower overhead means fault-tolerant quantum computers could arrive with fewer physical qubits than current estimates suggest, which directly affects post-quantum migration timelines.
Q: What does “Lean-certified” mean in the context of these 14,116 codes?
A: Lean 4 is a formal proof assistant — software that checks mathematical proofs for logical correctness at every step. A “Lean-certified” code means that its properties (distance, dimension, transversal gate behavior) have been verified by machine-checked proof, not just numerical computation. This eliminates the risk of floating-point errors, edge cases, or incorrect assumptions that can invalidate computationally discovered results. It is the mathematical equivalent of a cryptographic signature on a research finding.
Q: Should my organization change its PQC migration timeline based on this research?
A: Not based on this single paper, but this result is part of an accelerating trend. AI-assisted discovery platforms are systematically mapping the quantum error correction landscape at a pace that manual research cannot match. Organizations should ensure their migration timelines are based on explicit, revisable assumptions about quantum computing progress — and should review those assumptions at least quarterly against developments in error correction, gate fidelity, and qubit count milestones.