English

Automated Quantum Algorithm Design using a Domain-Specific Language

Quantum Physics 2025-11-14 v3

Abstract

We present a computational method to automatically design the n-qubit realisations of quantum algorithms. Our approach leverages a domain-specific language (DSL) that enables the construction of quantum circuits via modular building blocks, making it well-suited for evolutionary search. In this DSL quantum circuits are abstracted beyond the usual gate-sequence description and scale automatically to any problem size. This enables us to learn the algorithm structure rather than a specific unitary implementation. We demonstrate our method by automatically designing three known quantum algorithms-the Quantum Fourier Transform, the Deutsch-Jozsa algorithm, and Grover's search. Remarkably, we were able to learn the general implementation of each algorithm by considering examples of circuits containing at most 5-qubits. Our method proves robust, as it maintains performance across increasingly large search spaces. Convergence to the relevant algorithm is achieved with high probability and with moderate computational resources.

Keywords

Cite

@article{arxiv.2503.08449,
  title  = {Automated Quantum Algorithm Design using a Domain-Specific Language},
  author = {Amy Rouillard and Matt Lourens and Francesco Petruccione},
  journal= {arXiv preprint arXiv:2503.08449},
  year   = {2025}
}
R2 v1 2026-06-28T22:15:53.954Z