Differentiable quantum architecture search

Shi‐Xin Zhang, Chang‐Yu Hsieh, Shengyu Zhang, Hong YaoQuantum 2022 · DOI

Abstract

Quantum architecture search (QAS) is the process of automating architecture engineering of quantum circuits. It has been desired to construct a powerful and general QAS platform which can significantly accelerate current efforts to identify quantum advantages of error-prone and depth-limited quantum circuits in the NISQ era. Hereby, we propose a general framework of differentiable quantum architecture search (DQAS), which enables automated designs of quantum circuits in an end-to-end differentiable fashion. We present several examples of circuit design problems to demonstrate the power of DQAS. For instance, unitary operations are decomposed into quantum gates, noisy circuits are re-designed to improve accuracy, and circuit layouts for quantum approximation optimization algorithm are automatically discovered and upgraded for combinatorial optimization problems. These results not only manifest the vast potential of DQAS being an essential tool for the NISQ application developments, but also present an interesting research topic from the theoretical perspective as it draws inspirations from the newly emerging interdisciplinary paradigms of differentiable programming, probabilistic programming, and quantum programming.

Introduction

In the current Noisy Intermediate-Scale Quantum (NISQ) era, quantum hardware is limited by short coherence times, gate errors, and restricted qubit connectivity. Designing effective "ansatzes" (circuit templates) for hybrid quantum-classical algorithms like the Variational Quantum Eigensolver (VQE) or the Quantum Approximate Optimization Algorithm (QAOA) is currently a manual, trial-and-error process.

While researchers have tried to automate this via Quantum Architecture Search (QAS) using evolutionary algorithms or reinforcement learning, these methods are often computationally expensive and struggle to scale. This paper introduces Differentiable Quantum Architecture Search (DQAS), a framework that automates the design of quantum circuits by relaxing the discrete search space into a continuous, differentiable one. By optimizing both circuit structure and gate parameters simultaneously, DQAS significantly accelerates the discovery of noise-resilient and resource-efficient circuits.

The DQAS Framework

The authors draw inspiration from Differentiable Architecture Search (DARTS) in classical machine learning. The key innovation is the transition from a discrete search (picking gates from a list) to a differentiable optimization.

The DQAS framework: A probabilistic model samples architectures from an operation pool, which are then evaluated in batches. Gradients are backpropagated to update both gate parameters and structural weights.

The framework operates through four main components:

  1. Probabilistic Modeling: Instead of picking one circuit, the framework maintains a probabilistic model $P(\mathbf{k}, \alpha)$ that represents a distribution over possible architectures.
  2. Bi-Optimization: DQAS optimizes two sets of parameters at once: the structural weights ($\alpha$), which determine the probability of choosing specific gates, and the variational parameters ($\theta$) of the gates themselves.
  3. Gradient Estimation: Since sampling an architecture is a discrete step, the authors use score function estimators (similar to the REINFORCE algorithm) to backpropagate gradients through the probabilistic model.
  4. Parameter Sharing: To save memory and time, different sampled architectures share a "parameter pool," allowing the model to learn which gate settings work best across various structural configurations.

Benchmarks and Key Results

The authors evaluated DQAS across several prototypical quantum computing tasks, including unitary decomposition, quantum error mitigation (QEM) for the Quantum Fourier Transform (QFT), and combinatorial optimization (MAX CUT) on various graph types.

Automatic Rediscovery and Optimization

A significant result is that DQAS successfully "rediscovered" the standard QAOA layout from scratch when given a broad pool of operations. This validates that the framework can identify theoretically sound architectures without human intervention.

Training dynamics for the QAOA layout search. As the loss objective decreases (top), the probability of selecting the optimal QAOA layout converges to 1.0 (bottom).

Other key findings include:

  • Noise Resilience: For a 3-qubit QFT circuit under a bit-flip noise model, DQAS improved output fidelity from 0.33 (standard) to 0.60 (optimized) by learning complex, long-range gate patterns that cancel out noise.
  • Efficiency over Depth: The "Reduced Graph" approach showed that custom-designed, shallower circuits can outperform standard ones. For a specific MAX CUT instance, the DQAS-designed circuit achieved a 100% success probability compared to only 47% for a standard P=2 QAOA circuit of similar depth.
  • Hardware Tailoring: Because the objective function can include noise models and connectivity maps, DQAS acts as a "hardware-aware" compiler, designing circuits natively optimized for specific quantum processors.

Limitations and Future Work

While powerful, DQAS faces challenges common to variational quantum algorithms. The score function estimator used for structural gradients is known for high variance, requiring "baseline tricks" for very deep circuits. Additionally, DQAS is susceptible to barren plateaus (vanishing gradients), making layer-wise training or specialized initializations crucial for scaling to many-qubit systems.

Future work could involve using more complex autoregressive models or energy-based models to capture dependencies between circuit layers, further enhancing the ability of DQAS to navigate the vast space of possible quantum architectures.

Summary updated

BibTeX
@inproceedings{zhang2022differentiable,
  author = {Shi‐Xin Zhang and Chang‐Yu Hsieh and Shengyu Zhang and Hong Yao},
  title = {{Differentiable quantum architecture search}},
  booktitle = {Quantum},
  year = {2022},
  doi = {10.1088/2058-9565/ac87cd},
}
Figure