A Depth-Aware Swap Insertion Scheme for the Qubit Mapping Problem

Chi Zhang, Yan-Hao Chen, Yuwei Jin, Wonsun Ahn, Youtao Zhang, Eddy Z. ZhangarXiv 2020

Abstract

In the Noisy Intermediate-Scale Quantum (NISQ) era, circuit execution time is a critical factor due to limited qubit coherence. This paper introduces DPS (Depth-aware Swap insertion scheme), a novel qubit mapping approach that prioritizes minimizing circuit depth over total gate count. By employing a modified A* search with a depth-aware metric and look-ahead overlapping, DPS achieves up to a 30% reduction in execution depth compared to state-of-the-art mappers, with a negligible increase in gate count (<3%).

Introduction

Quantum computers in the NISQ era face two primary constraints: limited physical connectivity and short coherence times. Logical qubits in a quantum program often require interactions (e.g., CNOT gates) that are not directly supported by the hardware's physical layout. To resolve this, compilers insert SWAP gates to reposition qubit states. However, these additional gates increase the circuit's depth—the total time required for execution.

Comparison between the physical coupling graph of IBM QX2 (a) and a logical coupling graph (b).

Existing mappers typically aim to minimize the number of inserted SWAP gates. However, a lower gate count does not necessarily translate to a shorter execution time. For instance, a single SWAP gate might block parallel execution of other gates, whereas multiple SWAPs executed in parallel could result in a lower overall depth.

Methodology

The proposed Depth-Aware Swap Insertion Scheme (DPS) treats qubit mapping as a scheduling problem. The algorithm processes the circuit layer-by-layer, identifying gates that cannot be executed due to hardware constraints.

When a conflict arises, DPS utilizes a Modified A* Search to find optimal SWAP candidates. The core innovation is the Depth-Aware Metric, which evaluates candidates based on the Critical Path (CP) of the entire circuit. This metric considers the processed circuit, the candidate SWAPs, and the remaining circuit yet to be scheduled.

Example of circuit mapping: (a) original circuit with an impossible gate, (b) and (c) different SWAP insertion strategies to resolve connectivity constraints.

Furthermore, DPS employs Look-Ahead Overlapping. By analyzing the remaining circuit, the algorithm identifies SWAPs that can be executed simultaneously with future single-qubit gates, effectively reducing their contribution to the total depth to zero.

Results and Discussion

DPS was evaluated against 23 benchmarks from RevLib, IBM Qiskit, and ScaffCC on the IBM Q20 Tokyo architecture. The results demonstrate that optimizing solely for gate count can be detrimental; for a 10-qubit QFT, the Sabre mapper reduced gate count by 1.1% but increased depth by 44.5%.

In contrast, DPS consistently reduced the "Depth-delta" (additional depth from mapping) by over 20% in most cases, reaching up to 3x improvements in specific benchmarks. Importantly, this depth optimization came with a minimal average gate overhead of less than 3% compared to gate-minimizing mappers. The reduction in depth directly correlates with higher success rates on NISQ hardware by ensuring circuits complete within coherence windows.

Conclusion

DPS provides a robust framework for depth-optimized qubit mapping. Future work includes integrating noise-adaptive metrics to account for varying gate fidelities across physical links and testing the scheme on more restricted hardware topologies like heavy-hex grids.

Summary updated

BibTeX
@misc{zhang2020depth,
  author = {Chi Zhang and Yan-Hao Chen and Yuwei Jin and Wonsun Ahn and Youtao Zhang and Eddy Z. Zhang},
  title = {{A Depth-Aware Swap Insertion Scheme for the Qubit Mapping Problem}},
  year = {2020},
  eprint = {2002.07289},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.07289},
}
Figure