Table of Contents
Fetching ...

Improving Figures of Merit for Quantum Circuit Compilation

Patrick Hopf, Nils Quetschlich, Laura Schulz, Robert Wille

TL;DR

This work interrogates how well traditional figures of merit for quantum circuit compilation (gate count, circuit depth, expected fidelity, ESP) predict actual execution quality on real QPUs and finds that correlations are often weaker than expected. It introduces a machine-learning-based figure of merit that uses a depth-independent circuit representation to predict the Hellinger distance $d$ between the noiseless distribution and the QPU distribution, thereby estimating execution quality without calibration data. A random forest model trained on real-device data achieves substantial improvements in correlation (average ~${49}\%$ over prior metrics), with key predictive features related to qubit activity and inter-qubit interactions (e.g., liveness, parallelism, directed program communication). The approach demonstrates a practical path to more accurately guiding compilation for a given QPU, improving circuit designs without requiring frequent hardware calibration data.

Abstract

Quantum computing is an emerging technology that has seen significant software and hardware improvements in recent years. Executing a quantum program requires the compilation of its quantum circuit for a target Quantum Processing Unit (QPU). Various methods for qubit mapping, gate synthesis, and optimization of quantum circuits have been proposed and implemented in compilers. These compilers try to generate a quantum circuit that leads to the best execution quality - a criterion that is usually approximated by figures of merit such as the number of (two-qubit) gates, the circuit depth, expected fidelity, or estimated success probability. However, it is often unclear how well these figures of merit represent the actual execution quality on a QPU. In this work, we investigate the correlation between established figures of merit and actual execution quality on real machines - revealing that the correlation is weaker than anticipated and that more complex figures of merit are not necessarily more accurate. Motivated by this finding, we propose an improved figure of merit (based on a machine learning approach) that can be used to predict the expected execution quality of a quantum circuit for a chosen QPU without actually executing it. The employed machine learning model reveals the influence of various circuit features on generating high correlation scores. The proposed figure of merit demonstrates a strong correlation and outperforms all previous ones in a case study - achieving an average correlation improvement of 49%.

Improving Figures of Merit for Quantum Circuit Compilation

TL;DR

This work interrogates how well traditional figures of merit for quantum circuit compilation (gate count, circuit depth, expected fidelity, ESP) predict actual execution quality on real QPUs and finds that correlations are often weaker than expected. It introduces a machine-learning-based figure of merit that uses a depth-independent circuit representation to predict the Hellinger distance between the noiseless distribution and the QPU distribution, thereby estimating execution quality without calibration data. A random forest model trained on real-device data achieves substantial improvements in correlation (average ~ over prior metrics), with key predictive features related to qubit activity and inter-qubit interactions (e.g., liveness, parallelism, directed program communication). The approach demonstrates a practical path to more accurately guiding compilation for a given QPU, improving circuit designs without requiring frequent hardware calibration data.

Abstract

Quantum computing is an emerging technology that has seen significant software and hardware improvements in recent years. Executing a quantum program requires the compilation of its quantum circuit for a target Quantum Processing Unit (QPU). Various methods for qubit mapping, gate synthesis, and optimization of quantum circuits have been proposed and implemented in compilers. These compilers try to generate a quantum circuit that leads to the best execution quality - a criterion that is usually approximated by figures of merit such as the number of (two-qubit) gates, the circuit depth, expected fidelity, or estimated success probability. However, it is often unclear how well these figures of merit represent the actual execution quality on a QPU. In this work, we investigate the correlation between established figures of merit and actual execution quality on real machines - revealing that the correlation is weaker than anticipated and that more complex figures of merit are not necessarily more accurate. Motivated by this finding, we propose an improved figure of merit (based on a machine learning approach) that can be used to predict the expected execution quality of a quantum circuit for a chosen QPU without actually executing it. The employed machine learning model reveals the influence of various circuit features on generating high correlation scores. The proposed figure of merit demonstrates a strong correlation and outperforms all previous ones in a case study - achieving an average correlation improvement of 49%.
Paper Structure (18 sections, 2 equations, 3 figures, 1 table)

This paper contains 18 sections, 2 equations, 3 figures, 1 table.

Figures (3)

  • Figure 1: Compilation of a quantum circuit demonstrating (a) mapping, (b) synthesis, and (c), (d) optimization passes for a four-qubit square layout (only missing a link between $\mathrm{Q}_{1}$ and $\mathrm{Q}_{3}$). The exemplary QPU is subject to crosstalk errors from parallel gate execution (orange) on neighboring qubits and provides only a low $\mathrm{CNOT}$ fidelity (blue) between distant qubits $\mathrm{Q}_{0}$ and $\mathrm{Q}_{2}$.
  • Figure 2: Workflow for feature and label generation from a compiled quantum circuit. The Hellinger distance---representing the difference between the circuit's true distribution and the QPU execution results---is used as label data for model training.
  • Figure 3: Random forest model feature importance.

Theorems & Definitions (4)

  • Example 1
  • Example 2
  • Example 3
  • Example 4