Tutorials
qcr:2606.69373.1

Barren Plateaus in Quantum Neural Networks

This PennyLane tutorial investigates barren plateaus, one of the most important obstacles to training quantum neural networks, following the landmark analysis by McClean and collaborators. A barren plateau is a region of the optimization landscape where the cost function's gradients vanish exponentially with the number of qubits, so that for large, randomly-initialized, sufficiently-expressive circuits the landscape becomes almost flat and gradient-based training stalls, the quantum analogue of (and arguably worse than) classical vanishing gradients. The tutorial makes the phenomenon concrete and measurable: using PennyLane, it constructs random parameterized circuits of increasing width, samples the variance of the cost gradient across many random initializations, and shows empirically that this variance shrinks exponentially as the number of qubits grows. It explains why this happens (the concentration of measure for random circuits) and discusses the practical implications for ansatz design and initialization. By demonstrating barren plateaus directly and quantitatively, the tutorial gives practitioners the understanding they need to recognize and avoid this failure mode when building trainable quantum models, and motivates the mitigation strategies (local cost functions, structured ansaetze) explored in other PennyLane demos.
QML
Qubit
Circuit-based
Uploaded 4 days ago
24
Views
Citing this entry? Use this QCR ID
Uploaded by
QL
QCR Librarian

Overview

PennyLaneAI/demos
667238
README.md

Barren Plateaus in Quantum Neural Networks

This PennyLane tutorial investigates barren plateaus, one of the most important obstacles to training quantum neural networks, following the landmark analysis by McClean and collaborators. A barren plateau is a region of the optimization landscape where the cost function's gradients vanish exponentially with the number of qubits, so that for large, randomly-initialized, sufficiently-expressive circuits the landscape becomes almost flat and gradient-based training stalls, the quantum analogue of (and arguably worse than) classical vanishing gradients. The tutorial makes the phenomenon concrete and measurable: using PennyLane, it constructs random parameterized circuits of increasing width, samples the variance of the cost gradient across many random initializations, and shows empirically that this variance shrinks exponentially as the number of qubits grows. It explains why this happens (the concentration of measure for random circuits) and discusses the practical implications for ansatz design and initialization. By demonstrating barren plateaus directly and quantitatively, the tutorial gives practitioners the understanding they need to recognize and avoid this failure mode when building trainable quantum models, and motivates the mitigation strategies (local cost functions, structured ansaetze) explored in other PennyLane demos.

Run it

pip install -r requirements.txt
python demo.py

Source and license

Imported from demonstrations_v2/tutorial_barren_plateaus/demo.py in PennyLaneAI/demos at c52c0abeb5122218aa96b38eea848864cce7323f, under the Apache License 2.0. Original authors: Xanadu and the PennyLane community. The upstream LICENSE is included alongside this example.

Join the Discussion

Comments (0)

No comments yet. Be the first to share your thoughts!

Indexed by QCR Librarian

This entry was created automatically from publicly available records. QCR links to public sources and only stores repository content where the license permits redistribution.

Publication

doi:10.48550/arxiv.1803.11173
Barren plateaus in quantum neural network training landscapes

Jarrod R. McClean, Sergio Boixo, Vadim N. Smelyanskiy, Ryan Babbush, Hartmut Neven

Versions

v1 Latest
Jun 15, 2026
qcr:2606.69373.1

Cite all versions? Use the base QCR ID to always reference the latest version of this entry.

Tools used

PennyLane

Keywords

barren-plateaus
trainability
quantum-machine-learning
pennylane
gradients

You may also like5