LightSABRE: A Lightweight and Enhanced SABRE Algorithm
Henry Zou, Matthew Treinish, Kevin Hartman, Alexander Ivrii, Jake Lishman
TL;DR
LightSABRE tackles the bottleneck of routing large quantum circuits by delivering a Rust-based, highly scalable extension to SABRE. It introduces relative scoring, multi-trial exploration, advanced layout seeding, support for disjoint connectivity and control-flow, and new depth/critical-path heuristics, plus a release valve to escape stagnation. Empirically, it achieves roughly a 200× speedup over earlier Qiskit implementations and, on benchmark circuits, about an 18.9% average reduction in CNOT gates compared with Li et al., demonstrating improved runtime and circuit quality on large-scale devices. These advances enable efficient optimization of complex quantum circuits on current and future hardware, with flexible tuning for device connectivity and optimization goals.
Abstract
We introduce LightSABRE, a significant enhancement of the SABRE algorithm that advances both runtime efficiency and circuit quality. LightSABRE addresses the increasing demands of modern quantum hardware, which can now accommodate complex scenarios, and circuits with millions of gates. Through iterative development within Qiskit, primarily using the Rust programming language, we have achieved a version of the algorithm in Qiskit 1.2.0 that is approximately 200 times faster than the implementation in Qiskit 0.20.1, which already introduced key improvements like the release valve mechanism. Additionally, when compared to the SABRE algorithm presented in Li et al., LightSABRE delivers an average decrease of 18.9\% in SWAP gate count across the same benchmark circuits. Unlike SABRE, which struggles with scalability and convergence on large circuits, LightSABRE delivers consistently high-quality routing solutions, enabling the efficient execution of large quantum circuits on near-term and future quantum devices. LightSABRE's improvements in speed, scalability, and quality position it as a critical tool for optimizing quantum circuits in the context of evolving quantum hardware and error correction techniques.
