skip to main content
10.1145/3508352.3549472acmconferencesArticle/Chapter ViewAbstractPublication PagesiccadConference Proceedingsconference-collections
research-article

Reinforcement Learning and DEAR Framework for Solving the Qubit Mapping Problem

Published: 22 December 2022 Publication History

Abstract

Quantum computing is gaining more and more attention due to its huge potential and the constant progress in quantum computer development. IBM and Google have released quantum architectures with more than 50 qubits. However, in these machines, the physical qubits are not fully connected so that two-qubit interaction can only be performed between specific pairs of the physical qubits. To execute a quantum circuit, it is necessary to transform it into a functionally equivalent one that respects the constraints imposed by the target architecture. Quantum circuit transformation inevitably introduces additional gates which reduces the fidelity of the circuit. Therefore, it is important that the transformation method completes the transformation with minimal overheads. It consists of two steps, initial mapping and qubit routing. Here we propose a reinforcement learning-based model to solve the initial mapping problem. Initial mapping is formulated as sequence-to-sequence learning and self-attention network is used to extract features from a circuit. For qubit routing, a DEAR (Dynamically-Extract-and-Route) framework is proposed. The framework iteratively extracts a subcircuit and uses A* search to determine when and where to insert additional gates. It helps to preserve the lookahead ability dynamically and to provide more accurate cost estimation efficiently during A* search. The experimental results show that our RL-model generates better initial mappings than the best known algorithms with 12% fewer additional gates in the qubit routing stage. Furthermore, our DEAR-framework outperforms the state-of-the-art qubit routing approach with 8.4% and 36.3% average reduction in the number of additional gates and execution time starting from the same initial mapping.

References

[1]
Dario Amodei, Rishita Anubhai, and Eric Battenberg et al. 2015. Deep Speech 2: End-to-End Speech Recognition in English and Mandarin. arXiv preprint arXiv:1512.02595.
[2]
Xueyun Cheng, Zhijin Guan, and Pengcheng Zhu. 2020. Nearest Neighbor Transformation of Quantum Circuits in 2D Architecture. IEEE Access 8 (2020), 222466--222475.
[3]
Haowei Deng, Yu Zhang, and Quanxi Li. 2020. Codar: A Contextual Duration-Aware Qubit Mapping for Various NISQ Devices. In 2020 57th ACM/IEEE Design Automation Conference (DAC). 1--6.
[4]
Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2018. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. arXiv preprint arXiv:1810.04805.
[5]
Johannes Kepler University Linz Institute for Integrated Circuits. 2019. IIC JKU - IBMQX QASM Circuits. https://github.com/iic-jku/ibm_qx_mapping/tree/master/examples
[6]
Nicolas Gisin, Grégoire Ribordy, Wolfgang Tittel, and Hugo Zbinden. 2002. Quantum cryptography. Rev. Mod. Phys. 74 (2002), 145--195. Issue 1.
[7]
IBM. 2021. IBM Quantum Services. https://quantum-computing.ibm.com/services?services=systems
[8]
Diederik P. Kingma and Jimmy Ba. 2014. Adam: A Method for Stochastic Optimization. In arXiv preprint arXiv:1412.6980.
[9]
Gushu Li, Yufei Ding, and Yuan Xie. 2019. Tackling the Qubit Mapping Problem for NISQ-Era Quantum Devices. In Proceedings of the Twenty-Fourth International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS '19). 1001--1014.
[10]
Sanjiang Li, Xiangzhen Zhou, and Yuan Feng. 2021. Qubit Mapping Based on Subgraph Isomorphism and Filtered Depth-Limited Search. IEEE Trans. Comput. 70, 11 (2021), 1777--1788.
[11]
Prakash Murali, Jonathan M. Baker, Ali Javadi Abhari, Frederic T. Chong, and Margaret Martonosi. 2019. Noise-Adaptive Compiler Mappings for Noisy Intermediate-Scale Quantum Computers. arXiv preprint arXiv:1901.11054.
[12]
Siyuan Niu, Adrien Suau, Gabriel Staffelbach, and Aida Todri-Sanial. 2020. A Hardware-Aware Heuristic for the Qubit Mapping Problem in the NISQ Era. IEEE Transactions on Quantum Engineering 1 (2020), 1--14.
[13]
Matteo G. Pozzi, Steven J. Herbert, Akash Sengupta, and Robert D. Mullins. 2020. Using Reinforcement Learning to Perform Qubit Routing in Quantum Compilers. arXiv preprint arXiv:2007.15957.
[14]
S. J. Rennie, E. Marcheret, Y. Mroueh, J. Ross, and V. Goel. 2017. Self-Critical Sequence Training for Image Captioning. In 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR). 1179--1195.
[15]
Abdullah Ash Saki, Aakarshitha Suresh, Rasit Onur Topaloglu, and Swaroop Ghosh. 2021. Split Compilation for Security of Quantum Circuits. In 2021 IEEE/ACM International Conference On Computer Aided Design (ICCAD). 1--7.
[16]
Peter W. Shor. 1997. Polynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum Computer. SIAM J. Comput. 26, 5 (1997), 1484--1509.
[17]
Animesh Sinha, Utkarsh Azad, and Harjinder Singh. 2021. Qubit Routing using Graph Neural Network aided Monte Carlo Tree Search. arXiv preprint arXiv:2104.01992.
[18]
Marcos Yukio Siraichi, Vinícius Fernandes dos Santos, Caroline Collange, and Fernando Magno Quintao Pereira. 2018. Qubit Allocation. In Proceedings of the 2018 International Symposium on Code Generation and Optimization (CGO). 113--125.
[19]
Seyon Sivarajah, Silas Dilkes, Alexander Cowtan, Will Simmons, Alec Edgington, and Ross Duncan. 2020. t|ket>: a retargetable compiler for NISQ devices. Quantum Science and Technology 6, 1 (2020), 014003.
[20]
Bochen Tan and Jason Cong. 2020. Optimal Layout Synthesis for Quantum Computing. In 2020 IEEE/ACM International Conference On Computer Aided Design (ICCAD). 1--9.
[21]
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. 2017. Attention Is All You Need. CoRR abs/1706.03762 (2017).
[22]
Ronald J. Williams. 1992. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine Learning 8, 3 (1992), 229--256.
[23]
Yuan Feng Xiangzhen Zhou and Sanjiang Li. 2020. Circuit-Transformation-via-Monte-Carlo-Tree-Search. https://github.com/iic-jku/ibm_qx_mapping/tree/master/examples
[24]
Christof Zalka. 1999. Grover's quantum searching algorithm is optimal. Physical Review A 60, 4 (1999), 2746--2751.
[25]
Chi Zhang, Ari B. Hayes, Longfei Qiu, Yuwei Jin, Yanhao Chen, and Eddy Z. Zhang. 2021. Time-Optimal Qubit Mapping. In Proceedings of the 26th ACM International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS 2021). 360--374.
[26]
Xiangzhen Zhou, Yuan Feng, and Sanjiang Li. 2020. A Monte Carlo Tree Search Framework for Quantum Circuit Transformation. In 2020 IEEE/ACM International Conference On Computer Aided Design (ICCAD). 1--7.
[27]
Xiangzhen Zhou, Sanjiang Li, and Yuan Feng. 2020. Quantum Circuit Transformation Based on Simulated Annealing and Heuristic Search. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems 39, 12 (2020), 4683--4694.
[28]
Pengcheng Zhu, Zhijin Guan, and Xueyun Cheng. 2020. A Dynamic Look-Ahead Heuristic for the Qubit Mapping Problem of NISQ Computers. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems 39, 12 (2020), 4721--4735.
[29]
Alwin Zulehner, Alexandru Paler, and Robert Wille. 2019. An Efficient Methodology for Mapping Quantum Circuits to the IBM QX Architectures. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems 38, 7 (2019), 1226--1236.

Cited By

View all
  • (2024)CTQr: Control and Timing-Aware Qubit RoutingProceedings of the 29th Asia and South Pacific Design Automation Conference10.1109/ASP-DAC58780.2024.10473795(140-145)Online publication date: 22-Jan-2024
  • (2024)Deep Reinforcement Learning for Mapping Quantum Circuits to 2D Nearest‐Neighbor ArchitecturesAdvanced Quantum Technologies10.1002/qute.2023002897:2Online publication date: 2-Jan-2024

Index Terms

  1. Reinforcement Learning and DEAR Framework for Solving the Qubit Mapping Problem
            Index terms have been assigned to the content through auto-classification.

            Recommendations

            Comments

            Information & Contributors

            Information

            Published In

            cover image ACM Conferences
            ICCAD '22: Proceedings of the 41st IEEE/ACM International Conference on Computer-Aided Design
            October 2022
            1467 pages
            ISBN:9781450392174
            DOI:10.1145/3508352
            Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

            Sponsors

            In-Cooperation

            • IEEE-EDS: Electronic Devices Society
            • IEEE CAS
            • IEEE CEDA

            Publisher

            Association for Computing Machinery

            New York, NY, United States

            Publication History

            Published: 22 December 2022

            Permissions

            Request permissions for this article.

            Check for updates

            Qualifiers

            • Research-article

            Funding Sources

            • Ministry of Science and Technology
            • the Ministry of Science and Technology

            Conference

            ICCAD '22
            Sponsor:
            ICCAD '22: IEEE/ACM International Conference on Computer-Aided Design
            October 30 - November 3, 2022
            California, San Diego

            Acceptance Rates

            Overall Acceptance Rate 457 of 1,762 submissions, 26%

            Contributors

            Other Metrics

            Bibliometrics & Citations

            Bibliometrics

            Article Metrics

            • Downloads (Last 12 months)76
            • Downloads (Last 6 weeks)7
            Reflects downloads up to 28 Feb 2025

            Other Metrics

            Citations

            Cited By

            View all
            • (2024)CTQr: Control and Timing-Aware Qubit RoutingProceedings of the 29th Asia and South Pacific Design Automation Conference10.1109/ASP-DAC58780.2024.10473795(140-145)Online publication date: 22-Jan-2024
            • (2024)Deep Reinforcement Learning for Mapping Quantum Circuits to 2D Nearest‐Neighbor ArchitecturesAdvanced Quantum Technologies10.1002/qute.2023002897:2Online publication date: 2-Jan-2024

            View Options

            Login options

            View options

            PDF

            View or Download as a PDF file.

            PDF

            eReader

            View online with eReader.

            eReader

            Figures

            Tables

            Media

            Share

            Share

            Share this Publication link

            Share on social media