Automated Quantum Algorithm Design using a Domain-Specific Language
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.
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}
}