How AI Is Writing Better Code for Quantum Computers
Original paper: Discovering state-of-the-art quantum circuits with large language models
"Think of it like a master chef and a strict food critic playing a game of invention. The AI chef proposes wild recipe combinations, while the critic immediately tastes-tests them in a lab, keeping only the absolute best creations to inspire the next round."
Quantum computers are notoriously delicate and limited on resources. By letting AI discover more efficient shortcuts, we can run complex simulations for medicine, chemistry, and cryptography on smaller, earlier versions of quantum hardware.
- Large language models teamed up with strict algorithmic evaluators.
- The system outperformed human experts in seven out of eight benchmark tasks.
- It unlocked a brand-new architecture for advanced mathematical operations.
📑 Original arXiv Technical 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.
✍️ Are you an author of this paper? Add code/demo links or a note
Help readers explore your work — share your official GitHub repo, Hugging Face weights, affiliation, or a clarification note for our editorial review queue.