Profiling quantum circuits for their efficient execution on single- and multi-core architectures

Medina Bandić, Pablo le Henaff, Anabel Ovide, Pau Escofet, Sahar Ben Rached, Santiago Rodrigo, Hans van Someren, Sergi Abadal, Eduard Alarcón, Carmen G. Almudéver, Sebastian Feld

TL;DR

This paper introduces a comprehensive profiling framework that uses graph-theory metrics to characterize quantum circuits beyond simple qubit and gate counts. By clustering circuits into "families" based on their interaction and dependency structures, the authors demonstrate how to predict mapping performance and select the optimal hardware-compiler combinations for both current single-core and next-generation multi-core quantum architectures.

What Problem Does This Paper Address?

In the current Noisy Intermediate-Scale Quantum (NISQ) era, running an algorithm isn't as simple as hitting "execute." Quantum hardware is plagued by short decoherence times, high error rates, and limited qubit connectivity. To run a circuit, we must "map" it—rearranging logical qubits to fit the physical constraints of a specific chip. This process often adds significant overhead in the form of extra gates (SWAPs) and increased circuit depth, which further degrades fidelity.

The challenge is that standard metrics like "number of qubits" or "gate count" are surprisingly poor predictors of how well a circuit will actually perform once mapped. Furthermore, as we move toward scalable multi-core (modular) architectures, the problem shifts: the primary bottleneck becomes the "costly" communication between cores. This paper seeks to bridge the gap by identifying which structural features of a circuit actually drive performance on different hardware topologies.

Methods

The authors propose a two-step profiling and clustering methodology:

  1. Feature Extraction: They defined 15–19 parameters across five categories:
  2. Size: Standard counts (qubits, gates, depth).
  3. Interaction Graph (IG): Metrics describing how qubits interact (e.g., average shortest path, degree, clustering coefficient).
  4. Gate Dependency Graph (GDG): Metrics describing the temporal flow and parallelism of the circuit (e.g., critical path length, number of critical paths).
  5. Circuit Density: Measures of parallelization and qubit idling.
  6. Repetitive Patterns: Identifying recurring sub-circuits or "oracles."
  7. Clustering & Correlation: Using K-means clustering, they grouped 341 benchmarks into "families." They then used Pearson correlation scores to see how these structural features influenced performance metrics like gate overhead, depth overhead, and fidelity decrease across four single-core devices (Surface-17, IBM Rochester, Rigetti Aspen, Google Bristlecone) and two multi-core topologies (All-to-all and Grid).

Datasets

The study utilized the qbench benchmark set, which includes:

  • Real algorithms: QFT, Grover’s, and arithmetic circuits.
  • QUEKO circuits: Synthetic benchmarks designed to mimic realistic structures with predefined depths.
  • Random circuits: Uniformly random gate selections.
  • Multi-core specific benchmarks: Large-scale instances (up to 128 qubits) of VQE, QAOA, and the Cuccaro Adder.

In total, 341 quantum circuits were analyzed, providing a diverse cross-section of quantum workloads.

Key Insights and Ideas

  • Structure Trumps Size: Contrary to intuition, standard parameters like the number of gates or the percentage of two-qubit gates are not the most significant factors for circuit success rates.
  • The "Partitionability" of Multi-core: For modular architectures, GDG-related parameters (like critical path length) and circuit depth are the most relevant. These metrics dictate how easily a circuit can be sliced up to minimize inter-core communication.
  • Topology Matters: Interaction Graph (IG) parameters are most critical when dealing with "less connected" device topologies. If your chip has sparse connectivity, the "cliquishness" of your circuit's interactions will make or break the mapping.
  • Families of Performance: Circuits within the same structural "family" (cluster) show remarkably similar behavior across different mappers. This means we can define representative benchmark sets rather than testing every individual circuit.
  • Predictive Power: The authors found that idling and density scores are consistently high-importance indicators for single-core device performance, helping predict which circuits will suffer most from decoherence.

Key Results

  • Mapper Performance: In the multi-core regime, the Hungarian Qubit Assignment (HQA) mapper generally outperformed the rOEE mapper, particularly for "Group 0" (real-algorithm) circuits, keeping inter-core moves significantly lower.
  • Single-Core Comparisons: For single-core mapping, the Sabre router was found to be more robust than Stochastic routing, though for certain "real-algorithm" clusters, the simpler Stochastic mapper performed just as well, suggesting a path for faster compilation without quality loss.
  • Validation: The clustering successfully grouped circuits by their origin (e.g., random vs. real algorithms), proving that the chosen graph metrics effectively capture the underlying logic and "intent" of the quantum code.

Limitations and Future Work

The authors acknowledge several areas for further exploration:

  • Simulation vs. Reality: The study relies on simulated hardware constraints and uniform error rates (based on the Starmon-5 chip) rather than execution on actual physical QPUs.
  • Intra-core Connectivity: For the multi-core analysis, the authors assumed all-to-all connectivity within each core. Real-world modular systems may have more restricted intra-core topologies, which would add another layer of mapping complexity.
  • Co-Design: The ultimate goal is "hardware-software co-design," where these metrics are used to build application-specific chips tailored to the structural families identified in this paper.

Reference: Bandic, M., et al. (2024). Profiling quantum circuits for their efficient execution on single- and multi-core architectures. arXiv:2407.12640v1 [quant-ph].

Summary updated

BibTeX
@inproceedings{bandic2024profiling,
  author = {Medina Bandić and Pablo le Henaff and Anabel Ovide and Pau Escofet and Sahar Ben Rached and Santiago Rodrigo and Hans van Someren and Sergi Abadal and Eduard Alarcón and Carmen G. Almudéver and Sebastian Feld},
  title = {{Profiling quantum circuits for their efficient execution on single- and multi-core architectures}},
  booktitle = {Quantum},
  year = {2024},
  doi = {10.1088/2058-9565/ada180},
}

Loading related content...

Figure