Learning to rank quantum circuits for hardware-optimized performance enhancement

Gavin S. Hartnett, Aaron Barbosa, Pranav S. Mundada, Michael Hush, Michael J. Biercuk, and Yuval Baum

Q-CTRL, Sydney, NSW Australia, and Los Angeles, CA USA

Find this paper interesting or want to discuss? Scite or leave a comment on SciRate.

Abstract

We introduce and experimentally test a machine-learning-based method for ranking logically equivalent quantum circuits based on expected performance estimates derived from a training procedure conducted on real hardware. We apply our method to the problem of layout selection, in which abstracted qubits are assigned to physical qubits on a given device. Circuit measurements performed on IBM hardware indicate that the maximum and median fidelities of logically equivalent layouts can differ by an order of magnitude. We introduce a circuit score used for ranking that is parameterized in terms of a physics-based, phenomenological error model whose parameters are fit by training a ranking-loss function over a measured dataset. The dataset consists of quantum circuits exhibiting a diversity of structures and executed on IBM hardware, allowing the model to incorporate the contextual nature of real device noise and errors without the need to perform an exponentially costly tomographic protocol. We perform model training and execution on the 16-qubit $ibmq\_guadalupe$ device and compare our method to two common approaches: random layout selection and a publicly available baseline called Mapomatic. Our model consistently outperforms both approaches, predicting layouts that exhibit lower noise and higher performance. In particular, we find that our best model leads to a $1.8\times$ reduction in selection error when compared to the baseline approach and a $3.2\times$ reduction when compared to random selection. Beyond delivering a new form of predictive quantum characterization, verification, and validation, our results reveal the specific way in which context-dependent and coherent gate errors appear to dominate the divergence from performance estimates extrapolated from simple proxy measures.

Layout selection, the mapping of abstract circuit qubits to physical device qubits, is crucial for maximizing the performance of current and near-term quantum devices. While all layouts should theoretically produce logically equivalent circuits, in practice, different layouts yield varying sensitivity to device noise, making layout selection an effective error-suppression strategy in circuit compilation. This work presents a machine-learning-based method for layout selection, assigning to each layout a phenomenological score with learnable parameters trained using a ranking loss over data from a 16-qubit IBM quantum computer. The method achieves up to a 3.2× reduction in fidelity selection error compared to random layouts and a 1.8× improvement over the heuristic Mapomatic. These findings underscore the value of context-aware optimization, as hardware-specific noise significantly impacts circuit performance, with potential applications extending to broader predictive tasks in quantum computing.

► BibTeX data

► References

[1] IBM. ``Ibm quantum''.

[2] Rigetti. ``Rigetti computing''.

[3] Amazon. ``Amazon braket''.

[4] Joseph Emerson, Robert Alicki, and Karol Życzkowski. ``Scalable noise estimation with random unitary operators''. Journal of Optics B: Quantum and Semiclassical Optics 7, S347 (2005).
https:/​/​doi.org/​10.1088/​1464-4266/​7/​10/​021

[5] Emanuel Knill, Dietrich Leibfried, Rolf Reichle, Joe Britton, R Brad Blakestad, John D Jost, Chris Langer, Roee Ozeri, Signe Seidelin, and David J Wineland. ``Randomized benchmarking of quantum gates''. Physical Review A 77, 012307 (2008).
https:/​/​doi.org/​10.1103/​PhysRevA.77.012307

[6] Sergio Boixo, Sergei V Isakov, Vadim N Smelyanskiy, Ryan Babbush, Nan Ding, Zhang Jiang, Michael J Bremner, John M Martinis, and Hartmut Neven. ``Characterizing quantum supremacy in near-term devices''. Nature Physics 14, 595–600 (2018).
https:/​/​doi.org/​10.1038/​s41567-018-0124-x

[7] Charles Neill, Pedran Roushan, K Kechedzhi, Sergio Boixo, Sergei V Isakov, V Smelyanskiy, A Megrant, B Chiaro, A Dunsworth, K Arya, et al. ``A blueprint for demonstrating quantum supremacy with superconducting qubits''. Science 360, 195–199 (2018).
https:/​/​doi.org/​10.1126/​science.aao4309

[8] Timothy Proctor, Kenneth Rudinger, Kevin Young, Mohan Sarovar, and Robin Blume-Kohout. ``What randomized benchmarking actually measures''. Physical review letters 119, 130502 (2017).
https:/​/​doi.org/​10.1103/​PhysRevLett.119.130502

[9] Timothy Proctor, Kenneth Rudinger, Kevin Young, Erik Nielsen, and Robin Blume-Kohout. ``Measuring the capabilities of quantum computers''. Nature Physics 18, 75–79 (2022).
https:/​/​doi.org/​10.1038/​s41567-021-01409-7

[10] S. Mavadia, C. L. Edmunds, C. Hempel, H. Ball, F. Roy, T. M. Stace, and M. J. Biercuk. ``Experimental quantum verification in the presence of temporally correlated noise''. npj Quantum Information 4, 7 (2018).
https:/​/​doi.org/​10.1038/​s41534-017-0052-0

[11] Andre R. R. Carvalho, Harrison Ball, Michael J. Biercuk, Michael R. Hush, and Felix Thomsen. ``Error-robust quantum logic optimization using a cloud quantum computer interface''. Phys. Rev. Appl. 15, 064054 (2021).
https:/​/​doi.org/​10.1103/​PhysRevApplied.15.064054

[12] C. L. Edmunds, C. Hempel, R. J. Harris, V. Frey, T. M. Stace, and M. J. Biercuk. ``Dynamically corrected gates suppressing spatiotemporal error correlations as measured by randomized benchmarking''. Phys. Rev. Res. 2, 013156 (2020).
https:/​/​doi.org/​10.1103/​PhysRevResearch.2.013156

[13] Jaseung Ku, Xuexin Xu, Markus Brink, David C. McKay, Jared B. Hertzberg, Mohammad H. Ansari, and B. L. T. Plourde. ``Suppression of unwanted $zz$ interactions in a hybrid two-qubit system''. Phys. Rev. Lett. 125, 200504 (2020).
https:/​/​doi.org/​10.1103/​PhysRevLett.125.200504

[14] Pranav S Mundada, Aaron Barbosa, Smarak Maity, Yulun Wang, Thomas Merkh, TM Stace, Felicity Nielson, Andre RR Carvalho, Michael Hush, Michael J Biercuk, et al. ``Experimental benchmarking of an automated deterministic error-suppression workflow for quantum algorithms''. Physical Review Applied 20, 024034 (2023).
https:/​/​doi.org/​10.1103/​PhysRevApplied.20.024034

[15] Siyuan Niu, Aida Todri-Sanial, and Nicholas T. Bronn. ``Multi-qubit dynamical decoupling for enhanced crosstalk suppression'' (2024). arXiv:2403.05391.
arXiv:2403.05391

[16] Harrison Ball, Thomas M. Stace, Steven T. Flammia, and Michael J. Biercuk. ``Effect of noise correlations on randomized benchmarking''. Phys. Rev. A 93, 022303 (2016).
https:/​/​doi.org/​10.1103/​PhysRevA.93.022303

[17] Timothy Proctor, Stefan Seritan, Kenneth Rudinger, Erik Nielsen, Robin Blume-Kohout, and Kevin Young. ``Scalable randomized benchmarking of quantum computers using mirror circuits''. Physical Review Letters 129, 150502 (2022).
https:/​/​doi.org/​10.1103/​PhysRevLett.129.150502

[18] Victoria Zhang and Paul D Nation. ``Characterizing quantum processors using discrete time crystals'' (2023). arXiv:2301.07625.
arXiv:2301.07625

[19] Giovanni Acampora and Roberto Schiattarella. ``Deep neural networks for quantum circuit mapping''. Neural Computing and Applications 33, 13723–13743 (2021).
https:/​/​doi.org/​10.1007/​s00521-021-06009-3

[20] Yikai Mao, Shaswot Shresthamali, and Masaaki Kondo. ``Quantum circuit fidelity improvement with long short-term memory networks'' (2023). arXiv:2303.17523.
arXiv:2303.17523

[21] Daniel Hothem, Kevin Young, Tommie Catanach, and Timothy Proctor. ``Learning a quantum computer's capability''. IEEE Transactions on Quantum Engineering 5, 1–26 (2024).
https:/​/​doi.org/​10.1109/​TQE.2024.3430215

[22] Daniel Hothem, Jordan Hines, Karthik Nataraj, Robin Blume-Kohout, and Timothy Proctor. `` Predictive Models from Quantum Computer Benchmarks ''. In 2023 IEEE International Conference on Quantum Computing and Engineering (QCE). Pages 709–714. Los Alamitos, CA, USA (2023). IEEE Computer Society.
https:/​/​doi.org/​10.1109/​QCE57702.2023.00086

[23] Evan Peters, Prasanth Shyamsundar, Andy CY Li, and Gabriel Perdue. ``Qubit assignment using time reversal''. PRX Quantum 3, 040333 (2022).
https:/​/​doi.org/​10.1103/​PRXQuantum.3.040333

[24] Daniel Silver, Tirthak Patel, and Devesh Tiwari. ``Qompose: A technique to select optimal algorithm-specific layout for neutral atom quantum architectures'' (2024). arXiv:2409.19820.
arXiv:2409.19820

[25] Irfansha Shaik and Jaco van de Pol. ``Optimal layout synthesis for quantum circuits as classical planning''. In 2023 IEEE/​ACM International Conference on Computer Aided Design (ICCAD). Pages 1–9. IEEE (2023).
https:/​/​doi.org/​10.48550/​arXiv.2304.12014

[26] Tie-Yan Liu et al. ``Learning to rank for information retrieval''. Foundations and Trends® in Information Retrieval 3, 225–331 (2009).
https:/​/​doi.org/​10.1561/​1500000016

[27] Hang Li. ``A short introduction to learning to rank''. IEICE TRANSACTIONS on Information and Systems 94, 1854–1862 (2011).
https:/​/​doi.org/​10.1587/​transinf.E94.D.1854

[28] Chris Burges, Tal Shaked, Erin Renshaw, Ari Lazier, Matt Deeds, Nicole Hamilton, and Greg Hullender. ``Learning to rank using gradient descent''. In Proceedings of the 22nd international conference on Machine learning. Pages 89–96. (2005).
https:/​/​doi.org/​10.1145/​1102351.1102363

[29] Zhe Cao, Tao Qin, Tie-Yan Liu, Ming-Feng Tsai, and Hang Li. ``Learning to rank: from pairwise approach to listwise approach''. In Proceedings of the 24th international conference on Machine learning. Pages 129–136. (2007).
https:/​/​doi.org/​10.1145/​1273496.1273513

[30] Luigi P Cordella, Pasquale Foggia, Carlo Sansone, and Mario Vento. ``A (sub) graph isomorphism algorithm for matching large graphs''. IEEE transactions on pattern analysis and machine intelligence 26, 1367–1372 (2004).
https:/​/​doi.org/​10.1109/​TPAMI.2004.75

[31] Alpár Jüttner and Péter Madarasi. ``Vf2++—an improved subgraph isomorphism algorithm''. Discrete Applied Mathematics 242, 69–81 (2018).
https:/​/​doi.org/​10.1016/​j.dam.2018.02.018

[32] Ethan Bernstein and Umesh Vazirani. ``Quantum complexity theory''. In Proceedings of the twenty-fifth annual ACM symposium on Theory of computing. Pages 11–20. (1993).
https:/​/​doi.org/​10.1137/​S0097539796300921

[33] Sergey Bravyi and Dmitri Maslov. ``Hadamard-free circuits expose the structure of the clifford group''. IEEE Transactions on Information Theory 67, 4546–4563 (2021).
https:/​/​doi.org/​10.1109/​TIT.2021.3081415

[34] Edward Farhi, Jeffrey Goldstone, and Sam Gutmann. ``A quantum approximate optimization algorithm'' (2014). arXiv:1411.4028.
arXiv:1411.4028

[35] Paul D Nation and Matthew Treinish. ``Suppressing quantum circuit errors due to system variability''. PRX Quantum 4, 010327 (2023).
https:/​/​doi.org/​10.1103/​PRXQuantum.4.010327

[36] Diederik P Kingma and Jimmy Ba. ``Adam: A method for stochastic optimization'' (2014). arXiv:1412.6980.
arXiv:1412.6980

[37] Leslie N Smith and Nicholay Topin. ``Super-convergence: Very fast training of neural networks using large learning rates''. In Artificial intelligence and machine learning for multi-domain operations applications. Volume 11006, pages 369–386. SPIE (2019).
https:/​/​doi.org/​10.1117/​12.2520589

[38] Thomas Lubinski, Sonika Johri, Paul Varosy, Jeremiah Coleman, Luning Zhao, Jason Necaise, Charles H Baldwin, Karl Mayer, and Timothy Proctor. ``Application-oriented performance benchmarks for quantum computing''. IEEE Transactions on Quantum Engineering (2023).
https:/​/​doi.org/​10.1109/​TQE.2023.3253761

[39] Teague Tomesh, Pranav Gokhale, Victory Omole, Gokul Subramanian Ravi, Kaitlin N Smith, Joshua Viszlai, Xin-Chuan Wu, Nikos Hardavellas, Margaret R Martonosi, and Frederic T Chong. ``Supermarq: A scalable quantum benchmark suite''. In 2022 IEEE International Symposium on High-Performance Computer Architecture (HPCA). Pages 587–603. IEEE (2022).
https:/​/​doi.org/​10.48550/​arXiv.2202.11045

[40] G. Hartnett, A. Barbosa, P. S. Mundada, M. Hush, M. Biercuk, and Y. Baum. ``Learning to rank quantum circuits for hardware-optimized performance enhancement''. Zenodo (2024).
https:/​/​doi.org/​10.5281/​zenodo.14037434

[41] Philip Krantz, Morten Kjaergaard, Fei Yan, Terry P Orlando, Simon Gustavsson, and William D Oliver. ``A quantum engineer's guide to superconducting qubits''. Applied physics reviews 6, 021318 (2019).
https:/​/​doi.org/​10.1063/​1.5089550

[42] Mathieu Blondel, Olivier Teboul, Quentin Berthet, and Josip Djolonga. ``Fast differentiable sorting and ranking''. In International Conference on Machine Learning. Pages 950–959. PMLR (2020).
https:/​/​doi.org/​10.48550/​arXiv.2002.08871

[43] Robin L Plackett. ``The analysis of permutations''. Journal of the Royal Statistical Society Series C: Applied Statistics 24, 193–202 (1975).
https:/​/​doi.org/​10.2307/​2346567

Cited by

[1] Yuxuan Du, Yan Zhu, Yuan-Hang Zhang, Min-Hsiu Hsieh, Patrick Rebentrost, Weibo Gao, Yi-Zhuang You, Jens Eisert, Giulio Chiribella, Dacheng Tao, Barry C. Sanders, and Ya-Dong Wu, "Artificial intelligence for representing and characterizing quantum systems", Nature Reviews Physics (2026).

[2] Haoran Liao, Gavin S. Hartnett, Ashish Kakkar, Adrian Tan, Michael Hush, Pranav S. Mundada, Michael J. Biercuk, and Yuval Baum, "Achieving Computational Gains with Quantum Error-Correction Primitives: Generation of Long-Range Entanglement Enhanced by Error Detection", PRX Quantum 6 2, 020331 (2025).

[3] Naeimeh Mohseni, Thomas Morstyn, Corey O’Meara, David Bucher, Jonas Nüßlein, and Giorgio Cortiana, "Evidence of quantum scaling advantage in approximate optimization for energy coalition formation with 100+ agents", Quantum Science and Technology 11 1, 015009 (2026).

[4] Saripudi Suneetha and Kakumani K. C. Deepthi, "Noise-Field Sampling and Regime Transitions in Qubit Layout Selection: Hardware Evidence on IBM Superconducting Processors", IEEE Access 14, 117585 (2026).

[5] Qiming Du, Jinchen Xu, Yuqiong Jin, Wenxia Wang, Zheng Tu, Yi Liu, Hang Lian, Yu Zhu, and Zheng Shan, "From Noise Modeling to Layout Optimization: A Framework for Quantum Circuit Fidelity Enhancement With Machine Learning", Advanced Quantum Technologies 9 3, e00464 (2026).

[6] Yikai Mao, Shaswot Shresthamali, and Masaaki Kondo, "Q-Gen: A Parameterized Quantum Circuit Generator", IEEE Transactions on Quantum Engineering 6, 1 (2025).

[7] Yue Yao, Yuqing Wang, Jixin Shi, Bo Liang, and Yixiang Shi, "A Novel Multi-Physics Coupled 10-Cell Stack Numerical Model for Microtubular Solid Oxide Fuel Cell Based on Single Rectangle Current Collector", Quantum Science and Technology 11 1, 79 (2026).

[8] Natasha Sachdeva, Gavin S. Hartnett, Smarak Maity, Samuel Marsh, Yulun Wang, Adam Winick, Ryan Dougherty, Daniel Canuto, You Quan Chong, G. Adam Cox, Michael Hush, Pranav S. Mundada, Christopher D. B. Bentley, Michael J. Biercuk, and Yuval Baum, "Integrated error-suppressed pipeline for quantum optimization of nontrivial binary combinatorial optimization problems on gate-model hardware at the 156-qubit scale", arXiv:2406.01743, (2024).

[9] Naeimeh Mohseni, Thomas Morstyn, Corey O'Meara, David Bucher, Jonas Nüßlein, and Giorgio Cortiana, "Demonstrating Quantum Scaling Advantage in Approximate Optimization for Energy Coalition Formation with 100+ Agents", arXiv:2405.11917, (2024).

[10] Yunsheng Bai, Atefeh Sohrabizadeh, Zijian Ding, Rongjian Liang, Weikai Li, Ding Wang, Haoxing Ren, Yizhou Sun, and Jason Cong, "Learning to Compare Hardware Designs for High-Level Synthesis", arXiv:2409.13138, (2024).

The above citations are from Crossref's cited-by service (last updated successfully 2026-08-10 22:12:10) and SAO/NASA ADS (last updated successfully 2026-08-10 22:12:12). The list may be incomplete as not all publishers provide suitable and complete citation data.