Skip to content
Quantum ComputingAN INTERACTIVE OPEN TEXTBOOK
charithj.com.au

Quantum neural network models and barren plateaus

Diagnose variational trainability by separating gradient signal, sampling noise and model capacity.

21 min readDr. Charith Jayasekara↓ Chapter PDF
By the end, you’ll be able to
  • Calculate a one-qubit parameter-shift gradient.
  • Explain the sampling cost of resolving a small slope.
  • State the assumptions behind a barren-plateau claim.

A trainable circuit is a model with an optimisation problem

Section titled “A trainable circuit is a model with an optimisation problem”

A parameterised quantum circuit uses adjustable rotation angles or other controls to define a family of states or predictions. A classical optimiser changes those parameters based on measured costs. Calling the model a quantum neural network does not guarantee that it learns efficiently, generalises well or outperforms a classical model. Those are separate questions about representation, optimisation, statistics and resources.

A barren plateau is a region or ensemble of training landscapes where useful gradients become extremely small under specified conditions. If the signal is smaller than measurement uncertainty, the optimiser cannot reliably tell which direction improves the objective. The problem is not merely that the numerical optimiser needs a more fashionable update rule; collecting a sufficiently precise signal can itself be expensive.

Review rotation gates, sampling uncertainty and state preparation. A gradient is a collection of local slopes of the cost with respect to the circuit parameters.

WORKED DIAGRAM · AA21A measurable one-qubit gradient
A measurable one-qubit gradientFor a Y-rotation state and Z cost, C′(θ)=−sin θ. The worked parameter-shift pair gives −√3/2. A single stationary point is different from a size-dependent barren-plateau phenomenon.STEP 1Cost C(θ)=cos θSTEP 2At θ=π/3: slope−√3/2STEP 3Shifted costs:−√3/2,+√3/2STEP 4Half difference:−√3/2
For a Y-rotation state and Z cost, C′(θ)=−sin θ. The worked parameter-shift pair gives −√3/2. A single stationary point is different from a size-dependent barren-plateau phenomenon.

Specify the input encoding, circuit family, parameter count, measured observable, loss function, data distribution and optimiser. State whether the training signal is an exact simulated expectation or a finite-shot hardware estimate. The output is a trained parameter set and an evaluated prediction rule, not merely a low training loss on a selected run.

For a trainability theorem, specify how circuits are initialised and what distribution or design properties are assumed. Global and local cost functions can behave differently, as can shallow structured circuits and deep random circuits. A result for one ensemble is not a proof that every useful quantum model has vanishing gradients.

Prepare zero, apply a Y rotation with angle theta and measure Z. The expectation is cosine theta. If the objective is to minimise that expectation, the derivative is negative sine theta. At theta equal to pi over two, the slope is negative one and gives a strong training signal. At theta equal to zero, the slope vanishes, but this single stationary point is not a many-qubit barren-plateau theorem.

The parameter-shift identity estimates this derivative by evaluating the cost at theta plus and minus pi over two and taking half their difference. At theta equal to pi over three, those two expectations are negative square root of three over two and positive square root of three over two. Their half-difference is negative square root of three over two, matching the derivative.

This calculation shows what the optimiser receives. On a simulator, the expectations can be computed exactly. On hardware, each is estimated from outcomes and has uncertainty. Taking their difference combines that uncertainty. A small true gradient can be obscured by finite shots even if the derivative formula is exact.

For a bounded observable with nonvanishing variance, resolving a signal of size g by independent sampling typically requires a shot scale proportional to inverse g squared. If g is about one thousandth, a rough unit-variance estimate can need around a million shots to make the uncertainty comparable. Constants, confidence and variance matter, so this is a scaling illustration rather than a universal shot prescription.

If a family’s typical gradients shrink exponentially with qubit count, that sampling requirement can grow exponentially. Increasing the expressive power of a circuit can therefore make optimisation harder. A model that can represent many states is not necessarily a model whose useful parameters can be found with reasonable measurements.

McClean and colleagues established barren-plateau behaviour for broad classes of sufficiently random parameterised circuits under stated assumptions. Their result motivated careful study of ansatz structure, initialisation and cost design. It should not be paraphrased as an impossibility theorem for all variational learning. Read the original barren-plateau paper.

Begin with a small structured circuit and an objective whose meaning is clear. Measure gradient distributions across many initialisations, not only one successful run. Compare exact simulated gradients with finite-shot estimates to distinguish landscape effects from measurement noise. Increase system size and depth separately, recording how the signal and required shots change.

Potential responses include problem-inspired circuits, local objectives, layerwise training and carefully chosen initial states. Their effectiveness depends on the task and assumptions; none is a universal cure. A method that improves trainability may reduce expressivity, and a method that improves a local surrogate may fail on the final global objective. Evaluate the complete learning problem.

An unexpressive model cannot represent a good solution. An optimisation barrier prevents finding parameters that the model could represent. Statistical overfitting produces good training performance but poor generalisation. Hardware noise or measurement limits corrupt the estimated objective. These failures can look similar in a flat training curve, but need different responses.

For example, a zero measured gradient may indicate a true stationary point, a barren-plateau regime, a symmetry that removes parameter dependence, or simply insufficient shots. Inspecting a small exact simulation can help diagnose the mechanism. Increasing circuit depth blindly may worsen several of these problems instead of solving them.

Use matched training and test splits, comparable hyperparameter-search budgets and appropriate classical models. Include input encoding, repeated circuit evaluations, gradient estimates and optimiser iterations. Report variability across seeds and confidence intervals. A single run with a slightly lower training loss is not evidence of a scalable advantage.

If the input is naturally quantum, a quantum model may avoid a costly classical description, but that access advantage must be stated. For ordinary classical data, loading and measuring the representation can dominate. The circuit’s Hilbert-space dimension is not itself a generalisation guarantee or a runtime bound.

Exercise 1. For the one-qubit cost, calculate the derivative at theta equal to pi over two and explain whether it is difficult to resolve compared with a derivative of one thousandth.

Check the worked answer

The derivative is negative one, a large signal for a bounded cost. A one-thousandth slope requires much finer measurement precision and typically far more independent shots, assuming comparable variance.

Exercise 2. Does a vanishing gradient at theta equal to zero prove a barren plateau?

Check the worked answer

No. It is one stationary point in a one-parameter function. A barren-plateau claim concerns the scale and distribution of gradients under specified circuit, cost and initialisation assumptions, often as system size grows.

PAUSE & THINK

Does C′(0)=0 for C=cos θ prove a barren plateau?

Choose your answer
ONE IDEA FURTHER

Ready for the next step?

Your progress stays in this browser.