Curriculum / Quantum Machine Learning / Barren Plateaus

Lesson 10 of 15ReadingPro+100 XP

Barren Plateaus

The trainability challenge that limits deep quantum circuits.

Barren Plateaus

The Vanishing Gradient Problem in Quantum ML

Barren plateaus are the central training challenge in quantum machine learning. Just as deep neural networks suffer from vanishing gradients that make training impossible, variational quantum circuits face an even more severe version: gradients that vanish exponentially in the number of qubits.

A barren plateau is a region of the parameter space where the loss function is nearly flat in all directions. Gradient-based optimizers get no useful signal: every step is essentially random, and training fails.

The Mathematical Cause

For a variational circuit with n qubits and random parameters, the variance of the gradient scales as:

This means that for n = 30 qubits, the gradient variance is roughly . To reliably detect a gradient of this magnitude requires approximately measurements: far beyond any practical device.

The key paper by McClean et al. (2018) proved this scaling for random parameterized circuits (circuits that form approximate 2-designs). The result holds for many architectures used in practice.

Why Random Initialization Is Dangerous

If you initialize a quantum circuit with random parameters drawn uniformly from [0, 2*pi], the initial point is almost certainly on a barren plateau. The gradient is exponentially small, and gradient descent makes no progress.

This is qualitatively different from classical neural networks, where random initialization (e.g., Xavier or He initialization) is generally safe. In QML, naive random initialization can completely prevent training.

Sources of Barren Plateaus

Not all barren plateaus have the same origin:

1. Expressibility-induced plateaus: Highly expressible circuits (those that cover the full Hilbert space) have exponentially small gradients almost everywhere. High expressibility trades off with trainability.

2. Noise-induced plateaus: Depolarizing noise at each gate layer exponentially suppresses all off-diagonal density matrix elements. Even if the ideal circuit has gradients, noise destroys them. The threshold is roughly: barren plateau occurs when noise per layer is .

This is the opening of the lesson. The full walkthrough, the interactive circuit, and the graded challenge continue inside myqubit.

How this lesson works

A guided reading lesson with interactive knowledge checks. Concepts are explained step by step with circuit diagrams and runnable examples, and you confirm understanding before moving on.

Part of: Quantum Machine Learning

Apply quantum computing to machine learning with variational circuits and optimization.

This lesson is part of Pro

Unlock Quantum Machine Learning and all 10 tracks with Pro: $12.99/month, $79/year, or $97 lifetime. Start with the free track first if you are new.