SlackQ : Approaching the Qubit Mapping Problem with A Slack-aware Swap Insertion Scheme

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

Abstract

In the Noisy Intermediate-Scale Quantum (NISQ) era, limited qubit connectivity necessitates the insertion of SWAP gates to execute multi-qubit operations. Traditional mapping techniques focus on minimizing the total number of SWAP gates. However, this paper introduces SlackQ, a time-aware qubit mapper that prioritizes total execution time (circuit depth) over gate count. By identifying and exploiting "slack"—idle periods in a qubit's schedule—SlackQ hides necessary SWAP overhead, achieving an average speedup of 1.62x and up to 2.36x over state-of-the-art techniques like Sabre.

Introduction

Current NISQ devices feature physical qubits arranged in specific topologies, where two-qubit gates (e.g., CNOTs) can only be performed between adjacent neighbors. To execute general quantum algorithms, compilers must perform qubit mapping, moving logical qubits through the hardware using SWAP gates. Since qubits are prone to decoherence, minimizing the time they spend in the system is crucial. SlackQ shifts the optimization goal from gate-count reduction to depth reduction, recognizing that parallelized SWAPs can be more efficient than fewer, serialized ones.

The Concept of Slack

The core innovation of SlackQ is its focus on "slack," defined as the idle time between two consecutive gates on a specific qubit.

Illustration of slack between gates on a qubit.

The algorithm distinguishes between two types of slack:

  • Fixed Slack: Inherent idle time dictated by the circuit's dependency structure.
  • Flexible Slack: Idle time that can be created or expanded by rescheduling non-critical gates.

Slack-Aware SWAP Insertion

SlackQ utilizes an iterative, dynamic gate scheduler. It maintains a "frontier" of ready gates and schedules them as dependencies and connectivity are met. When a connectivity conflict arises, SlackQ calculates a "Slack Utilization" score for potential SWAP sequences. It prioritizes SWAPs that can be "hidden" within existing slack, effectively reducing their cost to zero in terms of total execution time.

Qubit coupling graph and a SWAP operation absorbing slack.

Furthermore, SlackQ prioritizes gates on the critical path—the sequence of operations that determines the overall circuit duration. By ensuring critical gates are resolved first and non-critical gates are rescheduled to create flexible slack, the mapper maximizes the opportunities for latency hiding.

Evaluation and Results

The authors evaluated SlackQ using 106 benchmarks from libraries like RevLib, IBM Qiskit, and ScaffCC, ranging from small ALU logic to large-scale applications with up to 200,000 gates. The evaluation focused on IBM’s 20-qubit "Tokyo" architecture.

Compared to leading baselines like the Zulehner and Sabre mappers, SlackQ demonstrated:

  • Average Speedup: 1.62x across all benchmarks.
  • Maximum Speedup: 2.36x.
  • Scalability: Performance gains increased with circuit size, with large benchmarks seeing an average speedup of 1.86x compared to 1.45x for mini benchmarks.

Conclusion

SlackQ demonstrates that "hiding" overhead within idle periods is a highly effective strategy for NISQ-era quantum compilation. By moving away from simple gate-count metrics and adopting a time-aware, slack-driven approach, SlackQ significantly reduces circuit depth, directly addressing the challenge of qubit decoherence. Future work may extend this approach by incorporating hardware-specific gate fidelities and exploring different coupling topologies.

Summary updated

BibTeX
@misc{zhang2020slackq,
  author = {Chi Zhang and Yan-Hao Chen and Yuwei Jin and Wonsun Ahn and Youtao Zhang and Eddy Z. Zhang},
  title = {{SlackQ : Approaching the Qubit Mapping Problem with A Slack-aware Swap Insertion Scheme}},
  year = {2020},
  eprint = {2009.02346},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2009.02346},
}
Figure