Predicting Good Quantum Circuit Compilation Options

Nils Quetschlich, Lukas Burgholzer, Robert Wille
10/14/2022
44 citations
quant-phcs.ET

Official code: munich-quantum-toolkit/predictor (90 stars, Python, MIT, last commit 2026-11-15).

Abstract

Any potential application of quantum computing, once encoded as a quantum circuit, needs to be compiled in order to be executed on a quantum computer. Deciding which qubit technology, which device, which compiler, and which corresponding settings are best for the considered problem -- according to a measure of goodness -- requires expert knowledge and is overwhelming for end-users from different domains trying to use quantum computing to their advantage.

Show full abstract

In this work, we treat the problem as a statistical classification task and explore the utilization of supervised machine learning techniques to optimize the compilation of quantum circuits. Based on that, we propose a framework that, given a quantum circuit, predicts the best combination of these options and, therefore, automatically makes these decisions for end-users. Experimental evaluations show that, considering a prototypical setting with 3000 quantum circuits, the proposed framework yields promising results: for more than three quarters of all unseen test circuits, the best combination of compilation options is determined. Moreover, for more than 95% of the circuits, a combination of compilation options within the top-three is determined -- while the median compilation time is reduced by more than one order of magnitude. Furthermore, the resulting methodology not only provides end-users with a prediction of the best compilation options, but also provides means to extract explicit knowledge from the machine learning technique. This knowledge helps in two ways: it lays the foundation for further applications of machine learning in this domain and, also, allows one to quickly verify whether a machine learning algorithm is reasonably trained. The corresponding framework and the pre-trained classifier are publicly available on GitHub (https://github.com/cda-tum/MQTPredictor) as part of the Munich Quantum Toolkit (MQT).

View on arXivView PDF

Code Implementations(1)

MIT

MQT Predictor - A Tool for Automatic Device Selection with Device-Specific Circuit Compilation for Quantum Computing

9023PythonMar 8, 20222 weeks agoMIT
mqtqiskitquantum-compilationreinforcement-learningsupervised-machine-learning+1 more

Similar Papers

Cite this paper

@article{quetschlich2022predicting,
  title  = {Predicting Good Quantum Circuit Compilation Options},
  author = {Nils Quetschlich and Lukas Burgholzer and Robert Wille},
  year   = {2022},
  eprint = {2210.08027},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.08027}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.08027.svg)](https://codeofpaper.com/paper/2210.08027)

Discussion