← Back to Paper Radar

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

An-Di Gu, Alek H. Kemeny, S. Yelin, M. Lukin
2026

Reading guide · Based on sections of the original paper

The authors present an evolutionary search in which an LLM rewrites programs that generate quantum circuits and a classical simulator checks and scores each candidate, and they report that the search found reversible subroutines cheaper than prior constructions across eight compilation tasks.

Why read this

This is useful for ML practitioners building LLM-driven program-discovery loops with a verifiable objective, and for quantum-algorithm researchers who want concrete, cheaper reversible subroutines.

What the authors found

  • The authors report that in seven of eight tasks the discovered circuit uses fewer Toffolis and fewer qubits than the corresponding baseline. The tasks span DQI decoding, numerical functions, chemistry, lattice gauge theory and modular inversion. Where a baseline had free parameters, the authors tuned them to minimize its Toffoli×qubit (TQ) cost. Discussion and outlook
  • For Hermitian-code decoding in DQI, the reported circuit uses 930,000 Toffolis and 2,395 qubits. Against the Feng–Rao baseline, that is 110× fewer Toffolis, 81× fewer qubits and a 9,100× lower TQ cost. On 100,000 random inputs, 30 gave the wrong sign. Striped phase scan.
  • For Reed–Solomon decoding in DQI, measured against the Khattar et al. decoder, the authors report 440,000 Toffolis and 1,837 qubits. That is 12× fewer Toffolis but only 5.2% fewer qubits. Seven of 100,000 full-circuit tests gave the wrong sign. Precomputed reciprocal.

Main limitation

Many of the gains come from letting circuits fail on rare inputs drawn from a stated distribution. These failure rates are estimated by sampling, not proven, so the results are not exact on every input. Separately, the TQ objective weights time and space equally for simplicity, and the authors note the right weighting depends on hardware. Circuit model and validity

Where to start

Evolutionary search · See how candidates are encoded as Python circuit-building programs, how OpenEvolve and the LLM propose architecture families, and why progress is allowed to be non-monotonic.

Abstract

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.

Generated automatically from paper sections on 2026-11-28.