A preprint maps 699 magic-state factory classes, including 564 previously unknown protocols, by pairing language-model agents with integer programming and independent circuit checks
Magic-state factories have long carried a heavy cost: some fault-tolerant designs have projected that they could consume as much as 90% of a quantum machine's physical qubits and runtime. The share depends on the architecture, algorithm, code distance and resource-accounting method. In a separate full-stack accounting analysis, IonQ reports magic-state factories at 6-26% of total spacetime in particular implementations, with encoded memory and circuit execution accounting for the remaining 74-94%. IonQ also reports that operational estimates for producing a magic state have fallen by two to three orders of magnitude compared with earlier estimates. A new search framework targets factory overhead by finding candidate protocols beyond the small cases that exhaustive classification could handle.
Searching the Symmetries
Researchers from IBM Quantum and MIT worked with the Joint Center for Quantum Information and Computer Science (QuICS / NIST / UMD) on a neuro-symbolic approach. Their preprint, Symmetry and AI-assisted discovery of magic-state factories, reports 699 factory classes, including 564 protocols the team describes as previously unknown.
The search relies on a mathematical result: achieving code distance d ≥ 3 is equivalent to choosing nonzero, pairwise distinct syndromes in a binary-matrix representation. That reformulation made larger searches tractable after exhaustive classification had stalled at input sizes of n ≤ 54.
Agents and Verification
Language-model agents propose targeted subgroup symmetry orbits. An integer-programming solver then builds candidate circuit matrices, while a separate verification engine checks gate identities and code distances. A reviewing agent examines solver logs and redirects later search rounds toward geometries that appear more productive.
Magic-state distillation is a standard route in many fault-tolerant architectures for implementing non-Clifford operations such as the T gate. Noisy |T⟩ states are processed using Clifford operations and measurements to produce fewer, higher-fidelity states for gate injection. Origin Quantum's technical overview notes that a conventional distillation pipeline may use hundreds or thousands of physical qubits to supply a single high-fidelity T gate; the overhead varies with the target fidelity, code distance, architecture and algorithm.
The output extends beyond pure-T factories. The team also reports protocols for entangled outputs including CCZ⊗2 and T ⊗ CCZ⊗4, which can lower the gate depth required during algorithm synthesis. The paper describes these as low-resource constructions, but the supplied results do not give specific resource counts for individual factories. As a broader resource-accounting example, IonQ describes a compiled algorithm using about 39 million Toffoli gates and 11,000 T gates, with Toffoli execution estimated at 13.3 days and the full computation at 25.7 days.
Protocols Not Processors
This is a search and circuit-verification result, not a demonstration of a quantum processor running the factories. Resource estimates based on the circuits will still depend on the architecture and assumptions used to implement them. A separate IBM hardware study used quantum sampling for a materials problem; the present work instead maps candidate distillation protocols. A separate approach, known as magic-state cultivation, has also been proposed as an alternative or complement to dedicated distillation factories. IonQ describes work by Craig Gidney, Michael Shutty and Cody Jones that aims to produce high-fidelity T states with physical resources comparable to a lattice-surgery CNOT.
The authors released verified circuits in an open-access repository, indexed with Clifford correction rules and matrix export formats. The paper is available on arXiv, alongside the GitHub Repository and the interactive Magic State Factory Catalog. For evaluating any factory in a fault-tolerant computer, the relevant accounting extends beyond the number of distilled states to include the circuit's depth, throughput, fidelity and total spacetime, as illustrated in IonQ's resource analysis. An overview of the conventional distillation pipeline is provided by Origin Quantum.