ML-QLS: Multilevel Quantum Layout Synthesis

Wan-Hsuan Lin, Jason Cong

Quantum computing is entering the era of "utility," with processors now boasting hundreds of qubits. However, a major bottleneck remains: Quantum Layout Synthesis (QLS). This is the process of mapping a quantum circuit's logical qubits onto a physical device's qubits while respecting limited hardware connectivity.

In a new paper, researchers from UCLA introduce ML-QLS, the first multilevel framework designed to tackle this problem at scale without sacrificing the solution quality that exact solvers provide.

TL;DR

ML-QLS is a hybrid multilevel framework that bridges the gap between slow, optimal solvers and fast, suboptimal heuristics for quantum circuit mapping. By using a "V-cycle" approach—clustering problems to solve them globally at a coarse level and then refining them—it achieves up to a 69% reduction in SWAP gates compared to leading heuristic tools for large-scale circuits.

What Problem Does This Paper Address?

Physical quantum processors have limited connectivity; two-qubit gates can only be executed between adjacent physical qubits. If a circuit requires a gate between non-adjacent qubits, the compiler must insert SWAP gates to move the data. These extra gates are costly: they increase circuit depth, prolong execution time, and introduce significant noise/errors.

Current QLS tools fall into two camps:

  1. Exact Solvers (e.g., OLSQ2): Use mathematical optimization to find the absolute minimum number of SWAPs. They produce high-quality results but fail to scale beyond ~30-40 qubits.
  2. Heuristics (e.g., Sabre, QMAP): Fast and scalable, but they often lack a global view, leading to an "optimality gap" where they insert 6-7x more SWAP gates than necessary.

As we move toward hundreds of qubits, we need a tool that is both scalable and globally informed.

Methods

ML-QLS adopts the multilevel framework commonly used in VLSI (chip) design. The core idea is the V-cycle, illustrated in Figure 1.

Figure 1: A multilevel V cycle for circuit placement. The process initiates with iterative clustering to reduce the problem size, solving at the coarsest level, and then refining through interpolation at finer levels.

The process consists of three main phases:

  • Clustering: The tool iteratively groups program qubits (circuit clustering) and physical qubits (device clustering) to create smaller, "coarser" versions of the original problem.
  • Coarsest-Level Solving: Once the problem is small enough (e.g., <16 qubits), an exact SMT-based solver (TB-OLSQ2) finds a globally optimal layout for this simplified version.
  • Interpolation and Refinement: The coarse solution is projected back to the finer levels. At each step, a new heuristic called sRefine performs local optimizations.

To prevent local refinement from undoing the global strategy found at the coarse level, the authors introduce Qubit Regions. Each qubit is encouraged to stay within a small neighborhood of its coarse-level assignment, providing a "guided" search space.

Datasets

The authors evaluated ML-QLS using several standard and challenging benchmarks:

  • QASMBench: A low-level quantum benchmark suite for NISQ evaluation.
  • QUEKO: Circuits with known-optimal (often zero-SWAP) solutions, used to measure how close a tool gets to the theoretical limit.
  • QAOA Circuits: Circuits for the Quantum Approximate Optimization Algorithm, tested on random 3-regular graphs with up to 300 qubits.
  • Hardware Architectures: Testing was performed on grid-based architectures (like Google's 54-qubit Sycamore) and heavy-hexagon architectures (like IBM's 127-qubit Eagle).

Key Insights and Ideas

  • The Device Clustering Challenge: In traditional chip design, "coarsening" a grid is trivial. In quantum hardware, the coupling graph is discrete and irregular. The authors found that a "proper" device clustering must be guided by the circuit's specific interaction patterns to avoid distorting the problem's topology (see Figure 4).
  • Related Qubit Cost: Most heuristics only care about the distance between the two qubits in the current gate. ML-QLS introduces a novel cost term, DisForRelatedQubits. It looks ahead to qubits that share a common neighbor in consecutive gates, allowing a single SWAP to potentially satisfy multiple future gates.
  • Handling Discrete Spaces: Unlike continuous optimization, QLS is purely discrete (mapping, scheduling). The "Qubit Region" concept is a clever way to translate coarse-level guidance into a flexible constraint for fine-level refinement.

Key Results

ML-QLS demonstrates a significant leap in performance over existing heuristics:

  • SWAP Reduction: On large grid-based circuits, it achieved an average 69% reduction in SWAP gates compared to QMAP.
  • Optimality: For QUEKO circuits on the Sycamore architecture, ML-QLS consistently found the optimal zero-SWAP solution for circuits up to 100 qubits, where other heuristics failed.
  • Scalability: The tool successfully handled circuits with 300 qubits, typically returning solutions in under 5 minutes for 54-qubit cases and under an hour for the largest instances.
  • Architecture Sensitivity: The V-cycle was particularly effective on grid architectures (up to 46% improvement over standalone refinement) because the dense connectivity makes cost estimation more accurate during coarsening.

Limitations and Future Work

While highly effective, the authors noted that the multilevel improvement is less pronounced on sparse graphs like IBM's heavy-hexagon Eagle processor compared to dense grids. This is because sparse connectivity makes it harder to estimate the "hidden" cost of gates within a cluster at the coarse level.

Future work may involve developing more sophisticated cost estimation techniques for sparse coupling graphs and exploring even more scalable methods to reach zero-SWAP solutions for the largest, most complex quantum circuits.

Summary updated

BibTeX
@inproceedings{lin2025ml,
  author = {Wan-Hsuan Lin and Jason Cong},
  title = {{ML-QLS: Multilevel Quantum Layout Synthesis}},
  booktitle = {ISPD},
  year = {2025},
  doi = {10.1145/3698364.3705358},
}
Figure