Skip to main content
QUICK REVIEW

[Paper Review] Machine Learning Optimization of Quantum Circuit Layouts

Alexandru Paler, Lucian Mircea Sasu|arXiv (Cornell University)|Jul 29, 2020
Quantum Computing Algorithms and ArchitectureComputer Science10 citations
TL;DR

This paper proposes QXX-MLP, a machine learning-optimized quantum circuit layout (QCL) method that uses a Gaussian-weighted parameter search to minimize circuit depth. By training a multilayer perceptron (MLP) to predict optimal QXX parameters, the approach achieves near-state-of-the-art performance with orders-of-magnitude speedup over exhaustive search, demonstrating feasible learning of QCL heuristics via approximation.

ABSTRACT

The quantum circuit layout (QCL) problem is to map a quantum circuit such that the constraints of the device are satisfied. We introduce a quantum circuit mapping heuristic, QXX, and its machine learning version, QXX-MLP. The latter infers automatically the optimal QXX parameter values such that the layed out circuit has a reduced depth. In order to speed up circuit compilation, before laying the circuits out, we are using a Gaussian function to estimate the depth of the compiled circuits. This Gaussian also informs the compiler about the circuit region that influences most the resulting circuit's depth. We present empiric evidence for the feasibility of learning the layout method using approximation. QXX and QXX-MLP open the path to feasible large scale QCL methods.

Motivation & Objective

  • Address the scalability and performance bottleneck in quantum circuit layout (QCL) for NISQ devices, where current methods take up to an hour for 50-qubit circuits.
  • Develop a fast, configurable QCL method that minimizes circuit depth while respecting device connectivity constraints.
  • Explore whether machine learning can accelerate the optimization of QCL parameters without significant performance degradation.
  • Enable continuous learning in quantum cloud environments by training models on large-scale circuit compilation data.
  • Establish a time-performance trade-off between exhaustive search and fast parameter inference for QCL heuristics.

Proposed method

  • Introduce QXX, a parameterized QCL heuristic that uses a Gaussian function to weight the importance of circuit regions during layout, with parameters controlling the center and width of the Gaussian.
  • Apply weighted random search (WRS) to explore optimal QXX parameter values across a range of benchmark circuits, prioritizing configurations that minimize the Ratio function.
  • Train a multilayer perceptron (MLP) to learn the mapping from circuit features to optimal QXX parameters, enabling fast inference instead of costly search.
  • Use the Ratio function, defined as |C_out| / |C_in|, to evaluate and optimize circuit depth post-compilation.
  • Leverage the Gaussian function as a form of implicit feature extraction, identifying that only certain circuit regions (early or late gates) significantly impact compilation cost.
  • Cross-validate the MLP’s predictions against WRS results and exhaustive search to ensure performance fidelity and model reliability.

Experimental results

Research questions

  • RQ1How can we determine the best QCL parameter values to minimize the depth of the compiled output circuit?
  • RQ2Can we establish a time-performance trade-off between exhaustive parameter search and fast inference using machine learning?
  • RQ3Is it feasible to learn the optimal QXX parameter configuration through approximation, and does the resulting model maintain acceptable performance?
  • RQ4Which circuit regions (early or late gates) most influence the final circuit depth, and can this be captured via a Gaussian weighting function?
  • RQ5Can a learned model (QXX-MLP) achieve performance comparable to WRS-optimized QXX while enabling orders-of-magnitude faster compilation?

Key findings

  • QXX-MLP achieves performance on par with state-of-the-art QCL methods, with minimal degradation in the Ratio function compared to WRS-optimized QXX.
  • The Gaussian-weighted parameter search reveals that for shallow circuits (depth ≤ 30), later gates are more critical, while for deeper circuits (depth > 30), early gates dominate the layout cost.
  • Weighted random search (WRS) identifies parameter configurations consistent with exhaustive search, validating the effectiveness of the optimization strategy.
  • The MLP model successfully learns the QXX parameter space, enabling fast inference and reducing compilation time by orders of magnitude compared to exhaustive search.
  • The Gaussian function acts as a simple yet effective feature extractor, identifying that only a subset of gates (either at the beginning or end) significantly affects circuit depth.
  • Empirical results confirm that continuous learning of QCL heuristics via ML is feasible, especially in cloud environments with high-volume circuit compilation workloads.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.