The practical utility of quantum computers in the noisy intermediate scale era depends on error mitigation to preserve computational state fidelity. The search for the ideal compilation configuration, which balances the structural optimization level and the number of statistical shots, represents a problem of high computational cost due to the need for exhaustive empirical evaluations. This work proposes a predictive recommendation system based on Machine Learning to determine the best compilation configuration without requiring prior physical simulations. Using a dataset of 50000 circuits simulated across 28 distinct scenarios, the Decision Tree, Random Forest, and XGBoost models were trained to predict quantum fidelity. The experiments demonstrate that ensemble architectures achieved a Top-3 accuracy of 88.7%, successfully identifying the optimal physical configuration among the 28 possible scenarios in nearly 90% of the cases.
The practical utility of quantum computers in the noisy intermediate scale era depends on error mitigation to preserve computational state fidelity. The search for the ideal compilation configuration, which balances the structural optimization level and the number of statistical shots, represents a problem of high computational cost due to the need for exhaustive empirical evaluations. This work proposes a predictive recommendation system based on Machine Learning to determine the best compilation configuration without requiring prior physical simulations. Using a dataset of 50000 circuits simulated across 28 distinct scenarios, the Decision Tree, Random Forest, and XGBoost models were trained to predict quantum fidelity. The experiments demonstrate that ensemble architectures achieved a Top-3 accuracy of 88.7%, successfully identifying the optimal physical configuration among the 28 possible scenarios in nearly 90% of the cases.
Hybridizing machine learning (ML) with quantum computing has become an attractive strategy to increase computational power on Noisy Intermediate Scale Quantum (NISQ) devices. Although these can be potentially quantum advantage devices, their qubit numbers and noise are bounded and there are challenges when it comes to practical quantum circuit realization. This work concentrates on the creation of optimized quantum circuits via ML-based strategies, to enhance the performance of the circuits, to reduce the error rate and to accommodate the particular noise profile of the hardware of NISQ devices. The resulting suboptimal mappings with little or no consideration of noise and hardware topology in traditional quantum compilers can ruin the fidelity of quantum algorithm. Leveraging machine learning, and specifically reinforcement and supervised learning methods, our method learns to optimize compilation strategy for specific quantum hardware architecture. The paper proposes a framework that uses machine learning models to predict qubit mappings, gate decompositions, and transpilation paths that minimize gate depth and error accumulation. We also investigate transfer learning methods for propagating the learned compilation strategies to novel NISQ machines. Such methods are empirically validated on both simulated and real quantum hardware backends, providing evidence of circuit depth, execution time and error reductions. The results show that ML-assisted compilation can achieve better success probabilities for benchmark quantum algorithms like VQE and QAOA than conventional compilers. Furthermore, the work examines the interpretability of ML models providing hardware-aware optimization recommendations and understanding the noise patterns and methods of error correction. Our work highlights the key role of ML for transferring between theoretical quantum algorithms and their practical NISQ implementations. This integration boosts the immediate applicability of existing quantum devices and provides a basis for adaptive and scalable likelihood-based compilation for the era of fault-tolerant quantum computation. Our results motivate further investigation of hybrid classical-quantum workflows, in which ML iteratively improves compilation in accordance with changing hardware noise and capabilities. By improving quantum circuit compilation onNISQ computers, this work is taking steps toward the realization of quantum advantage in application scenarios such as optimization, cryptography, and quantum simulation without needing to wait for fully fault-tolerant large-scale quantum computers.
In recent years, quantum kernel methods have shown promising applications on near-term quantum devices. However, selecting an appropriate encoding circuit for a given dataset requires costly evaluation of multiple candidates, formulated as a meta-learning problem. In this paper, we propose an automated recommender that utilizes the intrinsic characteristics of datasets to predict the optimal circuit without any quantum evaluation. Nine candidates are assessed alongside 24 classical complexity metrics serving as features, evaluated through two training approaches with four configurations, along with 14 machine learning models. Both approaches achieve Top-3 accuracy of up to 85.7% in identifying the best-performing encoding circuit, and demonstrate that classical data complexity metrics provide sufficient predictive signal for circuit selection.
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. 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).
Selecting an effective quantum compiler configuration requires coordinated decisions over both hardware targets and compiler settings, with the ultimate goal of improving circuit execution fidelity. Existing SOTA approaches typically decompose this problem into two sequential stages: a device is chosen first, after which compiler options are tuned on that device through RL-based search. This bottom-up strategy can be fundamentally limited by its initial device decision, since a poorly matched backend may constrain the best fidelity achievable regardless of how effectively later compiler options are optimized. In contrast to classical compiler tuning, where the search space is often prohibitively large, the configuration space of quantum compilers remains manageable enough to support exhaustive search. Consequently, rather than repeatedly searching from candidate configurations, one can derive reusable configuration knowledge from offline oracle results and apply it directly to new circuits.
In this paper, we introduce a top-down configuration-selection paradigm and build QuOPTBench, an exhaustively searched benchmark containing oracle configurations for 268 quantum circuits. We first study whether LLMs can directly infer suitable configurations and evaluate ten representative LLMs. The results reveal that vanilla LLMs remain far from the oracle. We then employ an LLM to extract transferable rules from sampled circuits governing configuration selection. Using these rules together with predictors trained on the enumerated configuration data of the sampled circuits, we design QuTOP, a rule-guided ML framework that performs fast configuration selection without iterative online search. Across our evaluation, the distilled rules consistently strengthen LLM-based selection, while QuTOP provides the strongest overall balance between solution quality and selection latency among the baselines.
Quantum circuit optimization plays a critical role in improving the performance of algorithms executed on noisy intermediate-scale quantum (NISQ) devices. While modern quantum compilers provide multiple optimization levels, selecting an appropriate optimization strategy remains a non-trivial task due to the complex interplay between circuit structure and hardware noise. In this work, we present a comprehensive noise-aware evaluation of quantum circuit optimization strategies using a diverse set of 33 circuits, including Quantum Fourier Transform (QFT), Grover's search, Variational Quantum Eigensolver (VQE), and randomly generated circuits. We analyze the impact of different transpiler optimization levels on circuit depth, entanglement (CNOT count), and output fidelity under a realistic depolarizing noise model. Our experimental results reveal that no single optimization level consistently yields the best performance across all circuit types. While aggressive optimization is beneficial for structured circuits such as QFT and VQE, moderate optimization levels often provide a better trade-off between circuit complexity and fidelity for unstructured or randomly generated circuits. These findings highlight that optimization-level selection is inherently dependent on circuit characteristics and cannot be effectively addressed using static or heuristic approaches alone. To address this challenge, we further propose a lightweight learning-based model that predicts the optimal optimization level based on circuit features. The model achieves an accuracy of 93.9% across the evaluated dataset, demonstrating that simple machine learning techniques can effectively approximate optimal compiler decisions without requiring exhaustive evaluation. Overall, this work provides practical insights into optimization behavior in NISQ systems and introduces a scalable approach for adaptive optimization selection, contributing toward more efficient quantum software development.
Hybrid Quantum-Classical Machine Learning (HQML) is an emerging technology that can be used for solving problems with higher computational intensity. This paradigm is designed to solve problems that remain challenging to classical machine learning approaches. Noisy Intermediate-Scale Quantum (NISQ) devices (which are today’s quantum computers) are prone to frequent errors and cannot perform fault-tolerant quantum computation. NISQ devices have a limited number of qubits, and as the number of qubits increases, circuit depth also increases, leading to increase in noise. Therefore, selecting the optimal number of qubits remains a challenge. The goal is to develop a framework that tests a Variational Quantum Classifier (VQC) with a different numbers of qubits. For each configuration, the model’s prediction accuracy and the hardware resources it consumes (gate count and circuit depth) are evaluated. Using this data, the best qubit configuration that provides the optimal balance between accuracy and resource utilization can be identified. Experiments were conducted using the Wisconsin Breast Cancer dataset, where benign and malignant tumors are classified. The dataset was preprocessed by applying Principal Component Analysis (PCA) to reduce the feature space to a maximum of six principal components. A ZZFeatureMap was used to encode the reduced features, which were then processed by a VQC with a RealAmplitudes ansatz. The COBYLA optimizer was used to train the VQC, and the experiment was repeated using different numbers of qubits from 2 to 6. Quantum circuits were transpiled into realistic IBM fake backends (FakeManilaV2 and FakeJakartaV2) for hardware-aware analysis, obtaining two key metrics: CNOT gate count and circuit depth. An AerSimulator configured with the FakeManilaV2 noise model was used to carry out the noise-aware simulation. The framework was evaluated using classification accuracy, training time, circuit depth, CNOT gate count, and noise-aware accuracy. Based on these criteria, the optimal qubit configuration that balances predictive performance with quantum hardware resource utilization was identified. The results identify 2 qubits as the optimal “sweet spot,” achieving 83.21% accuracy under ideal simulation and 81.75% under noise-aware simulation while maintaining lower resource requirements. These findings provide practical guidelines for resource-efficient hybrid quantum machine learning on NISQ hardware.