NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Context-Sensitive and Duration-Aware Qubit Mapping for Various NISQ Devices

Yu Zhang, Haowei Deng, Quanxi LiarXiv 2020

In the current "Noisy Intermediate-Scale Quantum" (NISQ) era, writing a quantum program is only half the battle. The real challenge lies in the compiler: translating abstract logical instructions into physical operations that fit the rigid, idiosyncratic constraints of real-world hardware. A new research paper introduces Codar, a remapping algorithm that significantly speeds up quantum execution by accounting for the temporal costs of operations.

The Problem: The Quantum "Traffic Jam"

Quantum algorithms are written for "logical qubits," but physical hardware has strict limitations. Most NISQ devices (like those from IBM or Google) only allow two-qubit gates (like CNOTs) between physical qubits that are directly connected on a chip. If an algorithm requires interaction between two distant qubits, the compiler must insert SWAP gates to move data across the chip—a process known as qubit mapping.

Illustration of hardware topology (a), gate durations (b), and how different qubit mapping strategies (c vs d) impact total execution time.

The researchers identify a critical gap: most existing compilers treat every gate as if it takes the same amount of time. In reality, a T-gate might be much faster than a CNOT, and a SWAP gate is significantly more time-consuming (often equivalent to three CNOTs). By ignoring these timing differences, current compilers often miss opportunities for parallelism, leading to "weighted depths" (total execution time) that are much longer than necessary.

Methods: Context and Duration Awareness

The proposed Codar (COntext-sensitive and Duration-Aware Remapping) algorithm relies on two primary innovations:

  1. The Qubit Lock: Instead of simply marking a qubit as "busy" or "free," Codar assigns a tend value (a lock) to each physical qubit. This value represents the exact timestamp when the qubit will finish its current operation. This allows the compiler to schedule new operations the moment a qubit becomes free, even if its neighbors are still occupied by longer-running gates.
  2. Commutativity Detection: Quantum gates can often be reordered without changing the result. Codar looks ahead in the program to find "Commutative Forward Gates." If a gate further down the line can be moved up because its required qubits are free, Codar prioritizes it, maximizing the hardware's parallel processing capabilities.
Example of Codar's instruction scheduling, where independent gates are executed in parallel based on qubit availability timestamps.

These mechanisms are built on a new abstraction called maQAM (Multi-architecture Adaptive Quantum Abstract Machine), which allows the compiler to adapt to different hardware types, such as Ion Traps or Superconducting circuits, by plugging in their specific gate duration profiles.

Evaluation and Key Results

The researchers evaluated Codar using a robust set of 71 benchmarks ranging from 3 to 36 qubits and up to 30,000 gates. Testing was performed across four simulated hardware architectures: IBM Q16 Melbourne, IBM Q20 Tokyo, a 6×6 grid model, and the 54-qubit Google Sycamore.

Codar was compared against SABRE, widely considered the state-of-the-art heuristic remapping algorithm. The results were impressive:

  • Execution Time Reduction: Codar reduced the total weighted execution time by 17.5% to 19.4% on average across different architectures.
  • Speedup Ratios: The average speedup ratios were consistently high, reaching up to 1.258 on the Google Sycamore architecture.
  • Extreme Cases: For certain quantum algorithms, Codar managed to halve (50% reduction) the total execution time compared to previous methods.

Conclusion

Codar demonstrates that optimizing for the number of gates is merely a proxy for what truly matters: execution time. In a regime where qubits decohere rapidly, every nanosecond saved is a win for fidelity. While future work may integrate explicit error-rate awareness, Codar's duration-aware approach marks a significant step toward more efficient quantum compilers for the NISQ era.

Summary updated

BibTeX
@misc{zhang2020context,
  author = {Yu Zhang and Haowei Deng and Quanxi Li},
  title = {{Context-Sensitive and Duration-Aware Qubit Mapping for Various NISQ Devices}},
  year = {2020},
  eprint = {2001.06887},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2001.06887},
}
Figure