CoChat

Cost function dependent barren plateaus in shallow parametrized quantum circuits

Open access
Cerezo, M., Sone, Akira, Volkoff, Tyler, Cincio, Lukasz, Coles, Patrick J. · 2021 · Nature Communications

The DOI matches its Crossref record; 70 of the 70 references it cites were found in a registry or an index.

Abstract

Variational quantum algorithms (VQAs) optimize the parameters θ of a parametrized quantum circuit V ( θ ) to minimize a cost function C . While VQAs may enable practical applications of noisy quantum computers, they are nevertheless heuristic methods with unproven scaling. Here, we rigorously prove two results, assuming V ( θ ) is an alternating layered ansatz composed of blocks forming local 2-designs. Our first result states that defining C in terms of global observables leads to exponentially vanishing gradients (i.e., barren plateaus) even when V ( θ ) is shallow. Hence, several VQAs in the literature must revise their proposed costs. On the other hand, our second result states that defining C with local observables leads to at worst a polynomially vanishing gradient, so long as the depth of V ( θ ) is $${\mathcal{O}}(\mathrm{log}\,n)$$ O ( log n ) . Our results establish a connection between locality and trainability. We illustrate these ideas with large-scale simulations, up to 100 qubits, of a quantum autoencoder implementation.

Overview

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1038/s41467-021-21728-w

Cites

70 of 70 references verified0 citation errors · 0 not checkable

Statistics

Figures

Fig. 1 Summary of our main results. McClean et al.9 proved that a barren plateau can occur when the depth D of a hardware-efficient ansatz is D∈O(poly(n)). Here we extend these results by providing bounds for the variance of the gradient of global and local cost functions as a function of D. In particular, we find that the barren plateau phenomenon is cost-function dependent. a For global cost functions (e.g., Eq. (1)), the landscape will exhibit a barren plateau essentially for all depths D. b For local cost functions (e.g., Eq. (2)), the gradient vanishes at worst polynomially and hence is trainable when D∈O(log(n)), while barren plateaus occur for D∈O(poly(n)), and between these two regions the gradient transitions from polynomial to exponential decay.
Fig. 1 Summary of our main results. McClean et al.9 proved that a barren plateau can occur when the depth D of a hardware-efficient ansatz is D∈O(poly(n)). Here we extend these results by providing bounds for the variance of the gradient of global and local cost functions as a function of D. In particular, we find that the barren plateau phenomenon is cost-function dependent. a For global cost functions (e.g., Eq. (1)), the landscape will exhibit a barren plateau essentially for all depths D. b For local cost functions (e.g., Eq. (2)), the gradient vanishes at worst polynomially and hence is trainable when D∈O(log(n)), while barren plateaus occur for D∈O(poly(n)), and between these two regions the gradient transitions from polynomial to exponential decay.CC BY · PubMed Central
Fig. 2 Cost function landscapes. a Two-dimensional cross-section through the landscape of CG=1−(∏)j=1ⁿcos²(θ^j/2) for n = 4 (blue) and n = 24 (orange). b The same cross-section through the landscape of CL=1−1/n(∑)j=1ⁿcos²(θ^j/2) is independent of n. In both cases, 200 Haar distributed points are shown, with very few (most) of these points lying in the valley containing the global minimum of CG (CL).
Fig. 2 Cost function landscapes. a Two-dimensional cross-section through the landscape of CG=1−(∏)j=1ⁿcos²(θ^j/2) for n = 4 (blue) and n = 24 (orange). b The same cross-section through the landscape of CL=1−1/n(∑)j=1ⁿcos²(θ^j/2) is independent of n. In both cases, 200 Haar distributed points are shown, with very few (most) of these points lying in the valley containing the global minimum of CG (CL).CC BY · PubMed Central
Fig. 3 Alternating Layered Ansatz. a Each block Wkl acts on m qubits and is parametrized via (27). As shown, we define Sk as the m-qubit subsystem on which WkL acts, where L is the last layer of V(θ). Given some block W, it is useful for our proofs (outlined in the Methods) to write V(θ)=VR(1w¯⊗W)VL, where VR contains all gates in the forward light-cone L of W. The forward light-cone L is defined as all gates with at least one input qubit causally connected to the output qubits of W. We define L¯ as the compliment of L, Sw as the m-qubit subsystem on which W acts, and Sw¯ as the n − m qubit subsystem on which W acts trivially. b The operator Oi acts nontrivially only in subsystem Sk−1∈S, while Oi^(′) acts nontrivially on the first m/2 qubits of Sk+1, and on the second m/2 qubits of Sk. c Depiction of the Alternating Layered Ansatz with one- and two-dimensional connectivity. Each circle represents a physical qubit.
Fig. 3 Alternating Layered Ansatz. a Each block Wkl acts on m qubits and is parametrized via (27). As shown, we define Sk as the m-qubit subsystem on which WkL acts, where L is the last layer of V(θ). Given some block W, it is useful for our proofs (outlined in the Methods) to write V(θ)=VR(1w¯⊗W)VL, where VR contains all gates in the forward light-cone L of W. The forward light-cone L is defined as all gates with at least one input qubit causally connected to the output qubits of W. We define L¯ as the compliment of L, Sw as the m-qubit subsystem on which W acts, and Sw¯ as the n − m qubit subsystem on which W acts trivially. b The operator Oi acts nontrivially only in subsystem Sk−1∈S, while Oi^(′) acts nontrivially on the first m/2 qubits of Sk+1, and on the second m/2 qubits of Sk. c Depiction of the Alternating Layered Ansatz with one- and two-dimensional connectivity. Each circle represents a physical qubit.CC BY · PubMed Central
Fig. 4 Alternating Layered Ansatz for V(θ) employed in our numerical simulations. Each layer is composed of control-Z gates acting on alternating pairs of neighboring qubits which are preceded and followed by single qubit rotations around the y-axis, Ry(θi)=e^(−iθiσy/2). Shown is the case of two layers, nA = 1, and nB = 10 qubits. The number of variational parameters and gates scales linearly with nB: for the case shown there are 71 gates and 51 parameters. While each block in this ansatz will not form an exact local 2-design, and hence does not fall under our theorems, one can still obtain a cost-function-dependent barren plateau.
Fig. 4 Alternating Layered Ansatz for V(θ) employed in our numerical simulations. Each layer is composed of control-Z gates acting on alternating pairs of neighboring qubits which are preceded and followed by single qubit rotations around the y-axis, Ry(θi)=e^(−iθiσy/2). Shown is the case of two layers, nA = 1, and nB = 10 qubits. The number of variational parameters and gates scales linearly with nB: for the case shown there are 71 gates and 51 parameters. While each block in this ansatz will not form an exact local 2-design, and hence does not fall under our theorems, one can still obtain a cost-function-dependent barren plateau.CC BY · PubMed Central
Fig. 5 Cost versus number of iterations for the quantum autoencoder problem defined by Eqs. (25)–(26). In all cases we employed two layers of the ansatz shown in Fig. 4, and we set nA = 1, while increasing nB = 10, 15, …, 100. The top (bottom) axis corresponds to the global cost function CG^(′) of Eq. (22) (local cost function CL^(′) of (23)). As can be seen, CG^(′) can be trained up to nB = 20 qubits, while CL^(′) trained in all cases. These results indicate that global cost function presents a barren plateau even for a shallow depth ansatz, and this can be avoided by employing a local cost function.
Fig. 5 Cost versus number of iterations for the quantum autoencoder problem defined by Eqs. (25)–(26). In all cases we employed two layers of the ansatz shown in Fig. 4, and we set nA = 1, while increasing nB = 10, 15, …, 100. The top (bottom) axis corresponds to the global cost function CG^(′) of Eq. (22) (local cost function CL^(′) of (23)). As can be seen, CG^(′) can be trained up to nB = 20 qubits, while CL^(′) trained in all cases. These results indicate that global cost function presents a barren plateau even for a shallow depth ansatz, and this can be avoided by employing a local cost function.CC BY · PubMed Central
Fig. 6 Local cost CL^(′) versus number of iterations for the quantum autoencoder problem in Eqs. (25–26) with nB = 10. Each curve corresponds to a different number of layers L in the ansatz of Fig. 4 with L = 2,…, 20. Curves were averaged over 9 instances of the autoencoder. As the number of layers increases, the optimization becomes harder. Inset: Number of shots needed to reach cost values of CL^(′)=0.02 and CL^(′)=0.05 versus number of layers L. As L increases the number of shots needed to reach the indicated cost values appears to increase exponentially.
Fig. 6 Local cost CL^(′) versus number of iterations for the quantum autoencoder problem in Eqs. (25–26) with nB = 10. Each curve corresponds to a different number of layers L in the ansatz of Fig. 4 with L = 2,…, 20. Curves were averaged over 9 instances of the autoencoder. As the number of layers increases, the optimization becomes harder. Inset: Number of shots needed to reach cost values of CL^(′)=0.02 and CL^(′)=0.05 versus number of layers L. As L increases the number of shots needed to reach the indicated cost values appears to increase exponentially.CC BY · PubMed Central
Fig. 7 The block W is in the first layer of V(θ), and the operator Oi acts on the topmost m qubits in the forward light-cone L of W. Dashed thick lines indicate the backward light-cone of Oi. All but L − 1 blocks simplify to identity in Ωqp of Eq. (34).
Fig. 7 The block W is in the first layer of V(θ), and the operator Oi acts on the topmost m qubits in the forward light-cone L of W. Dashed thick lines indicate the backward light-cone of Oi. All but L − 1 blocks simplify to identity in Ωqp of Eq. (34).CC BY · PubMed Central
Fig. 8 Tensor-network representations of the terms relevant to Var[∂νC]. a Representation of Ωqpⁱ of Eq. (34) (left), where the superscript indicates that O is replaced by Oi. In this illustration, we show the case of n = 2m qubits, and we denote Ppq=∣q⟩⟨p∣. We also show the representation of Tr[ΩqpⁱΩq^(′)p^(′)^j] (middle) and of Tr[Ωqpⁱ]Tr[Ωq^(′)p^(′)^j] (right). b By means of the Weingarten calculus we can algorithmically integrate over each block in the ansatz. After each integration one obtains four new tensors according to Eq. (38). Here we show the tensor obtained after the integrations ∫dμ(W)Tr[ΩqpⁱΩq^(′)p^(′)^j] and ∫dμ(W)Tr[Ωqpⁱ]Tr[Ωq^(′)p^(′)^j], which are needed to compute ⟨ΔΩqp^(q^(′)p^(′))⟩VR as in Eq. (31). c As shown in the Supplementary Note 1, the result of the integration is a sum of the form (49), where the deltas over p, q, p^(′), and q^(′) arise from the contractions between Ppq and Pp^(′)q^(′).
Fig. 8 Tensor-network representations of the terms relevant to Var[∂νC]. a Representation of Ωqpⁱ of Eq. (34) (left), where the superscript indicates that O is replaced by Oi. In this illustration, we show the case of n = 2m qubits, and we denote Ppq=∣q⟩⟨p∣. We also show the representation of Tr[ΩqpⁱΩq^(′)p^(′)^j] (middle) and of Tr[Ωqpⁱ]Tr[Ωq^(′)p^(′)^j] (right). b By means of the Weingarten calculus we can algorithmically integrate over each block in the ansatz. After each integration one obtains four new tensors according to Eq. (38). Here we show the tensor obtained after the integrations ∫dμ(W)Tr[ΩqpⁱΩq^(′)p^(′)^j] and ∫dμ(W)Tr[Ωqpⁱ]Tr[Ωq^(′)p^(′)^j], which are needed to compute ⟨ΔΩqp^(q^(′)p^(′))⟩VR as in Eq. (31). c As shown in the Supplementary Note 1, the result of the integration is a sum of the form (49), where the deltas over p, q, p^(′), and q^(′) arise from the contractions between Ppq and Pp^(′)q^(′).CC BY · PubMed Central

Verification

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

4 more claims about this paper

Create a free account to see every claim other papers make about this one.

See all claims — free account

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Citations

Cites

Show all 70 references

Research works printed but not linked: 1

  1. Li Y Benjamin SC Efficient variational quantum simulator incorporating active error minimization Phys. Rev. X 2017 7 021050

Cited by

See all 1,047

Metadata

Authors
Cerezo, M., Sone, A., Volkoff, T., Cincio, L., & Coles, P. J.
Affiliations
Los Alamos National Laboratory (US)
Corresponding author
  • Cerezo, M.
  • Coles, Patrick J.
Venue
Nature Communications
Published
2021-03-19
Volume
12
Issue
1
Pages
1791-1791
ISSN
2041-1723 (ISSN-L)
OpenAlex
W3136233239
Cited by
1,047
References
70
Citations by year
2026: 201 · 2025: 205 · 2024: 216 · 2023: 174 · 2022: 152 · 2021: 95
FWCI
56.06
Type
journal article
Language
en
Open access
Licence
Locations
  • Nature Communications (publishedVersion, cc-by)
  • arXiv (Cornell University) (publishedVersion)
  • PubMed Central (publishedVersion, cc-by)
  • PubMed (publishedVersion)
  • RePEc: Research Papers in Economics (submittedVersion)
  • DOAJ (DOAJ: Directory of Open Access Journals) (submittedVersion, cc-by-sa)
  • OSTI OAI (U.S. Department of Energy Office of Scientific and Technical Information) (submittedVersion)
  • arXiv (Cornell University)
Funders
  • U.S. Department of Energy (20190065DR)
  • Office of Science
  • Advanced Scientific Computing Research
  • Laboratory Directed Research and Development (20190065DR, 20180628ECR, 20200677PRD1)
  • Los Alamos National Laboratory (20180628ECR, 20190065DR)
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Quantum Computing Algorithms and Architecture
  • Physical Sciences › Physics and Astronomy › Atomic and Molecular Physics, and Optics › Quantum many-body systems
  • Physical Sciences › Physics and Astronomy › Atomic and Molecular Physics, and Optics › Quantum Information and Cryptography
Keywords
barren plateaus, variational quantum algorithms, variational quantum circuits, shallow quantum circuits, gradient vanishing, cost function design, quantum autoencoders, quantum machine learning

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

How to cite

Cite CoChat for the checks on this page, and the paper for its own findings.

This page
CoChat. (2026). Citation check: Cost function dependent barren plateaus in shallow parametrized quantum circuits. https://app.cochat.ai/papers/10.1038/s41467-021-21728-w
The paper
Cerezo, M., Sone, A., Volkoff, T., Cincio, L., & Coles, P. J. (2021). Cost function dependent barren plateaus in shallow parametrized quantum circuits. Nature Communications. https://doi.org/10.1038/s41467-021-21728-w

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.