NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Analyzing the barren plateau phenomenon in training quantum neural networks with the ZX-calculus

Chen Zhao, Xiao-Shan GaoQuantum 2021

TL;DR

This paper introduces a novel framework using the ZX-calculus to analyze the "barren plateau" phenomenon in training quantum neural networks (QNNs). By translating QNNs and their gradients into graphical ZX-diagrams, the authors provide a general method to determine if a QNN architecture is prone to vanishing gradients, a critical hurdle for practical quantum machine learning.

What Problem Does This Paper Address?

Training quantum neural networks (QNNs) often faces a significant challenge known as the "barren plateau" phenomenon. This occurs when the gradients of the cost function with respect to the network's parameters vanish exponentially as the system size (number of qubits) increases. This vanishing gradient makes it incredibly difficult, if not impossible, for classical optimizers to effectively train the QNN. While previous work established barren plateaus for specific types of quantum circuits (unitary 2-designs), a general method to analyze this phenomenon across diverse QNN architectures was lacking. This paper aims to fill that gap by providing a systematic approach to identify barren plateaus in various QNN designs.

Methods

The core of this paper's contribution lies in its innovative use of the ZX-calculus. This is a graphical language for describing and reasoning about quantum processes. The authors leverage the ZX-calculus to:

  • Represent QNNs as ZX-diagrams: Any parameterized quantum circuit (PQC) can be translated into a ZX-diagram, which is essentially a tensor network.
  • Represent gradients as ZX-diagrams: They derive a theorem (Theorem 2) that shows how the gradient of a cost function with respect to a PQC parameter can also be represented as a ZX-diagram. This is a key technical step, allowing for graphical manipulation of gradients.
  • Analyze integrations with ZX-calculus: The expectation and variance of gradients, which involve complex integrations over parameters, are reformulated as contractions of ZX-diagrams. The ZX-calculus provides rules to simplify and compute these contractions.
  • Characterize barren plateaus by tensor network scaling: The existence of barren plateaus is then determined by the scaling properties of these tensor networks as the number of qubits or circuit depth increases.

The authors make specific assumptions about the PQCs (e.g., gates are from a universal set like Rx, Rz, H, CNOT, and parameters are uniformly random) to facilitate this analysis.

Datasets

Not discussed in the paper. The paper focuses on theoretical analysis of QNN architectures rather than empirical evaluation on specific datasets.

Key Insights and Ideas

  • ZX-calculus as a universal tool for QNN analysis: The paper demonstrates the power of the ZX-calculus beyond circuit synthesis, showing its utility in analyzing fundamental training challenges like barren plateaus.
  • Graphical analysis of gradients: Translating gradients into ZX-diagrams provides an intuitive and powerful way to understand their behavior and derive analytical results.
  • Structure dictates trainability: The analysis reveals that the specific architecture of a QNN (e.g., how parameters are arranged and how entanglement is generated) plays a crucial role in whether it suffers from barren plateaus.
  • Generalization beyond unitary 2-designs: The framework allows for the analysis of barren plateaus in PQCs that do not necessarily form unitary 2-designs, broadening the applicability of barren plateau theory.

Key Results

The paper analyzes four specific QNN architectures:

  • Hardware-efficient ansatz: Found to exhibit barren plateaus. The variance of gradients vanishes exponentially with the number of qubits and circuit depth.
  • MPS-inspired ansatz: Also found to exhibit barren plateaus, with exponential vanishing variance in the number of qubits.
  • Tree tensor network ansatz: Shown to not exhibit barren plateaus. The variance of gradients vanishes polynomially, making it trainable.
  • QCNN ansatz: Also shown to not exhibit barren plateaus, with a lower bound on the variance that does not vanish exponentially.

Limitations and Future Work

  • Assumptions: The analysis relies on specific assumptions about the parameter distribution (uniform random) and the set of gates used. While the authors suggest their method can be generalized, further work might explore the impact of different parameter distributions or gate sets.
  • Completeness of ZX-calculus: The authors mention that future work could explore using the completeness of the ZX-calculus to represent sums of ZX-diagrams more generally, potentially simplifying the analysis further.
  • Noise: The current analysis focuses on barren plateaus arising from circuit structure and does not consider noise-induced barren plateaus, which are also a significant challenge in NISQ devices.
  • Generalization to other graphical calculi: The paper suggests that similar techniques could be applied using other complete graphical calculi.

Summary updated

BibTeX
@inproceedings{zhao2021analyzing,
  author = {Chen Zhao and Xiao-Shan Gao},
  title = {{Analyzing the barren plateau phenomenon in training quantum neural networks with the ZX-calculus}},
  booktitle = {Quantum},
  year = {2021},
  url = {https://openreview.net/forum?id=8ZTtJqRRcP},
}
Figure