Robust Qubit Mapping Algorithm via Double-Source Optimal Routing on Large Quantum Circuits

Chin-Yi Cheng, Chien-Yi Yang, Yi-Hsiang Kuo, Ren-Chu Wang, Hao–Chung Cheng, Chung-Yang Huang

TL;DR

This paper introduces Duostra, a novel qubit mapping algorithm designed to tackle the challenge of mapping large quantum circuits onto hardware with limited connectivity. By employing a dual-source optimal routing strategy and efficient scheduling heuristics, Duostra significantly reduces mapping costs and execution times, paving the way for achieving quantum advantage on larger quantum computers.

What Problem Does This Paper Address?

Implementing quantum algorithms on real-world quantum hardware is hindered by the "qubit mapping problem." This problem arises because quantum computers have a fixed physical layout (topology) where qubits can only directly interact with their immediate neighbors. However, quantum algorithms often require operations between qubits that are not physically adjacent. To bridge this gap, "SWAP gates" must be inserted, which effectively move qubits around. This process increases the circuit's depth, gate count, and execution time, leading to more errors and potentially preventing the realization of quantum advantage. Existing algorithms struggle with the scale of modern quantum computers, which are moving towards hundreds or even thousands of qubits, making efficient and robust qubit mapping a critical bottleneck.

Methods

The authors propose a framework that decomposes the qubit mapping problem into two main components: routing and scheduling.

  • Duostra Router: This is the core innovation. It's a modified Dijkstra's algorithm that uses a "dual-source" approach. Instead of finding a path from a single source to a target, it considers two potential sources (the qubits involved in a two-qubit gate) and aims to find an optimal pair of adjacent physical qubits to perform the operation. The key novelty is its dynamic calculation of "occupied time" for qubits and edges, considering the time it takes for operations and SWAPs. This allows Duostra to find routing paths that minimize the overall occupied time, leading to more efficient qubit utilization and reduced mapping costs.
  • Scheduling Heuristics: To decide which gate to process next from the "Waitlist" (gates ready for execution), Duostra employs two heuristic algorithms:
  • Limitedly-Exhaustive (LE) Search: This approach explores a limited depth of possible gate execution sequences to find the one that yields the minimal occupied time.
  • Shortest-Path (SP) Estimation: This heuristic prioritizes scalability by using the shortest path between qubits and a constant factor to estimate the cost, making it suitable for very large circuits.

Datasets

The paper evaluates its algorithm on several benchmark circuits, including:

  • SABRE-large benchmark: A standard benchmark for mid-size circuits.
  • Extended SABRE-large benchmark: An extended version of the SABRE-large benchmark.
  • Scalable and repeatable architectures: Quantum Fourier Transform (QFT), Galois Field (GF), and Inst circuits of varying qubit counts (up to 1121 qubits).
  • Large oracle circuits: ISCAS'85 benchmarks, transformed into quantum circuits.
  • NISQ era benchmark: A benchmark suited for the NISQ era.
  • Emulated extra-large circuits: QFT circuits up to 11,969 qubits, emulated on heavy-hex topologies.

The authors also mention using the tool Qsyn [41] for their implementation.

Key Insights and Ideas

  • Dual-Source Routing is Key: The core insight is that by considering two potential sources simultaneously and dynamically updating qubit availability, the Duostra router can find more optimal paths for SWAP insertions, significantly reducing mapping costs compared to single-source shortest path algorithms.
  • Occupied Time Matters: The dynamic calculation of "occupied time" for qubits and edges is crucial. It allows the algorithm to account for the actual time spent on operations and SWAPs, leading to a more realistic estimation of circuit execution time and better mapping decisions.
  • Initial Placement is Less Critical for Large Circuits: The authors observe that for larger and deeper circuits, the impact of the initial placement of qubits diminishes, and the scheduling and routing procedures become the dominant factors in determining the overall mapping cost.
  • Scalability is Achievable: The Duostra framework demonstrates impressive scalability, handling circuits with thousands of qubits, which is essential for future fault-tolerant quantum computing.

Key Results

  • Mid-Size Circuits: Duostra LE improves mapping costs by an average of 4.5% to 25.7% compared to QMAP, TOQM, t|ket), Qiskit, and SABRE on the SABRE-large benchmark.
  • Large Circuits ( > 50 qubits): Duostra achieves an average improvement of 21.75% in mapping cost over the best results from QMAP, t|ket), Qiskit, and SABRE.
  • Extra-Large Circuits (QFT up to 11,969 qubits): Duostra consistently shows significantly lower mapping costs and competitive runtimes compared to a standard Shortest Path router.
  • Runtime: The algorithm generally achieves good quality results within a reasonable runtime, with experiments completing within minutes for mid-size circuits and hours for very large ones.

Limitations and Future Work

  • Limitations:
    • The paper acknowledges that for very small circuits, exact methods can outperform heuristic approaches.
  • For QFT circuits where Duostra lost to SABRE, the authors suspect it's due to the repetitive patterns in those specific circuits.
  • Future Work:
    • Enhance the Duostra Scheduler to identify and prioritize specific repetitive patterns in circuits.
  • Develop an automatic scheduler that can dynamically select the optimal search depth for LE Search, balancing solution quality and runtime.
  • Incorporate error models and error correction circuits to address fault-tolerant qubit mapping.
  • Explore integration of ideas from recent research in quantum teleportation, reinforcement learning, and gate commutation for further improvements.

Summary updated

BibTeX
@article{cheng2022robust,
  author = {Chin-Yi Cheng and Chien-Yi Yang and Yi-Hsiang Kuo and Ren-Chu Wang and Hao–Chung Cheng and Chung-Yang Huang},
  title = {{Robust Qubit Mapping Algorithm via Double-Source Optimal Routing on Large Quantum Circuits}},
  journal = {ACM Transactions on Quantum Computing},
  year = {2022},
}
Figure