# Discovering state-of-the-art quantum circuits with large language models

arXiv: https://arxiv.org/abs/2610.22367 · HTML: https://mlsanity.com/paper/2610.22367/

## Key facts

- Cited by 5 papers in the map (data through 24 Nov 2026).
- Builds on 7 of its 66 references that are in the map.
- Submitted 15 Oct 2026.

## Placed in

- Mechanistic interpretability

## Builds on (most cited first, 7 of 7)

- [AlphaEvolve: A coding agent for scientific and algorithmic discovery](https://mlsanity.com/paper/2506.13131/) (2025)
- [Illuminating search spaces by mapping elites](https://mlsanity.com/paper/1504.04909/) (2015)
- [Assessing requirements to scale to practical quantum advantage](https://mlsanity.com/paper/2211.07629/) (2022)
- [OmniQEC: discovering practical quantum error-correcting codes by an AI scientist](https://mlsanity.com/paper/2607.25865/) (2026)
- [Quantum Circuit Generation via test-time learning with large language models](https://mlsanity.com/paper/2602.03466/) (2026)
- [Securing Elliptic Curve Cryptocurrencies against Quantum Vulnerabilities: Resource Estimates and Mitigations](https://mlsanity.com/paper/2603.28846/) (2026)
- [Quantum Algorithm for Elliptic Curve Discrete Logarithms with Space-Efficient Point Addition](https://mlsanity.com/paper/2607.13816/) (2026)

## Built on by (most cited first, 5 of 5)

- [Reimagining computational quantum research with AI scientists](https://mlsanity.com/paper/2611.02833/) (2026)
- [Turing LLM Post-Training: Calibrated Distillation and Efficient Dynamic-MoE Execution](https://mlsanity.com/paper/2610.39876/) (2026)
- [Discovering formally verified quantum programs with AI](https://mlsanity.com/paper/2611.09822/) (2026)
- [QSim-Arena: an evolving developer for quantum simulation advantage](https://mlsanity.com/paper/2611.15000/) (2026)
- [Agentic AI for Discovering Fault-Tolerant Quantum Circuits](https://mlsanity.com/paper/2611.18504/) (2026)

## Abstract (arXiv)

Significant efforts are currently being directed toward the implementation of large-scale quantum information processors, but realizing useful quantum advantage also requires the development of efficient quantum algorithms. While for many practical problems the dominant resource costs are associated with a small set of computational primitives, optimizing them in the quantum setting presents unique challenges, including a reversibility constraint absent from ordinary classical computation. Here we introduce an evolutionary framework in which large language models (LLMs) propose circuit designs and an independent evaluator verifies and scores them. We apply this framework to tasks spanning numerical computation, chemistry, optimization, quantum simulation, and number theory. In seven of the eight tasks, the discovered circuits significantly reduce both Toffoli and qubit counts relative to the state of the art. In the eighth, the search discovers a new reversible architecture for prime-field modular inversion. By handling reversibility differently, the architecture makes divsteps -- a classical algorithm previously impractical for reversible integer arithmetic -- viable and substantially improves the Toffoli-qubit trade-off for modular inversion. These results open the door for evaluator-guided LLM co-design of new algorithmic structures for quantum computation.
