Manuscript Offprint
arXiv:2610.41183Researcher-in-the-Loop Evolutionary Discovery of Entanglement-Assisted Quantum Code Families
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
LLM-guided program evolution can produce mathematical constructions, but validity, generality, and reproducibility require distinct evidence. We develop a researcher-in-the-loop discovery pipeline that combines program evolution, exact evaluation, mathematical generalization, certified nonexistence checks, and formal proof checking. We apply it to entanglement-assisted quantum error-correcting codes (EAQECCs). Starting from tasks that did not specify a family formula, evolved programs produced finite qubit constructions whose structure researchers generalized to the family for prime powers at and for at odd . Lean checks the algebraic certificate underlying this family. Together with entanglement lifting, the family closes 54 gaps in archived EAQECC tables. The released evidence includes 115 verified code records, ten nonexistence results with checked DRAT proofs, family implementations, and preserved search programs for exact checks and seeded replay. In a controlled cohort of eight paired generation blocks, validation-selected iterative programs achieve success in 46.1% and 31.6% of held-out executions at unseen lengths , compared with 19.5% and 3.1% for independently generated programs. In this setting, program evolution and researcher analysis turn finite computational discoveries into a proved family with independently checkable evidence.
1 INTRODUCTION
LLM-guided program search has produced mathematical constructions and algorithms (Romera-Paredes et al., 2024; Novikov et al., 2025). Their outputs can also support general mathematical results through researcher analysis. This raises three questions: whether evolved programs produce valid codes, whether their structure can be generalized and proved to work beyond the searched cases, and whether the resulting constructions and preserved searches can be independently reproduced. Addressing these questions requires records of the initial task, computational discoveries and subsequent mathematical analysis.
We study this process for entanglement-assisted quantum error-correcting codes (EAQECCs). Early AlphaEvolve searches produced finite qubit codes whose structure led us to an infinite qubit family. Further mathematical generalization gives the prime-power construction and proof in Theorem 1. The initial instructions suggested directions such as cyclic shifts, but did not provide this family formula. Later instructions explicitly incorporated the discovered qubit family (Appendix B.3), allowing it to guide further searches.
Our reproducibility contribution concerns these mathematical constructions and their computational evidence. The artifact supplies code matrices, family implementations, proofs, task specifications and preserved search programs. Readers can recompute code parameters, construct and verify family
*Corresponding author: jlkim@sogang.ac.kr instances, inspect the proof and replay preserved searches. Figure 1 summarizes how researcher analysis and program evolution interact. Section 3.4 specifies which operations are reproducible. A final Lean stage checks the algebraic construction underlying Theorem 1 (Appendix D); model generation remains stochastic.
Several improvements concern constructions published in 2020 and 2022 that remained listed in the EAQECC tables accessed on 17 July 2026 (Grassl et al., 2020; Luo et al., 2022). Our constructions and certified exclusions close nine previously tabulated qubit distance gaps (Table 1). The prior constructions predate our table access by approximately four to six years. Their dates document available constructions rather than a complete history of improvement attempts.
Our contributions are:
-
A researcher-in-the-loop discovery pipeline. We connect LLM-guided program evolution with researcher proposals, mathematical generalization and formal proof checking for EAQECC discovery. Preserved programs, code matrices and formal certificates support reconstruction and independent verification of the resulting constructions (Sections 3 and 3.4).
-
General constructions from evolved program outputs. Finite qubit constructions led to the general family of Theorem 1, whose algebraic construction is checked in Lean. The family and entanglement lifting close 54 listed gaps, while checked nonexistence certificates establish selected optimality and minimum-entanglement results (Section 4).
-
Program development and generalization. We compare independent and iterative generation under shared research guidance. Eight new generation blocks yield longer-code success of 46.1% and 31.6% for iterative programs, versus 19.5% and 3.1% for independent proposals at . Preserved lineages identify useful objective and search-policy changes (Section 5).
2.1 ENTANGLEMENT-ASSISTED QUANTUM ERROR-CORRECTING CODES
Quantum error correction protects quantum information sent through noisy communication links. Early stabilizer constructions imposed algebraic compatibility constraints that limited which classical codes could be reused. Brun et al. (2006) showed that entanglement shared in advance between sender and receiver relaxes these constraints, enabling a broader class of quantum codes. This is the motivation for entanglement-assisted quantum error-correcting codes (EAQECCs).
A code with parameters encodes logical qudits into transmitted -level systems using shared maximally entangled qudit pairs. Each pair contains ebits, equal to one for qubits () (Grassl et al., 2022). The receiver's halves are assumed noiseless and are not counted in .
The distance determines the code's guaranteed error protection. With ideal decoding, it corrects arbitrary errors on up to transmitted qudits, or up to erasures, where the lost qudits' locations are known (Brun et al., 2006; Grassl et al., 2022). Increasing at fixed strengthens protection without increasing the transmission or entanglement budget. For example, our code raises the listed distance from 9 to 11, increasing the guaranteed correction of arbitrary errors from four to five transmitted qubits with the same resources (Table 1). A verified code thus provides an encoding specification for a quantum link with given resource and error-protection requirements. Reducing at fixed instead lowers the entanglement needed before transmission (Luo et al., 2022).
2.2 CODE DISCOVERY AS PROGRAM SEARCH
We search linear stabilizer EAQECCs represented by generator matrices over . The LLM revises a search program that proposes matrices; an exact evaluator computes their . At fixed , reference tables give a constructed lower distance bound and an upper bound (Grassl, 2026; Luo et al., 2022). Finding improves the lower bound, while reaching closes the gap. We also construct codes at unlisted cells and minimize entanglement, denoted
within our stabilizer class. Applicable bounds filter impossible targets (Grassl et al., 2022); Appendix A gives the representation, notation and comparison rules.
FUNSEARCH evolves programs that construct mathematical objects or make algorithmic decisions, using an evaluator to select useful revisions. It produced larger cap-set constructions and improved online bin-packing heuristics (Romera-Paredes et al., 2024); its executable outputs let researchers inspect and develop the underlying mathematical ideas. ALPHAEVOLVE extends this approach to matrix-multiplication algorithms, data-center scheduling, hardware-circuit simplification and model-training kernels (Novikov et al., 2025; Georgiev et al., 2025). Related frameworks include OPENEVOLVE, CODEEVOLVE, SHINKAEVOLVE and TURBOEVOLVE, which implement or extend evaluator-guided program evolution with population management and proposal-selection strategies (Sharma, 2025; Assumpção et al., 2026; Lange et al., 2025; Yang et al., 2026). We use ALPHAEVOLVE as the evolution engine for EAQECC discovery, supplying target parameters, an exact evaluator and researcher-directed construction ideas.
Quantum-code discovery also uses genetic algorithms to evolve stabilizer representations (Webster & Browne, 2024), and reinforcement learning to optimize codes and encoders (Poulsen Nautrup et al., 2019; Su et al., 2025; Mauron et al., 2023; Olle et al., 2024). More directly, Cruz-Benito et al. (2026) evolve Python generators for bivariate bicycle codes, verify candidates, and derive structural results. Our contribution concerns EAQECC distance-entanglement targets: exact finite-field evaluation supports finite constructions, a prime-power family with a Lean-checked algebraic certificate, and certified nonexistence results. The controlled study compares independent proposals with iterative program feedback under a shared researcher proposal.
3 THE RESEARCHER-IN-THE-LOOP DISCOVERY PIPELINE
Our discovery pipeline combines human-in-the-loop (HITL) research with LLM-guided program evolution and exact verification. Researchers propose construction ideas, inspect verified instances and revise the task between campaigns. Figure 1 connects these interventions to the automated search and evaluation loop. Constructed codes establish lower distance bounds; SAT refutations with checked certificates lower upper bounds. Independent verification and archived evidence support both routes. Researchers generalize the discovered constructions and develop proofs, then pass the formalized statements and proofs to the Lean checking stage.

Figure 1: The researcher-in-the-loop discovery pipeline.
3.1 TARGET SELECTION
We compare our constructions with the bounds listed in the EAQECC tables (codetables.de), accessed on 17 July 2026. These reference bounds define listed-gap and absent-cell targets, filtered using the EA-Plotkin and applicable Singleton bounds. EA-Plotkin also tightens 398 upper bounds in the reference qubit table. Appendix A.3 gives the table records and filters. The artifact preserves these comparison data and uses them by default. A second copy, retrieved on 10 September 2026, contains identical intervals at all 11,640 qubit and qutrit entries.
3.2 LLM-GUIDED PROGRAM EVOLUTION
The qubit discovery campaigns use AlphaEvolve (Novikov et al., 2025) through Google Cloud Vertex AI. We provide a seed program, task specification and exact evaluator; AlphaEvolve generates revisions and archives their source and outcomes. An LLM modifies a designated block of the seed. Within each candidate program, an exact parameter oracle evaluates intermediate matrices; the program uses these results to choose targets, accept local moves and restart search. Algorithm 1, for example, minimizes a cost combining signature mismatch and the number of logical operators below the target distance.
After the program returns up to 16 matrices, the external evaluator recomputes their parameters and assigns the best proposal score to the program. Its reward favors a valid signature, fewer low-weight logical operators and newly achieved targets. This reward guides the next program revision; the inner cost guides matrix search within one execution. Independent code checking follows in Section 3.3.
Each candidate runs in its own subprocess with a fixed 240s budget and a specified seed for its random-number generator. Failures receive a low score, and the campaign continues. The same interface supports fixed-program replay (Section 3.4). The four campaign logs record 401 completed candidate searches, corresponding to 26.7 h of allocated search budget (Appendix B.1).
The initial task specification did not contain the family proved in Theorem 1. We started with an annealing seed and instructions suggesting cyclic shifts among other construction directions. Evolved programs produced finite qubit codes; analysis of their structure led researchers to a general qubit family and its proof. The later task specifications included that family and requested further constructions, while the best program was reused as a new seed. These records distinguish the initial discovery stage from subsequent search using the mathematical result (Appendix B.3). The current prime-power theorem extends the qubit construction through further researcher-led generalization and proof.
3.3 INDEPENDENT VERIFICATION AND NONEXISTENCE CHECKING
The Magma export supplies only a basis of the symplectic dual , where is the stabilizer space. Magma independently recomputes the dual, radical and (Appendix A.1). All 148 objects—115 core codes at and 33 family instances—were re-verified with zero mismatches under Magma V2.28-20. Separate linear-algebra checks verify the two solver-refined qubit codes; all code records can also be checked in Python using the artifact. Lean checks the algebraic certificate underlying Theorem 1. A separate Comparator run checks the submitted proof against the exact formal goal and permitted axioms (Appendix D).
To test existence of an code, we encode the smaller subspace in symplectic normal form. Constraints enforce the target signature directly, so every satisfying assignment specifies an EAQECC. Distance constraints dominate the encoding.
For an unsatisfiable encoding, the SAT solver produces a DRAT proof, a certificate of unsatisfiability checked independently by DRAT-trim (Wetzler et al., 2014). Together with the encoding's completeness, this establishes the corresponding code nonexistence result. The qutrit encoding uses a coordinate-normalization lemma to preserve completeness. Appendix B.2 gives the proof scope and encoding, and Section 4.3 reports the certified results.
3.4 REPRODUCIBILITY
Readers can reconstruct two outputs: code constructions and preserved program executions. Supplied matrices support exact checks; family implementations generate instances, and Theorem 1 proves the construction for all admissible parameters. Task specifications and discovery logs document the progression from finite qubit codes to the researcher-derived family (Appendix B.1). Source replay concerns retained programs, including later programs that use this family. It replaces wall time with a virtual clock tied to evaluator calls and preserves the recorded random-number seeds and stopping conditions. Three programs with four seeds each reproduce all twelve stored proposal lists, with agreement between one and four workers. The artifact provides these inputs, independent parameter checks and reference-bound audits.
4 RESULTS
Algorithm 1 presents a later, high-scoring AlphaEvolve program whose seed already incorporated the discovered qubit family. It illustrates continued search after that generalization. Figure 2 and the shading show changes to target selection, reuse of stored proposals, construction choices and generator-row mutations. The earlier discoveries that motivated the theorem are recorded separately (Appendix B.1). Section 5 evaluates iterative feedback using newly generated programs, including Algorithm 2 in Appendix C.5.
Algorithm 1 Search program evolved by AlphaEvolve.
Require: targets , time allowance 1: ; for all 2: while time remains do 3: ; sample 4: ; ; 5: if , and then 6: 7: else 8: 9: end if 10: if is undefined or rank then 11: 12: end if 13: ; 14: if then continue 15: ; 16: while and time remains do 17: 18: 19: if then ; continue 20: ; 21: Set with probability 22: on an accepted strict improvement, otherwise 23: ; if then break 24: end while 25: 26: end while 27: return up to 16 stored proposals with the smallest objective values
Shading: principal changes from the campaign seed; routine definitions are in Appendix B.1.
4.1 DISTANCE IMPROVEMENTS
For listed cells, the tables give the July 2026 distance interval within the previous code parameters and our verified distance in Ours (2026). Bold entries attain the applicable archived, EA-Plotkin or certified upper bound (Section 4.3). References identify previous lower-bound constructions and their dates. For , where no comparable dated entry is archived, full constructed parameters appear in a separate New constructions block. No historical interval is assigned where no comparison entry exists.

Figure 2: Program changes in Algorithm 1 (schematic).
Table 1: Qubit EAQECCs ().
| Previous[[n, k, dℓ-du; c]]q | Ours d(2026) | References |
|---|---|---|
| [[7, 1, 5–6; 4]]2 | 6 | Grassl et al. (2020) |
| [[9, 1, 7–8; 6]]2 | 8 | Luo et al. (2022) |
| [[10, 1, 7–9; 6]]2 | 9 | Luo et al. (2022) |
| [[11, 1, 9–10; 8]]2 | 10 | Luo et al. (2022) |
| [[12, 1, 9–11; 8]]2 | 11 | Luo et al. (2022) |
| [[12, 2, 7–10; 9]]2 | 9 | Luo et al. (2022) |
| [[13, 1, 9–12; 8]]2 | 11 | Luo et al. (2022) |
| [[13, 1, 11–12; 10]]2 | 12† | Luo et al. (2022) |
| [[15, 1, 13–14; 12]]2 | 14† | Luo et al. (2022) |
† Constructed by the evolved program at unseen code lengths.
Table 2: Qudit EAQECCs ().
| Previous[[n, k, dℓ-du; c]]q | Ours d(2026) | References |
|---|---|---|
| [[9, 1, 7–8; 4]]3 | 8 | Luo et al. (2022) |
| [[10, 1, 8–9; 5]]3 | 9 | Luo et al. (2022) |
| [[11, 1, 9–10; 7]]3 | 10 | Luo et al. (2022) |
| [[13, 1, 10–12; 8]]3 | 12 | Luo et al. (2022) |
| New construction | Ours d | References |
| [[10, 1, 9; 4]]4 | 9 | Ours |
| [[12, 1, 11; 6]]4 | 11 | Ours |
| [[14, 1, 13; 8]]4 | 13 | Ours |
| [[12, 1, 11; 5]]5 | 11 | Ours |
| [[14, 1, 13; 7]]5 | 13 | Ours |
The five Table 1 rows with and are covered by Theorem 1; the other four retained generator matrices were constructed by normal-form SAT. The daggered rows also have constructions from the evolved program at lengths withheld from training and selection (Section 5.2). These reconstructions are covered by the family theorem and are not counted again among its 54 gap closures.
Our codes and the upper bounds close all nine listed qubit gaps in Table 1. Four cells improve the previous lower bound by two: , , and . For the last two cells, the EA-Plotkin bound and a checked DRAT refutation, respectively, give final distance intervals and (Section 4.3). Table 2 shows four qutrit gap closures, including , which raises the listed distance from 10 to 12 at fixed length and entanglement.
The previous construction follows from the pure code of Calderbank et al. (1997) and the length-reduction rule of Grassl et al. (2020); we date this EAQECC construction by the 2020 rule. The other eight qubit baselines and the four displayed qutrit baselines follow from the 2022 version of Luo et al. (2022). Appendix A.4 records the source codes and propagation rules for each cell.
The 65 core qubit code records cover 61 distinct cells: eight listed and 53 absent cells. The 27 qutrit codes comprise 15 improvements to listed entries, 11 constructions at absent cells and one code whose distance is already listed. Multiple codes at one cell are not counted as separate table entries. Four of these listed core cells overlap the family results in Section 4.2. The additional code record is kept in the controlled-study archive, separately from these core-file counts.
4.2 CODE FAMILIES AND REDUCED ENTANGLEMENT
Theorem 1 is the mathematical generalization of the construction identified through the evolved qubit codes. It gives for , , and for at odd . The proof in Appendix A.2 establishes the entire family; the implementations verify finite instances at . Entanglement lifting increases by one at fixed without reducing distance when (Lemma 1). The qubit family closes 29 listed gaps. For , lifting from to the table's closes 25 more, for 54 in total. This family addresses finite-length distance-entanglement tradeoffs: at fixed , its rate vanishes and tends to one. The broader archive includes 29 binary codes with , up to .
Additional constructions attain at . The displayed examples include and , requiring four and five shared pairs, respectively. These constructions establish achievable entanglement costs; smaller costs at have not been excluded. Complementary finite-field annealing searches produce 13 archived codes at and 10 at (Appendix B.1). Table 2 selects those using the least entanglement reached at the displayed lengths.

q=4
q=5
Code exists:
Code exists:
No code found; nonexistence unproved
Code exists:
Nonexistence certified, including implications at smaller c
Reference ; not a general bound
Unmarked gray cell: no result asserted in this figure.
Figure 3: Linear stabilizer EAQECCs at k = 1, target distance n - 1.
Figure 3 concerns linear stabilizer EAQECCs with and target distance . Teal at denotes a construction with distance at least . The white tick, solid fill and pale fill distinguish , smaller and larger , respectively; these are positions relative to the family line, not claims of minimum entanglement. Pale cells correspond to explicit constructions or entanglement lifting. Red cells are excluded by released, checked certificates or by their implications at smaller through entanglement lifting. A dotted outline records an unsuccessful search, not nonexistence. Unmarked gray cells assert neither construction nor exclusion. The dashed line is obtained by substituting and into the historical Brun–Devetak–Hsieh expression at equality. It is a comparison line, not a general bound in this regime (Appendix A.3).
4.3 UPPER BOUNDS AND OPTIMALITY
Solver refinement settles the two remaining qubit gaps from Table 1. Normal-form SAT finds , improving upon an intermediate construction from our earlier search. EA-Plotkin gives , so the new code is distance-optimal. At , a DRAT-certified refutation excludes ; our existing code is therefore optimal. Both codes are checked by separate binary linear-algebra code, and DRAT-trim replays the nonexistence certificate. We attribute these two closures to solver refinement.
Matching nonexistence results also establish minimum entanglement at selected lengths. For qubits at , , the minimum is at and at . This finite-length parity pattern combines distinct constructions with certified exclusions; Theorem 1's binary branch covers odd lengths. For qutrits, the certified exclusion of and a code at give . Two further exclusions, and , were also checked by exhaustive enumeration. All ten exclusions have checked DRAT proofs (Appendix B.2).
Applying the EA-Plotkin bound of Guo & Li (2013) additionally lowers 398 listed qubit upper bounds. The auditor recomputes these corrections against the reference table data. These corrections follow from a known inequality and are reported as a separate source of upper bounds.
5 ABLATION STUDY
We test whether iterative feedback helps develop a researcher-proposed change into an effective search program. Both policies receive the same initial code and research guidance; their difference is how they reuse previous programs and execution feedback.
5.1 PROGRAM GENERATION
The shared proposal is to maintain and mutate a basis of , converting it to S for exact evaluation. For and , this replaces a basis of 14 or 18 generators with four vectors. Symplectic complementation preserves the feasible code set but changes the variables and local mutations. A preliminary calibration compares the initial S-side program with a working L-side control and fixes a budget at which the change can produce measurable success. Neither the control's source nor generator matrices are supplied to the model.
Independent proposals always receive the initial program and its fixed training measurements. Iterative evolution receives the best-so-far program and the most recent attempt, including rejected attempts, with training feedback for both. The model can revise the representation, objective, mutation operators and restart policy. A proposal is a whole program revision; an evaluator call checks one candidate matrix produced by that program. Both use Gemini 3.5 Flash and identical tool access. There is no controller initialization: every success must be produced by the submitted program.
An initial four-block study was followed by a prospective eight-block replication using new generation and execution seeds. Each policy is allocated seven proposals per block. The replication receives 111 of 112 planned responses; one iterative pool has six proposals. All eight blocks are retained under a rule fixed before validation and testing. Training uses two seeds and 10,000 exact evaluations per target. Four new validation seeds select among the three training-best distinct programs; 32 further seeds evaluate each selection. Only training feedback enters generation. The original and new cohorts are reported separately (Appendix C).
In the new cohort, success at is 72.7% and 43.4% for iterative evolution, versus 60.2% and 27.0% for independent proposals. The prespecified primary endpoint is the paired block difference in mean normalized success-curve area: 0.359 versus 0.260, a gain of 0.099. Five of eight block differences are positive; a descriptive two-sided sign-flip test gives . Generation blocks, rather than execution seeds, are the units for policy inference. Restricting to the seven fully received paired blocks gives a gain of 0.150.
Figure 4 aggregates both lengths within each panel. Each policy contributes eight selected programs and 32 runs per length; each fixed control contributes 32 runs per length. Across the two generation lengths, iterative selections solve 297/512 executions, versus 223/512 for independent selections. Every saved successful code passes an independent parameter check. Appendix C.3 reports the

Figure 4: Prospective replication under shared research guidance.
earlier cohort and its fresh-seed repeat separately; the artifact also preserves model-use accounting for both policies.
5.2 GENERALIZATION TO LONGER CODES
The selected programs are applied without further modification to and at 30,000 calls. These lengths are withheld from generation and selection; their outcomes are secondary endpoints. In the new eight-block cohort, iterative success is 118/256 (46.1%) and 81/256 (31.6%), versus 50/256 (19.5%) and 8/256 (3.1%) for independent proposals. Two iterative selections achieve 32/32 at and at least 28/32 at (Appendix C.4). Their mean normalized curve areas are 0.309 and 0.193, compared with 0.099 and 0.012 for independent proposals.
A preserved lineage from the original cohort gives a source-level diagnosis of one useful edit. Adding a penalty for distance below the target—the only functional search change in that step—raises success from 13/32 to 29/32 and success from 3/32 to 28/32. The validation-selected child (Algorithm 2) then bundles changes to objective weights, moves and restart behavior; we therefore use the earlier step for edit-level attribution and report the complete lineage in Appendix C.5. All resulting codes pass independent linear-algebra checks. Table 1 includes the longer-code parameters alongside their prior intervals.
6 LIMITATIONS AND CONCLUSION
The controlled evidence is scoped to one model, one researcher proposal and binary targets. The eight generation blocks are the independent units for policy inference; repeated executions measure frozen-program variability. The policies receive equal proposal allocations but use different token totals. Exact distance verification enumerates symplectic duals, so its cost grows exponentially with their dimension. The distance guarantees assume ideal decoding and noiseless receiver-side halves; circuit costs and hardware-level error rates are not evaluated. For these controlled studies, the artifact preserves all generated sources, requests and selection records and supports fixed-program replay; stochastic model sampling is documented rather than expected to return byte-identical programs.
The central mathematical result developed from code constructions produced by evolved programs. Researchers analyzed their structure, derived a qubit family, and extended and proved the prime-power construction of Theorem 1. Later prompts reused the qubit family, showing how a result obtained through program search can guide further research. The family and entanglement lifting close 54 listed gaps. Normal-form SAT completes two final qubit closures, ten checked DRAT refutations certify selected upper bounds and minimum entanglement costs, and EA-Plotkin tightens 398 listed upper bounds.
Supplied matrices, family implementations and independent verifiers support reconstruction and checks of finite instances; preserved programs support seeded replay. The proof covers every admissible parameter. Independent Magma verification reports zero mismatches across 148 objects, and Lean checks the algebraic certificate underlying the researcher-derived theorem. The prospective eight-block cohort identifies useful program revisions and higher held-out longer-code success among iterative selections under shared research guidance. Applying the workflow to another problem still requires its own representation, evaluator and mathematical analysis.
AI USE STATEMENT
We used Gemini models through AlphaEvolve and a local controller to propose and revise search programs under researcher guidance and exact evaluation feedback (Sections 3 and 5). LLM-based assistants, including Codex, supported implementation, mathematical reasoning and manuscript preparation. Generated codes were independently checked; Theorem 1's algebraic construction was verified in Lean. The authors reviewed AI-assisted outputs and take responsibility for the paper's claims, proofs, code and reported results.
ETHICS STATEMENT
This work studies algebraic code constructions and search programs; it does not involve experiments on human participants or use participant-level or personal datasets. Its potential benefit is to improve methods for quantum error correction and communication, while the reported idealized parameters do not establish hardware-level reliability or operational security. Research-integrity considerations are addressed through dated sources, explicit provenance, independent verification, and separation of new parameter claims from retrospective reconstruction. Unsuccessful searches are distinguished from proved nonexistence. The controlled-study records preserve failed and excluded attempts, unavailable responses and protocol amendments, and the released records omit account credentials and machine-local configuration. Researcher and AI contributions are disclosed, external sources are cited, and the artifact retains software licensing information. Compute allowances and model usage are documented in Appendices B.1 and C.
REPRODUCIBILITY STATEMENT
The artifact supports reconstruction and independent checking of the mathematical outputs: generator matrices specify the finite codes, implementations generate family instances, and Appendix A.2 provides the general construction and proof of Theorem 1. The initial and later task specifications in Appendix B.3 document the transition from initial search directions to reuse of the researcher-derived qubit family. Preserved programs can be replayed with fixed seeds and evaluation budgets as described in Section 3.4 and the artifact. Appendix C and the accompanying study records supply generation requests, selections and held-out outcomes for the separate controlled comparison. Computational checks verify finite cases; general validity rests on the proof. Appendix D gives the exact formal goal and proof structure for Theorem 1. The artifact includes the Lean sources, pinned dependencies and separate kernel and Comparator verification records. Fresh LLM sampling is not part of this replay. External solver and Magma checks are reported separately from completed Python checks. The artifact is released under the MIT license and is available at https://github.com/LeGenAI/llm_guided_EAQECC_search/tree/arxiv-v1.
ACKNOWLEDGMENTS
We thank the maintainers of the tables of best-known codes (Grassl, 2026). J.-L. Kim was supported in part by the BK21 FOUR (Fostering Outstanding Universities for Research) funded by the Ministry of Education (MOE, Korea), National Research Foundation of Korea (NRF) under Grant No. 4120240415042, Basic Science Research Program through the National Research Foundation of Korea (NRF) funded by the Ministry of Science and ICT under Grant No. RS-2025-24534992 and Global - Learning & Academic research institution for Master's-PhD students, and Postdocs (LAMP) Program of the National Research Foundation of Korea (NRF) grant funded by the Ministry of Education (No. RS-2024-00441954).
REFERENCES
Henrique Assumpção, Diego Ferreira, Leandro Campos, and Fabricio Murai. CodeEvolve: an open source evolutionary coding agent for algorithmic discovery and optimization. arXiv preprint arXiv:2510.14150, 2026.
Todd Brun, Igor Devetak, and Min-Hsiu Hsieh. Correcting quantum errors with entanglement. Science, 314(5798):436–439, 2006. doi: 10.1126/science.1131563.
A. R. Calderbank, E. M. Rains, P. W. Shor, and N. J. A. Sloane. Quantum error correction via codes over GF(4). arXiv:quant-ph/9608006v5, 1997. URL https://arxiv.org/abs/quant-ph/9608006v5. Version dated 10 September 1997.
Juan Cruz-Benito, Andrew W. Cross, David Kremer, and Ismael Faro. Evolutionary discovery of bivariate bicycle codes with LLM-guided search. arXiv:2606.02418, 2026. URL https://arxiv.org/abs/2606.02418.
Bogdan Georgiev, Javier Gómez-Serrano, Terence Tao, and Adam Zsolt Wagner. Mathematical exploration and discovery at scale. arXiv preprint arXiv:2511.02864, 2025.
Markus Grassl. Entanglement-assisted quantum communication beating the quantum Singleton bound. Physical Review A, 103:L020601, 2021. doi: 10.1103/PhysRevA.103.L020601.
Markus Grassl. Bounds on the parameters of various types of codes. (http://www.codetables.de), 2026. Accessed on 17 July 2026; table data preserved in the accompanying artifact.
Markus Grassl, Felix Huber, and Andreas Winter. Entropic proofs of Singleton bounds for quantum error-correcting codes. arXiv:2010.07902v1, 2020. URL https://arxiv.org/abs/2010.07902v1. First public version, 15 October 2020; Theorem 7.
Markus Grassl, Felix Huber, and Andreas Winter. Entropic proofs of Singleton bounds for quantum error-correcting codes. IEEE Transactions on Information Theory, 68(6):3942–3950, 2022. doi: 10.1109/TIT.2022.3149291.
Luobin Guo and Ruihu Li. Linear Plotkin bound for entanglement-assisted quantum codes. Physical Review A, 87:032309, 2013. doi: 10.1103/PhysRevA.87.032309.
Robert Tjarko Lange, Yuki Imajuku, and Edoardo Cetin. ShinkaEvolve: Towards open-ended and sample-efficient program evolution. arXiv preprint arXiv:2509.19349, 2025.
Lean Project. Comparator. https://github.com/leanprover/comparator, 2026. Revision a4f696825c583ed8a5b4060d9a0faa5b882d365b.
Gaojun Luo, Martianus Frederic Ezerman, Markus Grassl, and San Ling. How much entanglement does a quantum code need? arXiv preprint arXiv:2207.05647, 2022. URL https://arxiv.org/abs/2207.05647v1. First public version, 12 July 2022; Table I and Section IV.
Caroline Mauron, Terry Farrelly, and Thomas M. Stace. Optimization of tensor network codes with reinforcement learning. arXiv preprint arXiv:2305.11470, 2023.
Alexander Novikov, Ngân Vũ, Marvin Eisenberger, Emilien Dupont, Po-Sen Huang, Adam Zsolt Wagner, Sergey Shirobokov, Borislav Kozlovskii, Francisco J. R. Ruiz, Abbas Mehrabian, M. Pawan Kumar, Abigail See, Swarat Chaudhuri, George Holland, Alex Davies, Sebastian Nowozin, Pushmeet Kohli, and Matej Balog. AlphaEvolve: A coding agent for scientific and algorithmic discovery. arXiv preprint arXiv:2506.13131, 2025.
Jan Olle, Remmy Zen, Matteo Puviani, and Florian Marquardt. Simultaneous discovery of quantum error correction codes and encoders with a noise-aware reinforcement learning agent. npj Quantum Information, 10:126, 2024.
Hendrik Poulsen Nautrup, Nicolas Delfosse, Vedran Dunjko, Hans J. Briegel, and Nicolai Friis. Optimizing quantum error correction codes with reinforcement learning. Quantum, 3:215, 2019. doi: 10.22331/q-2019-12-16-215.
Bernardino Romera-Paredes, Mohammadamin Barekatain, Alexander Novikov, Matej Balog, M. Pawan Kumar, Emilien Dupont, Francisco J. R. Ruiz, Jordan S. Ellenberg, Pengming Wang, Omar Fawzi, Pushmeet Kohli, and Alhussein Fawzi. Mathematical discoveries from program search with large language models. Nature, 625:468–475, 2024. doi: 10.1038/s41586-023-06924-6.
Asankhaya Sharma. OpenEvolve: an open-source evolutionary coding agent. https://github.com/algorithmsuperintelligence/openevolve, 2025.
Jeonghwan Shin, Jun Heo, and Todd A. Brun. Entanglement-assisted codeword stabilized quantum codes. Physical Review A, 84:062321, 2011. doi: 10.1103/PhysRevA.84.062321.
Vincent Paul Su, ChunJun Cao, Hong-Ye Hu, Yariv Yanay, Charles Tahan, and Brian Swingle. Discovery of optimal quantum error correcting codes via reinforcement learning. Physical Review Applied, 23:034048, 2025. doi: 10.1103/PhysRevApplied.23.034048.
Mark Webster and Dan Browne. Engineering quantum error correction codes using evolutionary algorithms. arXiv preprint arXiv:2409.13017, 2024. URL https://arxiv.org/abs/2409.13017.
Nathan Wetzler, Marijn J. H. Heule, and Warren A. Hunt. DRAT-trim: Efficient checking and trimming using expressive clausal proofs. In Theory and Applications of Satisfiability Testing (SAT), volume 8561 of LNCS, pp. 422–429, 2014.
Mark M. Wilde and Todd A. Brun. Optimal entanglement formulas for entanglement-assisted quantum coding. Physical Review A, 77:064302, 2008. doi: 10.1103/PhysRevA.77.064302.
Yang Yang, Zining Zhong, Jindong Li, Jiemin Wu, Kaishen Yuan, Wenshuo Chen, Menglin Yang, and Yutao Yue. TurboEvolve: Towards fast and robust LLM-driven program evolution. arXiv preprint arXiv:2604.18607, 2026.
A THE DOMAIN, THE TABLES, AND THE TARGETS
A.1 CODES AS SUBSPACES OF
For prime-power , our search uses -linear stabilizer EAQECCs. Stabilizer generators are products of Pauli operators defining error-detection constraints. Entanglement assistance permits non-commuting generators on the transmitted qudits by completing them with operators on the receiver's halves into commuting constraints. Their commutation relations determine the entanglement cost (Brun et al., 2006; Wilde & Brun, 2008). Nonadditive EAQECCs form a different search space (Shin et al., 2011).
We write vectors in bold, scalar coordinates and coefficients in italic, and subspaces with italic capitals such as . Modulo phase, a Pauli operator is represented by . For qubits, the pairs and represent , respectively. The symplectic product with is
and the symplectic weight counts positions with . For qubits, zero symplectic product means that the Pauli operators commute.
Let be the generator span and set . Its symplectic dual consists of vectors orthogonal to . For any subspace , define its radical by . Thus contains stabilizer operations with trivial logical action. Vectors in represent undetectable errors with nontrivial logical action. The code parameters are
Finite-field linear algebra gives the dual and radical. With , the dual has vectors, of which are non-radical; their minimum weight gives d. For Theorem 1,
is independent of length at fixed . At every binary ablation length, : 16 dual vectors and 12 non-radical vectors. The controlled evaluator computes the radical from the Gram kernel, avoiding enumeration of . The archived discovery helper instead enumerates both and , totaling vectors before filtering. Thus implementation and subspace dimensions determine cost, independently of the search representation. Parameters are recomputed from generators, not search-program reports.
To propagate constructions and exclusions across entanglement costs, we use the following form of the standard rule in Luo et al. (2022, Section IV, rule (4)). We include its symplectic argument for completeness.
Lemma 1. An -linear stabilizer EAQECC with parameters , and , gives an -linear stabilizer EAQECC with parameters and .
Sketch of proof. Set and , with . Choose . The form on is nondegenerate, since a vector of orthogonal to also lies in , hence in ; hence . For a codimension-one subspace , put and . Then and
The inclusion gives , while the parameter formulas give and . The ambient space is unchanged, so the length remains .
Repeating the operation gives distance at least for every . Conversely, nonexistence at cost and distance at least excludes every smaller cost at the same : any such code could be lifted to cost . This justifies the upward construction propagation and downward exclusion propagation in Figure 3. For the qutrit family, one step reduces the radical dimension from three to two and raises to . The 25 open reference cells have , all within Theorem 1's range; their listed upper bound makes each lifted lower bound exact.
A.2 THE CLOSED FORM, AND WHY IT WORKS
Early evolved constructions and (Appendix B.1) motivated the odd-length qubit family recorded in later tasks. The construction below generalizes it to prime powers. Its algebraic properties have also been independently rechecked with the Lean kernel; Appendix D gives the formal goal, proof and correspondence with this construction.
Fix a prime power , a length , and an enumeration of . On qudits take disjoint pairs and let be -type on pair with -values . Juxtaposition and powers denote concatenation of coordinate pairs; is empty, so the tail at contains only . Put
with for odd and for , and .
Theorem 1. Let be a prime power. For with , or with odd , one can choose so that is the normalizer side of an EAQECC. For , its entanglement cost is shared pairs below the threshold in the BDH expression; for , it meets that threshold.
Proof. The two vectors and the radical candidates are defined above. Write . Each has two nonzero components on a distinct pair of qudits, so these vectors are linearly independent. Moreover, and have equal components within each pair. Their symplectic products with therefore vanish. The radical candidates are mutually orthogonal, since they are all -type.
The symplectic product of the two vectors is the sum of the components of :
Here integers are interpreted in , and because its characteristic divides . If , at most one of the nonzero choices of makes ; choose any other nonzero value.
If and is odd, the only choice gives . For even binary , it gives : this particular construction loses its nondegenerate pair. Thus in every case covered by the theorem.
To establish independence of the full generating set, suppose . Since , the final qudit is outside the support of every . Its two components are , so . Independence of the radical candidates then implies for every . Consequently . The restriction of the symplectic form to , in this basis, has one nondegenerate block and a zero block. Hence its rank is two and .
Every vector outside this radical has the unique form
All tail qudits are nonzero: their components are , except for the final . On pair , the two coordinate pairs are
If , then and all qudits are nonzero. If , exactly one index satisfies , since enumerate all elements of the finite field , and . Every other pair has two nonzero components. On the exceptional pair, both components could vanish only if . This is impossible because : it equals 2 in odd characteristic and 1 in characteristic two. At most one qudit can therefore be zero, giving .
This lower bound is attained. Fix any index , choose , , , and for . The first qudit of pair is zero and its second has nonzero component . All other pairs have nonzero components, and the tail remains nonzero. This vector lies outside and has weight exactly .
Finally, set . Nondegeneracy of the ambient symplectic form gives and . Also , whose dimension is . The parameter formulas in Appendix A.1 now give
For these parameters, . Thus the BDH threshold exceeds c by q-2 shared pairs for and met with equality for q=2, as stated.
The auditor instantiated this construction and verifies every member exactly for and (claim families); the theorem covers every prime power.
A.3 REFERENCE BOUNDS AND TARGET SELECTION
The reference tables record, for each parameter cell , the listed lower and upper distance bounds and their construction sources. Our comparison uses the bounds accessed on 17 July 2026. The reference qubit table contains 563 entries whose distance bounds differ by one. The artifact preserves these table data and a second copy retrieved on 10 September 2026; both cover qubit codes with and qutrit codes with . The reproduction command uses the July reference data unless another retrieval date is explicitly selected. Schema checks reject malformed records before classifying improvements or previously unlisted cells.
An entry with distance interval closes when construction and nonexistence bounds meet. For , a verified code closes the listed gap. Cells absent from the reference tables are called record targets in the archive; absence alone does not establish novelty relative to all published constructions.
The familiar BDH Singleton expression is not a general bound in the large-distance regime (Grassl, 2021). Our principal family has , so we use the applicable generalized Singleton bounds of Grassl et al. (2022). The code, for example, uses four fewer pairs than substitution into the BDH expression would suggest; it does not contradict a valid upper bound.
For qubit () linear stabilizer EAQECCs with , the EA-Plotkin bound (Guo & Li, 2013) gives . It lowers 398 upper bounds in the reference qubit table. The qubit target list retains cells not excluded by this inequality, the applicable Singleton bounds, or our certified refutations.
A.4 SOURCES AND DATES OF PREVIOUS BOUNDS
The dates in Tables 1 and 2 refer to verified versions of public sources, not necessarily to the first discovery of each EAQECC parameter set. The reference qubit table fixes which lower and upper bounds we compare against. For , the underlying pure code is recorded by Calderbank et al. (1997); applying Theorem 7 of Grassl et al. (2020) with establishes the EAQECC lower bound by 15 October 2020. The elapsed time to 17 July 2026 is 5.8 years when rounded to one decimal.
The other eight qubit rows use the July 12, 2022 version of Luo et al. (2022). For odd , Table I contains . Quantum shortening gives , and two length extensions yield the previous bound. The two even-length rows arise similarly:
A fourth length extension of also gives the previous bound. For the row, the source's code gives
by four quantum shortenings, taking a subcode, and puncturing. The rules and source codes are both present in the 2022 version, giving 4.0 years between publication and our table access date. These derivations match the provenance strings in the archived EAQECC table. They establish that the baselines were available by the stated dates and still listed in 2026; they do not establish a complete chronology of intervening work.
For the displayed qutrit rows, Table II of the same 2022 source contains , , and . Quantum shortening of gives . Separately, increasing the dimension of the same source code using one additional shared pair gives (Luo et al., 2022, Section IV, rule (6)). Applying this dimension-increase rule to and then extending its length yields . The fourth baseline is the listed code itself. The rows have no prior entry in the archived tables and are not included in these historical comparisons.
B THE DISCOVERY PIPELINE IN DETAIL
B.1 CAMPAIGN CONFIGURATION AND VERIFICATION
Across the four discovery campaigns, Google Cloud Vertex AI's AlphaEvolve service sampled gemini-3.5-flash and gemini-3.1-pro-preview equally, with four generation and four evaluation workers. The four campaigns requested 120, 120, 80 and 80 programs; worker logs record 120, 121, 80 and 80 completed searches (401 total). Service counters are 121, 122, 81 and 81, each including an initial program with a supplied score. Completed searches determine the nominal allowance: s, or 26.73 h. Archived records report 1.87 M input and 3.74 M output tokens. Campaigns 1–2 share one task specification and campaigns 3–4 another (Appendix B.3).
Campaign 1 records 120 completed searches. The first new and codes precede completions 4 and 119, respectively: 0.267 h and 7.933 h of allocated search budget at 240 s per completed search. The logs do not provide elapsed discovery times. A later task records as an earlier construction without a first-hit budget. The record instead cites the closed-form theorem as its source. Initial and later tasks document the transition from finite constructions to the researcher-derived family. Algorithm 1 is a later retained program; the logs do not identify a surviving source for every early discovery. Section 5 uses separately generated, preserved programs and its own protocol.
For the complementary finite-field searches at , simulated annealing searches with fixed, disjoint Z-pair rows, each with entries . Moves resample up to three entries of or . The objective counts non-radical span vectors below distance by exact enumeration and Gram tests. Full-rank and checks prune proposals; Metropolis acceptance, cooling and restarts guide search. Before saving, a separate parameter calculation checks . All 23 archived matrices have this form and pass the independent Magma check. The artifact supplies the routines and code-to-record mappings.
The independent Magma check receives generators only and re-derives every quantity we report. Symplectic weight is obtained by embedding into , choosing . Then is an -basis, so the image is zero exactly when . Magma's own Weight () therefore counts nonzero coordinate pairs from the supplied generators.
Algorithm 1 summarizes the archived evolved construction program; its preserved source is available in the artifact. The generator matrix spans , and stores the lowest-cost proposal seen for target . The objective remains , with cost for an evaluator error. Here counts with ; it is an integer count. After return, the external evaluator instead maximizes for matching , adding for a newly achieved archive target. A signature mismatch scores ; the best proposal sets the program score. Both calls use the exact parameter routine; Magma supplies the separate implementation check. The campaign seed used fixed target weights . The evolved program uses normalized weights proportional to , initially with . After a repair attempt, PROGRESSBONUS uses the stored best cost :
If no proposal was recorded, take . A proposal with zero cost at its initial evaluation takes the earlier continue branch and skips this bonus update, exactly as in the source.
For a new attempt, the program samples one scalar and tests branches in order. If and a stored positive-cost proposal exists, it resumes from that matrix. Otherwise, CONSTRUCT uses a cyclic construction when and , a divisor-stride construction when and , or a block construction when . If none applies, or the resulting rank is not , it uses a random stabilizer. The construction branches and their validity checks remain subject to the same exact evaluator as the seed.
The cyclic branches use one or two nonzero base vectors. Row takes base and rotates it by bits, where is the number of bases. The ordinary cyclic branch sets ; the added branch samples a positive proper divisor of . The block branch extends the allowed dual dimension from 8 to 12 and block sizes from to .
During repair, MIXEDMOVE samples : if and , XOR two distinct rows; otherwise, if , rotate one row by qubits uniformly; otherwise, apply a weight-1-3 Pauli perturbation to one row. The rotation changes one generator, not all coordinates of the code. Rank-deficient proposals increment without evaluation. The inherited Metropolis loop cools by 0.995 to 0.1 and restarts after 1,500 attempts without an accepted strict improvement. It retains each target's best accepted proposal and returns at most 16. Figure 2 shows source changes, not their individual performance effects.
B.2 THE REFUTATION ENCODING
Encode using radical generators and hyperbolic pairs . Gram constraints enforce rank and pair independence. For qubits, all non-radical combinations must have weight at least . Gray-code chaining changes one generator contribution at a time; Sinz counters enforce weight. When , local symplectic maps and coordinate permutations make a nonzero -prefix. For its bits , the CNF sets , and adds for . These clauses allow every nonempty prefix in one CNF, without fixing its weight or making the other radical rows -only.
For qutrits, each field element is one-hot encoded. The radical basis is in reduced row echelon form, and modular state chains impose its Gram constraints. For , it suffices to test the four projective logical representatives , each shifted by every radical vector. Their nonzero scalar multiples have the same weights. At , pairwise clauses prevent a representative from vanishing at two coordinates. The following lemma permits an additional normalization.
Lemma 2 (Coordinate normalization). Let have radical with and . If every vector in has symplectic weight at least , then local symplectic transformations can make entirely -type.
Sketch of proof. By definition, . Let be , and for . Writing , the distance hypothesis gives
Rank-nullity therefore yields
Suppose . For every , . Hence the inclusion is an equality, since both kernels have dimension . Consequently
which implies , a contradiction. Thus for every . If , take . Otherwise write with , and set
In both cases and . For , . Therefore is symplectic and
The weight identity follows because every is invertible. Thus T gives the required local normalization.
The lemma also applies to binary targets with and . Adding all radical-X zero constraints to the seven binary exclusions gives seven further UNSAT instances with checked DRAT proofs. A feasible control remains SAT and its decoded generators pass independent parameter checks. The artifact preserves these normalized certificates alongside the original ones.
For , . Row reduction preserves the zero components, so the normalized encoding retains every possible code. Adding unit clauses gives 33,033 variables and 476,271 clauses. The lemma establishes completeness; DRAT certifies unsatisfiability. As a positive control, the same normalized encoder is SAT when fixed to the archived code. The artifact supplies the CNF, proof, normalization metadata and checks of the added clauses.
For certificate verification, the original CNFs are summarized in Table 3. Solver time measures a fresh UNSAT decision; for , it also includes proof generation. The check time uses DRAT-trim. Peak is the larger solver/checker resident set. Concurrent workloads preclude isolated timing comparisons. Execution conditions and logs are in the artifact.
Table 3: Original SAT refutation resources.
| Excluded code | Variables | Clauses | Proof (MiB) | Solver (s) | Check (s) | Peak (MiB) |
|---|---|---|---|---|---|---|
| [5, 2, 4; 3]]₂ | 414 | 1,275 | 0.03 | 0.02 | 0.46 | 48.2 |
| [6, 1, 5; 1]]₂ | 1,881 | 6,425 | 22.86 | 1.88 | 1.88 | 68.1 |
| [6, 2, 5; 4]]₂ | 498 | 1,540 | 0.04 | 0.02 | 0.04 | 48.1 |
| [7, 1, 6; 3]]₂ | 1,110 | 3,666 | 7.66 | 0.61 | 0.51 | 57.2 |
| [8, 1, 7; 3]]₂ | 2,513 | 8,609 | 172.27 | 16.94 | 13.58 | 195.0 |
| [9, 1, 8; 5]]₂ | 1,430 | 4,734 | 11.86 | 0.89 | 0.73 | 60.2 |
| [10, 1, 9; 5]]₂ | 3,145 | 10,793 | 234.91 | 66.33 | 58.76 | 491.0 |
| [11, 1, 10; 7]]₂ | 1,750 | 5,802 | 16.58 | 1.23 | 0.89 | 63.1 |
| [13, 1, 12; 8]]₂ | 4,093 | 14,069 | 43.48 | 3.46 | 2.48 | 81.3 |
| [10, 1, 9; 4]]₃ | 33,033 | 476,271 | 28.93 | 11.90 | 62.25 | 239.9 |
B.3 RESEARCHER PROPOSALS AND TASK SPECIFICATIONS
These structured summaries separate researcher input from the task given to the model. Shaded rows mark researcher proposals or findings. Full specifications are preserved verbatim in the artifact. The controlled study is separate from the discovery campaigns.
Discovery campaigns 1–2
Initial search
| Researcher proposal | Explore cyclic qubit shifts, constructive warm starts, GF(4)-additive constructions and coupled generator moves. Reuse structure between targets sharing (n, c). |
|---|---|
| Task to the model | Construct binary EAQECCs for 68 open table entries. Each target [[n, k, d; c]]₂ has listed lower distance bound d – 1 and upper bound d. |
| Exact feedback | Match the requested (k, c) and reach distance d. The evaluator checks the sym-plectic constraints and reports the number of nontrivial logical operators below the target distance. |
| Knowledge supplied | Stabilizer representation, evaluator access and construction directions. The family formula derived later was not supplied. |
Source: archived task specifications for campaigns 1 and 2.
Discovery campaigns 3–4
After generalization
| Researcher result | The recorded qubit constructions [[7, 1, 6; 4]]₂, [[9, 1, 8; 6]]₂ and [[11, 1, 10; 8]]₂ were generalized by researchers to the odd-length family [[n, 1, n – 1; n – 3]]₂. |
|---|---|
| Researcher proposal | Develop further constructions using other shift steps, quasi-cyclic orbits, multiple radical blocks, GF(4)-additive constructions, and extension, shortening or puncturing of the known family. |
| Task to the model | Search 329 qubit parameter targets with 5 ≤ n ≤ 13, including listed gaps and previously unlisted parameter cells. The task now explicitly includes the discovered qubit family. |
| Exact feedback | Use the same parameter and distance checks. The specification also permits constructing the smaller dual space and converting it to stabilizer generators for evaluation. |
Source: archived task specifications for campaigns 3 and 4.
Controlled study
Shared proposal for both policies
| Researcher proposal | Maintain and mutate a basis of throughout search. Convert each candidate to for exact evaluation. For the training targets, has only four basis vectors. |
|---|---|
| Task to the model | Implement search (target, max_evals) under a separate quota for each target and seed. Independent proposals and iterative evolution receive the same research suggestion. |
| Information withheld | No successful code matrix, family formula or working -side search program is supplied. There is no controller-provided initialization. |
Source: archived controlled-study task; this is separate from the discovery campaigns.
The controlled-study protocol and calibration are specified in Appendix C.1.
C RESEARCH-GUIDED ABLATION DETAILS
C.1 SHARED RESEARCH GUIDANCE AND EVALUATION CALIBRATION
The controlled study uses Gemini 3.5 Flash through Vertex generateContent, with a local program-development controller. It is distinct from the managed AlphaEvolve discovery campaigns. The two policies receive identical instructions to maintain and mutate throughout search and convert candidate bases to using binary nullspace and symplectic-swap helpers. The initial code is the same -side annealing callback in both policies. There is no protected initializer. Programs may change representations, objectives, mutation operators and restart schedules; the working -side calibration code, archived codes and family formula are not provided to either policy.
Before model generation, four calibration seeds compare the initial callback with an interface-adapted, researcher-assisted -side control at up to evaluator calls. The controls depend on the call limit only through the remaining allowance, so their first-hit records give success curves at 1,000, 3,000, 10,000, 30,000 and 100,000 calls. At , the rule selects the smallest grid budget with initial success between 0.1 and 0.5, control success at least 0.5 and a difference of at least 0.25. A second cell may have zero initial success if the control succeeds in at least half the executions. The selected budget is 10,000: initial/control success is 1/4 versus 2/4 at , and 0/4 versus 2/4 at . Calibration is a test of whether the evaluator can reward a useful edit, not a measurement of evolutionary contribution. Independently verified codes establish feasibility at all training and transfer parameters before generation.
C.2 GENERATION, INTERRUPTION AND SELECTION
Four blocks each plan 12 proposals per policy. Independent proposals receive the fixed initial source and its fixed training feedback. Iterative evolution receives the best-so-far source and the latest attempt, including rejected attempts, with their training feedback. Training uses two fixed execution seeds at . Each proposal is ranked lexicographically by mean normalized success-curve area, success fraction and clipped distance ratio; earlier proposals break remaining ties. For first-hit call under allowance , the primary utility is
This equals the normalized integral of the success indicator over the available evaluator-call budget. The initial program remains eligible for selection. Proposal counts match; token and execution costs need not.
The planned 12-proposal runs received 58 model responses before unavailable responses interrupted generation. Before any validation or test observations, a completion-only rule retained the longest fully received prefix shared by every policy and block: seven proposals each, 56 total. The two additional responses and all request records are preserved separately. Earlier exploratory studies informed calibration and guidance; their measurements are not pooled into this comparison.
For the included 28 requests per policy, recorded input/output/reasoning token totals are 50,344/22,891/22,780 for independent proposals and 86,501/26,145/32,128 for iterative evolution. Mean request latency is 8.77 s and 11.93 s, respectively. The additional source and feedback in iterative prompts therefore incur greater model usage despite equal proposal counts. Receipt-level accounting is preserved in the artifact; service latency is separate from search time.
After generation ends, four new validation seeds at the training parameters select among each policy/block's three training-best distinct programs, using the same metric order and then training rank. The eight selected programs are distinct. Test uses eight further seeds at each training parameter and 10,000 calls per execution. The separate length transfer uses , four seeds and 30,000 calls. Transfer measurements never enter selection. All seed lists, requests, source hashes, parent relationships, candidate outcomes and selections are retained in experiments/hitl_ablation/.
C.3 COMPLETE POLICY OUTCOMES
Table 4 reports the original test cohort and the 32-seed repeat of the same validation-selected programs. Displayed values are rounded; differences use unrounded values. The new seeds were fixed before execution and did not change any program or selection. The original paired mean curve-area difference is +0.1188 (two positive blocks), versus +0.0044 in the repeat (one positive block). Descriptive two-sided sign-flip values over the four block differences are 0.50 and 1.00. These calculations use four generation blocks; execution seeds within one program quantify its run-to-run variability. Excluding the block affected by later unavailable responses gives an original mean difference of +0.0819. All included proposals precede those responses.
| Block | Original /16 | Repeat /64 | Curve-area difference | |||
|---|---|---|---|---|---|---|
| Independent | Iterative | Independent | Iterative | Original | Repeat | |
| 1 | 4 | 3 | 38 | 7 | -0.114 | -0.201 |
| 2 | 4 | 10 | 27 | 26 | +0.229 | -0.014 |
| 3 | 5 | 16 | 34 | 49 | +0.395 | +0.287 |
| 4 | 8 | 9 | 36 | 33 | -0.036 | -0.055 |
| Total/mean | 21/64 | 38/64 | 135/256 | 115/256 | +0.119 | +0.004 |
Table 4: Test outcomes by generation block.
Iterative selections are proposals 2, 1, 3 and 1 in blocks 1–4, respectively (proposal numbers start at one). Thus two selections are first proposals and two incorporate feedback from earlier generated programs. The classical -side control uses the shared proposed representation with the preserved annealing objective, moves and restart policy; its source is unchanged from calibration.
The repeat covers 32 new seeds at each of , at 10,000 calls for the first two lengths and 30,000 for the latter two. It includes all eight selected programs, both fixed controls, and the first two programs in the block-3 iterative lineage. Together with 24 executions of the classical control on the original test and longer-code seeds, this gives 1,560 executions and 545 independently verified successful code records, with no process errors. All records, program hashes and the frozen protocol are in experiments/hitl_followup/.
At , the repeat gives 96/128 and 39/128 successes for independent proposals, versus 81/128 and 34/128 for iterative evolution. The classical control gives 26/32 and 10/32, and the initial program 1/32 and 0/32. Figure 5 shows the longer-code curves; the artifact also retains the complete four-length plot.


Figure 5: Longer-code replay on fresh execution seeds.
Helper computations remain outside the evaluator-call count but inside the common resource limits. Each target/seed runs in a separate sandbox with 120/125 s soft/hard CPU limits, 135 s wall time and 1 GiB resident memory. Every explicit or returned-candidate verification consumes the same call quota. Execution times and model request latencies are recorded separately in the artifact.
The artifact audit reconstructs the original proposal inputs and parent relationships, checks validation selections and independently verifies saved code records. The complete inputs and replay commands are available in the artifact.
C.4 PROSPECTIVE GENERATION REPLICATION
The new cohort fixes eight paired blocks and seven proposal slots per policy before generation. Model, shared task, starting program, representation helpers, ranking and validation selection match the original study. New model seeds and disjoint training, validation, test and longer-code execution seeds separate the cohorts. Each block uses two training seeds, four validation seeds and 32 held-out seeds per length. The test budget is 10,000 calls at ; longer-code performance at 30,000 calls is secondary.
Of 112 allocated slots, 111 return programs: 56 independent and 55 iterative. One response in block 8 is unavailable. Before validation or testing, the recorded rule retained all eight blocks, using received programs without replacing the missing proposal. Subsequent iterative requests use the most recent received source and feedback. The seven fully received paired blocks provide a sensitivity analysis. No program is reselected using test or longer-code outcomes.
Table 5 reports all blocks; each longer-length entry has 32 executions per policy and block. The mean primary curve-area difference is +0.0987; five differences are positive and the descriptive two-sided sign-flip value is . On the seven complete blocks, the mean difference is +0.1504. These are eight paired generation observations, not 512 independent generation trials.
| Block | Independent Test successes /64 | Iterative | area | Independent / iterative | |
|---|---|---|---|---|---|
| 1 | 25 | 19 | -0.063 | 3 / 5 | 0 / 2 |
| 2 | 25 | 30 | +0.007 | 3 / 10 | 0 / 5 |
| 3 | 24 | 35 | -0.001 | 2 / 15 | 1 / 4 |
| 4 | 39 | 45 | +0.021 | 17 / 16 | 5 / 7 |
| 5 | 26 | 64 | +0.578 | 6 / 32 | 2 / 32 |
| 6 | 34 | 40 | +0.095 | 15 / 8 | 0 / 3 |
| 7 | 25 | 62 | +0.417 | 3 / 32 | 0 / 28 |
| 8 | 25 | 2 | -0.264 | 1 / 0 | 0 / 0 |
| Total/mean | 223/512 | 297/512 | +0.099 | 50 / 118 | 8 / 81 |
Table 5: New generation blocks.
All 16 selected sources are distinct. Source inspection finds sustained search in , with exact distance feedback obtained through the common charged evaluator. Rank checks and basis conversions do not compute distance privately. One program performs uncharged basis-row additions that leave the subspace unchanged; other proposals evaluate their candidate subspaces. Reads of the incumbent before search return no matrix because controller initialization is disabled. The artifact audit reconstructs all 111 prompts and parent choices, reproduces validation selection, checks evaluation quotas and independently verifies saved codes.
The received independent requests use 100,632 input, 41,801 output and 58,067 reported reasoning tokens; iterative requests use 165,819, 49,296 and 64,426, respectively. Equal proposal allocations therefore do not imply equal token costs. Full transport records and the missing-response rule are preserved in the artifact.
For Figure 4, the original initial program and classical -side control are also run on these execution seeds. This fixed-control replay was added after the new policy results were available; neither control was modified, tuned or selected using them. Each control has 32 runs per length, and is separate from the eight paired policy observations. These runs contextualize the success curves; the prespecified policy endpoint and its analysis remain unchanged.
C.5 PRESERVED PROGRAM AND GENERALIZATION TO LONGER CODES
In the original four-block cohort, the program selected in block 3 is b02_evolution_g02, whose preserved parent is b02_evolution_g01; generation indices start at zero. The parent already searches and penalizes distance shortfall. The child increases the ebit-mismatch weight from 5,000 to 10,000 and the offending weight from 1 to 100. It also mixes row replacement, Pauli perturbations and basis-row mixing, scales mutation size with length, and restores a saved local best with a capped temperature adjustment after stagnation. Tinted expressions in Algorithm 2 mark these edits relative to this immediate parent; the inherited -side representation and distance-shortfall term are not tinted. These changes are observed in the preserved source, rather than inferred from performance alone. The repeat below measures the combined changes in this final step.
The program cost in Algorithm 2 is
where , or if distance is unavailable. If the offending count or entanglement cost is missing, the score is . These definitions match the preserved source.
In Algorithm 2, a random Pauli perturbation has weight uniformly sampled from . MIXEDMOVE chooses a row uniformly: with probability 0.3 it replaces the row by such a perturbation, with probability 0.3 it XORs the perturbation into the row, and otherwise it samples a second row. If that row is different, it XORs the two rows and, with probability 0.5, adds a Pauli perturbation. A rank-deficient proposal increments and skips evaluation. Otherwise, resets only on an accepted improvement over the current cost, and increments on all other moves. The counter resets on a new restart-local best and increments on other evaluated moves. At , the program restores that best, sets and applies . This adjustment can lower a temperature still above 30; it is not always a temperature increase. The source and its budget behavior remain unchanged.
Algorithm 2 Evolved search in the symplectic dual.
Require: target , exact-evaluation budget offending +
1: 2: while budget remains do 3: a random independent list of Pauli vectors 4: 5: 6: while and budget remains do 7: 8: 9: if rank then ; continue 10: 11: if or then 12: 13: if then 14: 15: else 16: 17: end if 18: if then else 19: else 20: 21: end if 22: if then 23: 24: 25: end if 26: end while 27: end while 28: return the evaluator's best verified record, if any
Shading: changes from the immediate parent; exact definitions in Appendix C.5.
▷ Increase penalties for entanglement mismatch and low-weight violations.
▷ Retain the best state within each restart.
▷ Add row mixing and allow larger Pauli changes at longer lengths.
▷ On stagnation, return to the best state and adjust the temperature.
The original child achieves 16/16 primary-test successes and 3/4 at each longer length. Its successful longer-code executions use 3,260–9,755 calls at and 7,125–16,756 at . Table 6 reports every preserved lineage stage on the 32 new seeds; the original validation selection is unchanged. Between the first proposal and parent, the only functional search change is the distance-shortfall penalty. Between parent and selected child, several policies change together. This lineage was chosen for diagnosis after its original performance, so the table describes that program's development separately from the four-block policy comparison.
| Program | ||||
|---|---|---|---|---|
| First proposal | 27/32 | 19/32 | 13/32 | 3/32 |
| Parent: add distance penalty | 28/32 | 23/32 | 29/32 | 28/32 |
| Validation-selected child | 30/32 | 19/32 | 30/32 | 20/32 |
Table 6: Preserved lineage on fresh execution seeds.
All eight selected programs implement sustained -side repair. Each passes candidate matrices to the common evaluator throughout search; none substitutes a private distance test that filters solutions before their first charged evaluation.
D LEAN VERIFICATION OF THEOREM 1
The formal artifact verifies the algebraic construction underlying Theorem 1. Its shared definitions import Mathlib; the construction proof is a separate module. The challenge imports only those definitions, and the submitted solution imports the construction proof. The sources and pinned project are in the artifact.
D.1 EXACT GOAL AND MATHEMATICAL INTERPRETATION
Use the field and enumeration from Appendix A.2. Lean denotes this field by and its cardinality by Fintype.card , which equals . The natural number tail is ; hence . The disjunction below specifies the same and odd-length binary cases as Theorem 1. Within namespace EAQECCFamily.Comparator, the submitted declaration is:
theorem theorem1_exact_goal {F : Type u} [Field F] [Fintype F] [DecidableEq F] {tail : N} [NeZero tail] (hcase : 3 ≤ Fintype.card F V (Fintype.card F = 2 ∧ Odd (2 * Fintype.card F + tail)) ) : ∃ z2 lam : F, lam ≠ 0 ∧ 1 + z2 ≠ 0 ∧ Nonempty (NormalizerSideCertificate F tail z2 lam) := by exact theorem1_exact hcase
Lean represents the radical coefficients by the function space
A function assigns one scalar to each field element; need not be linear. Addition and scalar multiplication are pointwise, and for . The enumeration identifies with the vector . This evaluation map is a linear isomorphism, so . Thus Lean's ClosedCoeff type is . Write and , matching the coefficients of in Appendix A.2. Relabeling the paired coordinates by , the linear map is
where and for . Thus in the formal coordinate order. Let , and , where is the zero function. The certificate constructed by theorem1_exact proves:
(1) encodeInjective and deltaNonzero: is injective and .
(2) gramFormula and radicaliff: for all and ,
(3) normalizerFinrank and radicalFinrank: and .
(4) distanceLower and distanceAttained:
Injectivity identifies with the -dimensional radical of . Taking gives . The standard stabilizer correspondence (Appendix A.1) therefore yields , and . These are the code parameters recorded by the certificate; the proof-bearing fields above certify their underlying symplectic construction.
For the coordinate convention, Lean's and are our and . Its tail puts first; Appendix A.2 puts it last. This permutation preserves the symplectic product and weight. The proof chooses in characteristic two and otherwise.
Figure 6 groups the certificate's mathematical dependencies. The dashed arrow is the standard stabilizer interpretation used in the paper; it is separate from the Lean-checked algebraic fields.

Figure 6: Dependencies of the algebraic certificate.
D.2 SOLUTION AND FORMAL VERIFICATION
The solution above invokes theorem1_exact. Its proof body is reproduced verbatim below. For , it chooses outside two forbidden values. In the binary branch, odd length permits . Both branches invoke theorem1_closed_form, which assembles the certificate from the injectivity, Gram, radical, dimension and distance lemmas in the same source module.
let z2 : F := if (2 : F) = 0 then 0 else 1
have hz2 : 1 + z2 \neq 0 := by
dsimp [z2]
split_ifs with htwo
. simp
. simpa [one_add_one_eq_two] using htwo
rcases hcase with hlarge | {hcard, hodd}
obtain {lam, hlam, hδbase} := exists_nonzero_add_ne_zero hlarge
(( (2 * Fintype.card F + tail - 1 : N) : F ))
have hδ : closedDelta (tail := tail) z2 lam \neq 0 := by
rw [closedDelta_eq_cast_length_sub_one_add]
exact hδbase
exact {z2, lam, hlam, hz2, theorem1_closed_form z2 lam hlam hz2 hδ}
let lam : F := 1
have hlam : lam \neq 0 := one_ne_zero
have hδ : closedDelta (tail := tail) z2 lam \neq 0 := by
rw [closedDelta_eq_cast_length_sub_one_add]
exact binary_odd_delta_ne_zero hcard hodd
exact {z2, lam, hlam, hz2, theorem1_closed_form z2 lam hlam hz2 hδ}
The proof and submitted solution use only propext, Quot.sound and Classical.choice. Comparator confirms that the solution proves the specified goal under this axiom policy, and Lean's kernel accepts the proof (Lean Project, 2026). The artifact provides the pinned project and reproducible verification records.