Prediction of Compilation Options for Quantum Circuits via Adaptive Deep Residual Neural Network
Shouli He, Wen Liu, Yangzhi Li, Maoduo Li, Kai Chen, Yaohua Lu
pp. 38-67 · 10.2478/qic-2026-0003
On this page
Abstract
Quantum circuit compilation is an indispensable part of executing quantum circuits on quantum devices. It translates logical quantum circuits into physical quantum circuits that meet the device constraints. However, nonspecialist users require extensive expertise to effectively select and evaluate quantum circuit compilation processes. Therefore, this paper proposes a quantum circuit compilation option prediction method based on Deep Residual Attention Neural Network. The method aims to automate the selection of the best compilation scheme and enhance the efficiency and accuracy of quantum circuit compilation. Firstly, a quantum circuit feature extraction algorithm based on Time-Weighted Interaction Graph is proposed. This algorithm can effectively represent quantum circuits using fixed-length vectors, making the model input scalable. Secondly, for existing one-dimensional features, a quantum circuit compilation option prediction model based on Deep Residual Attention Neural Network is designed and trained. This model is capable of quickly and accurately predicting the optimal compilation option combination. Extensive experimental evaluations and comparisons are carried out on the MQT (Munich Quantum Toolkit) quantum circuit compilation dataset. These evaluations verify the effectiveness and advancement of the proposed method. Compared with the current state-of-the-art method (Random Forest), the proposed method improves the accuracy by 5.44%, the Top-3 accuracy by 2.6%, and the F1 by 2.05%.
Open accessCC BY-NC-ND 4.0
Keywords
- quantum circuit compilation
- deep residual neural network
- attention mechanism
- quantum computing
- deep Learning
Suggested citation
Shouli He, Wen Liu, Yangzhi Li, Maoduo Li, Kai Chen, Yaohua Lu (2026). Prediction of Compilation Options for Quantum Circuits via Adaptive Deep Residual Neural Network. Quantum Information & Computation, 26(1), 38-67. https://doi.org/10.2478/qic-2026-0003
References (34)
- A. Javadi-Abhari, M. Treinish, K. Krsulich, C. J. Wood, J. Lishman, J. Gacon, S. Martiel, P. D. Nation, L. S. Bishop and A. W. Cross (2024). “Quantum computing with Qiskit”. arXiv preprint.Google Scholar
- S. Sivarajah, S. Dilkes, A. Cowtan, W. Simmons, A. Edgington and R. Duncan (2020). t|ket : A retargetable compiler for NISQ devices. Quantum Science and Technology, 6, 014003.DOI: 10.1088/2058-9565/ab8e92Google Scholar
- R. S. Smith, M. J. Curtis and W. J. Zeng (2016). A practical quantum instruction set architecture. arXiv preprint.Google Scholar
- V. Bergholm, J. Izaac, M. Schuld, C. Gogolin, S. Ahmed, V. Ajith, M. S. Alam, G. Alonso-Linaje, B. Akash-Narayanan and A. Asadi (2018). PennyLane: Automatic differentiation of hybrid quantum-classical computations. arXiv preprint.Google Scholar
- L. K. Grover (1996). “A fast quantum mechanical algorithm for database search”, in: Proceedings of the Twentyeighth Annual ACM Symposium on Theory of Computing, pp. 212–219.DOI: 10.1145/237814.237866Google Scholar
- P. W. Shor (1999). “Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer”. SIAM Review, 41, 303–332.DOI: 10.1137/S0036144598347011Google Scholar
- A. W. Harrow, A. Hassidim and S. Lloyd (2009). “Quantum algorithm for linear systems of equations”. Physical Review Letters, 103, 150502.DOI: 10.1103/PhysRevLett.103.150502Google Scholar
- M. Salm, J. Barzen, U. Breitenbücher, F. Leymann, B. Weder and K. Wild (2020). “The NISQ analyzer: automating the selection of quantum computers for quantum algorithms”, in Symposium and Summer School on Service-Oriented Computing, pp. 66–85. SpringerDOI: 10.1007/978-3-030-64846-6_5Google Scholar
- M. Salm, J. Barzen, F. Leymann and B. Weder (2022). “Prioritization of compiled quantum circuits for different quantum computers”, in: 2022 IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER), pp. 1258–1265. IEEE.DOI: 10.1109/SANER53432.2022.00150Google Scholar
- M. Salm, J. Barzen, F. Leymann and P. Wundrack (2023). “How to select quantum compilers and quantum computers before compilation”, in: CLOSER, pp. 172–183.DOI: 10.5220/0011775300003488Google Scholar
- N. Quetschlich, L. Burgholzer and R. Wille, “Predicting good quantum circuit compilation options”, in: 2023 IEEE International Conference on Quantum Software (QSW), pp. 43–53 (2023). IEEE.DOI: 10.1109/QSW59989.2023.00015Google Scholar
- N. Quetschlich, L. Burgholzer and R. Wille (2023). “Compiler optimization for quantum computing using reinforcement learning”, in: 2023 60th ACM/IEEE Design Automation Conference (DAC), pp. 1–6. IEEE.DOI: 10.1109/DAC56929.2023.10248002Google Scholar
- N. Quetschlich, L. Burgholzer and R. Wille (2023). “MQT predictor: Automatic device selection with devicespecific circuit compilation”. ACM Transactions on Quantum Computing.Google Scholar
- T. Tomesh, P. Gokhale, V. Omole, G. S. Ravi, K. N. Smith, J. Viszlai, X.-C. Wu, N. Hardavellas, M. R. Martonosi and F. T. Chong (2022). “Supermarq: A scalable quantum benchmark suite”, in: 2022 IEEE International Symposium on High-Performance Computer Architecture (HPCA), pp. 587–603. IEEE.DOI: 10.1109/HPCA53966.2022.00050Google Scholar
- M. Bandic, C. G. Almudever and S. Feld (2022). “Interaction graph-based profiling of quantum benchmarks for improving quantum circuit mapping techniques”. arXiv preprint.DOI: 10.1007/s42484-023-00124-1Google Scholar
- Y. Qian, Z. Guan, S. Zheng and S. Feng (2023). “A method based on timing weight priority and distance optimization for quantum circuit transformation”. Entropy 25(3), 465.DOI: 10.3390/e25030465Google Scholar
- L. Breiman (2001). “Random forests”. Machine Learning 45, 5–32.DOI: 10.1023/A:1010933404324Google Scholar
- J. H. Friedman (2001). “Greedy function approximation: A gradient boosting machine”. Annals of Statistics 1189–1232.DOI: 10.1214/aos/1013203451Google Scholar
- W.-Y. Loh (2011). “Classification and regression trees”. Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery 1(1), 14–23.DOI: 10.1002/widm.8Google Scholar
- T. Cover and P. Hart (1967). “Nearest neighbor pattern classification”. IEEE Transactions on Information Theory 13(1), 21–27.DOI: 10.1109/TIT.1967.1053964Google Scholar
- M. Riedmiller and A. Lernen (2014). “Multi-layer perceptron”. Machine Learning Lab Special Lecture, University of Freiburg 24.Google Scholar
- C. Cortes (1995). “Support-vector networks”. Machine Learning.DOI: 10.1023/A:1022627411411Google Scholar
- A. P. Dempster, N. M. Laird and D. B. Rubin (1977). “Maximum likelihood from incomplete data via the EM algorithm”. Journal of the Royal Statistical Society, Series B, 39:1, 1–22.DOI: 10.1111/j.2517-6161.1977.tb01600.xGoogle Scholar
- K. He, X. Zhang, S. Ren and J. Sun (2016). “Deep residual learning for image recognition”, in: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 770–778.DOI: 10.1109/CVPR.2016.90Google Scholar
- A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, Ł. Kaiser and I. Polosukhin (2017). “Attention is all you need”. Advances in Neural Information Processing Systems.Google Scholar
- F. Wang, M. Jiang, C. Qian, S. Yang, C. Li, H. Zhang, X. Wang and X. Tang (2017). “Residual attention network for image classification”, in: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3156–3164.DOI: 10.1109/CVPR.2017.683Google Scholar
- J. M. Hernández and P. Van Mieghem, “Classification of graph metrics”, University of Technology: Mekelweg, The Netherlands 1.Google Scholar
- L. d. F. Costa, F. A. Rodrigues, G. Travieso and P. R. Villas Boas (2007). “Characterization of complex networks: A survey of measurements”. Advances in Physics, 56(1), 167–242.DOI: 10.1080/00018730601170527Google Scholar
- A. W. Cross, L. S. Bishop, J. A. Smolin and J. M. Gambetta (2017). “Open quantum assembly language”. arXiv preprint.Google Scholar
- P. Sedgwick (2014). “Spearman’s rank correlation coefficient”. BMJ, 349.DOI: 10.1136/bmj.g7327Google Scholar
- M. Cerezo, A. Arrasmith, R. Babbush, S. C. Benjamin, S. Endo, K. Fujii, J. R. McClean, K. Mitarai, X. Yuan and L. Cincio (2021). “Variational quantum algorithms”. Nature Reviews Physics, 3(9), 625–644.DOI: 10.1038/s42254-021-00348-9Google Scholar
- J. Choi and J. Kim (2019). “A tutorial on quantum approximate optimization algorithm (QAOA): Fundamentals and applications”, in: 2019 International Conference on Information and Communication Technology Convergence (ICTC), pp. 138–142. IEEE.DOI: 10.1109/ICTC46691.2019.8939749Google Scholar
- F. Mandl and G. Shaw (2013). Quantum Field Theory. John Wiley & Sons.Google Scholar
- Y.-Z. Li, W. Liu, G.-S. Xu, M.-D. Li, K. Chen and S.-L. He (2025). “Quantum circuit mapping based on discrete particle swarm optimization and deep reinforcement learning”. Swarm and Evolutionary Computation, 95, 101923.DOI: 10.1016/j.swevo.2025.101923Google Scholar
