arXiv(opens in a new tab)Computer ScienceMar 2018Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:1803.11173

Barren plateaus in quantum neural network training landscapes

J. McClean, S. Boixo, V. Smelyanskiy, R. Babbush, H. Neven

Jarrod R. McClean, 1,∗^{1,*} Sergio Boixo, 1,†^{1,\dagger} Vadim N. Smelyanskiy, 1,‡^{1,\ddagger} Ryan Babbush, 1^{1} and Hartmut Neven 1^{1}

1^{1}Google Inc., 340 Main Street, Venice, CA 90291, USA (Dated: March 30, 2018)

Many experimental proposals for noisy intermediate scale quantum devices involve training a parameterized quantum circuit with a classical optimization loop. Such hybrid quantum-classical algorithms are popular for applications in quantum simulation, optimization, and machine learning. Due to its simplicity and hardware efficiency, random circuits are often proposed as initial guesses for exploring the space of quantum states. We show that the exponential dimension of Hilbert space and the gradient estimation complexity make this choice unsuitable for hybrid quantum-classical algorithms run on more than a few qubits. Specifically, we show that for a wide class of reasonable parameterized quantum circuits, the probability that the gradient along any reasonable direction is non-zero to some fixed precision is exponentially small as a function of the number of qubits. We argue that this is related to the 2-design characteristic of random circuits, and that solutions to this problem must be studied.

Rapid developments in quantum hardware have motivated advances in algorithms to run in the so-called noisy intermediate scale quantum (NISQ) regime [1]. Many of the most promising application-oriented approaches are hybrid quantum-classical algorithms that rely on optimization of a parameterized quantum circuit [2–8]. The resilience of these approaches to certain types of errors and high flexibility with respect to coherence time and gate requirements make them especially attractive for NISQ implementations [3, 9–11].

The first implementation of such algorithms was developed in the context of quantum simulation with the variational quantum eigensolver [2, 3]. This algorithm has been successfully demonstrated on a number of experimental setups with extensions to excited states and other forms of incoherent error mitigation [2, 9, 12–16]. Since then, the quantum approximate optimization algorithm was developed in a similar context to address hard optimization problems [5, 17–19]. This algorithm has also been demonstrated on quantum devices [20]. These approaches have even been extended to both quantum machine learning and error correction [6, 7, 20–23].

While the precise formulation of these methods and their domains of applicability differ considerably, they typically tend to rely upon the optimization of some parameterized unitary circuit with respect to an objective function that is typically a simple sum of Pauli operators or fidelity with respect to some state. This framework is reminiscent of the methodology of classical neural networks [23, 24]. As with any non-linear optimization, the choice of both the parameterization and the initial state is important. In quantum simulation, there is often a choice inspired by physical domain knowledge [3, 17, 25–29]. However, in all domains of applicability, there have been implementations that utilize parametrized random circuits of varying depth [7, 13, 21, 23, 30]. Within quantum simulation that approach has been referred to as a “hardware efficient ansatz” [13].

When little structure is known about the problem or

Figure

FIG. 1. A cartoon of the general geometric results from this work. The sphere depicts the phenomenon of concentration of measure in quantum space: the fraction of states that fall outside a fixed angular distance from zero along any coordinate decreases exponentially in the number of qubits [37]. This implies a flat plateau where observables concentrate on their average over Hilbert space and the gradient is exponentially small. The fact that only an exponentially small fraction of states fall outside of this band means that searches resembling random walks will have an exponentially small probability of exiting this “barren plateau”.

constraints of the existing quantum hardware may prevent utilizing that structure, choosing a random implementable circuit seems to provide an unbiased choice. One might also expect, based on recent experimental designs for “quantum supremacy”, that random quantum circuits are a powerful tool for such a task [31]. Also, despite concerns about gradient-based methods in classical deep neural networks [32–34], they are successful [24], even if using random initialization [33, 35]. However, in the quantum case one must remember that the estimation of even a single gradient component will scale as O(1/ϵα)O(1/\epsilon^{\alpha}) for some small power α\alpha [36] as opposed to classical implementations where the same is achieved in O(log⁡(1/ϵ))O(\log(1/\epsilon)) time.

We will present results related to random quantum circuits in the context of the exponential dimension of Hilbert space and gradient based hybrid quantum-classical algorithms. A cartoon depiction of this is given in Figure 1. We show that for a large class of random circuits, the average value of the gradient of the objective function is zero, and the probability that any given instance of such a random circuit deviates from this average value by a small constant ϵ\epsilon is exponentially small in the number of qubits. This can be understood in the geometric context of concentration of measure [38–40] for high dimensional spaces. When the measure of the space concentrates in this way, the value of any reasonably smooth function will tend towards its average with exponential probability, a fact made formal by Levy's lemma [37]. In our context, this means that the gradient is zero over vast reaches of quantum space.

The region where the gradient is zero does not correspond to local minima of interest, but rather an exponentially large plateau of states that have exponentially small deviations in the objective value from the average the totally mixed state. We argue that the depth of circuits which achieve these undesirable properties are modest, requiring only O(n1/d)O(n^{1/d}) depth circuits on a d dimensional array, and numerically evaluate the constant factors one expects to encounter for small instances of this kind. We close with an outlook on how this result should shape strategies in ansatz design for scaling to larger experiments.

Gradient concentration in random circuits

We will discuss random parameterized quantum circuits (RPQCs)

U(θ⃗)=U(θ1,...,θL)=∏l=1LUl(θl)Wl(1)U(\vec{\theta})=U(\theta_{1},...,\theta_{L})=\prod_{l=1}^{L}U_{l}(\theta_{l})W_{l} \tag{1}

where Ul(θl)=exp⁡(−iθlVl)U_l(\theta_l) = \exp(-i\theta_l V_l), VlV_l is a hermitian operator, and WlW_l is a generic unitary operator that does not depend on any angle θl\theta_l. Circuits of this form are a natural choice due to a straightforward evaluation of the gradient with respect to most objective functions and have been introduced in a number of contexts already [26, 41]. Consider an objective function E(θ)E(\theta) expressed as the expectation value over some hermitian operator HH,

E(θ⃗)=⟨0∣U(θ⃗)†HU(θ⃗)∣0⟩.(2)E(\vec{\theta})=\langle0|U(\vec{\theta})^{\dagger}H U(\vec{\theta})|0\rangle. \tag{2}

When the RPQCs are parameterized in this way, the gradient of the objective function takes a simple form:

∂kE≡∂E(θ⃗)∂θk=i⟨0∣U−†[Vk,U+†HU+]U−∣0⟩(3)\partial_{k}E\equiv\frac{\partial E(\vec{\theta})}{\partial\theta_{k}}=i\left\langle0\right|U_{-}^{\dagger}\left[V_{k},U_{+}^{\dagger}H U_{+}\right]U_{-}\left|0\right\rangle \tag{3}

where we introduce the notations U−≡∏l=0k−1Ul(θl)WlU_{-} \equiv \prod_{l=0}^{k-1} U_l(\theta_l) W_l, U+≡∏l=kLUl(θl)WlU_{+} \equiv \prod_{l=k}^L U_l(\theta_l) W_l, and henceforth drop the subscript kk from Vk→VV_k \to V for ease of exposition. Finally, we will define our RPQCs U(θ⃗)U(\vec{\theta}) to have the property that for any

Figure

FIG. 2. Left: The generic subunit of circuits we study in this work, with a parameterized component Ul(θl)U_l(\theta_l) and non-parameterized unit WlW_l for each layer ll. Right: Example schematic of the 1D random circuits used in our numerical experiments. The circuit begins with a square root of Hadamard applied to all qubits followed by a specified number of layers of randomly chosen Pauli rotations applied to each qubit and then a 1D ladder of controlled Z gates. The initial square root of Hadamard gates are not repeated in each layer. The indices ii and jj in θi,j\theta_{i,j} index the layer and qubit respectively. For each layer and qubit Pi,j∈{X,Y,Z}P_{i,j} \in \{X, Y, Z\} and θi,j∈[0,2π)\theta_{i,j} \in [0, 2\pi) are sampled independently.

gradient direction ∂kE\partial_k E defined above, the circuit implementing U(θ⃗)U(\vec{\theta}) is sufficiently random such that either U−U_-, U+U_+, or both match the Haar distribution up to the second moment, and the circuits U−U_- and U+U_+ are independent.

Our results make use of properties of the Haar measure on the unitary group dμHaar(U)≡dμ(U)d\mu_{\mathrm{Haar}}(U) \equiv d\mu(U), which is the unique left- and right-invariant measure such that

∫U(N)dμ(U)f(U)=∫dμ(U)f(VU)=∫dμ(U)f(UV)(4)\int_{U(N)}d\mu(U)f(U)=\int d\mu(U)f(VU)=\int d\mu(U)f(UV) \tag{4}

for any f(U)f(U) and V∈U(N)V \in U(N), where the integration domain will be implied to be U(N)U(N) when not explicitly listed. While this property is valuable for proofs, quantum circuits that exactly achieve this invariance generically require exponential resources. This motivates the concept of unitary t-designs [42–44], which satisfy the above properties for restricted classes of f(U)f(U), often requiring only modest polynomial resources. Suppose {pi,Vi}\{p_i, V_i\} is an ensemble of unitary operators, with unitary ViV_i being sampled with probability pip_i. The ensemble {pi,Vi}\{p_i, V_i\} is a k-design if

∑ipiVi⊗tρ(Vi†)⊗t=∫dμ(U)U⊗tρ(U†)⊗t.(5)\sum_{i}p_{i}V_{i}^{\otimes t}\rho(V_{i}^{\dagger})^{\otimes t}=\int d\mu(U)U^{\otimes t}\rho(U^{\dagger})^{\otimes t}. \tag{5}

This definition is equivalent to the property that if f(U)f(U) is a polynomial of at most degree tt in the matrix elements of UU and at most degree tt in the matrix elements of U∗U^*, then averaging over the tt-design {pi,Vi}\{p_i, V_i\} will yield the same result as averaging over the unitary group with the respect to the Haar measure.

The average value of the gradient is a concept that requires additional specification because, for a given point, the gradient can only be defined in terms of the circuit that led to that point. We will use a practical definition that leads to the value we are interested in, namely

⟨∂kE⟩=∫dUp(U)∂k⟨0∣U(θ⃗)†HU(θ⃗)∣0⟩(6)\langle\partial_{k}E\rangle=\int d U p(U)\partial_{k}\left\langle0\right|U(\vec{\theta})^{\dagger}H U(\vec{\theta})\left|0\right\rangle \tag{6}

where p(U)p(U) is the probability distribution function of UU. A review on the properties of products of independent random matrices can be found in Ref. [45]. The assumptions of independence and at least one of U−U_{-} or U+U_{+} forming a 1-design in our RPQCs implies that ⟨∂kE⟩=0\langle\partial_k E\rangle = 0, as shown in the appendix.

Levy’s lemma informs our intuition about the expected variance of this quantity through simple geometric arguments. In particular, Haar random unitaries on nn qubits will output states uniformly in the D=2n−1D = 2^n - 1 dimensional hypersphere. The derivative with respect to the parameters θ\theta is Lipschitz continuous with some parameter η\eta that depends on the operator HH. Levy’s lemma then implies that the variance of measurements will decrease exponentially in the number of qubits. This intuition may be made more precise through explicit calculation of the variance, which is done in more detail in the appendix. The result is that

Var[∂kE]={−Tr(ρ2)22nTr⟨[V,u†Hu]2⟩U+−Tr(H2)22nTr⟨[V,uρu†]2⟩U−2Tr(H2)Tr(ρ2)(Tr(V2)23n−Tr(V)224n)(7)\mathrm{Var}\left[\partial_{k}E\right]=\left\{\begin{array}{l}-\frac{\mathrm{Tr}\left(\rho^{2}\right)}{2^{2n}}\mathrm{Tr}\left\langle\left[V,u^{\dagger}H u\right]^{2}\right\rangle_{U_{+}}\\-\frac{\mathrm{Tr}\left(H^{2}\right)}{2^{2n}}\mathrm{Tr}\left\langle\left[V,u\rho u^{\dagger}\right]^{2}\right\rangle_{U_{-}}\\2\mathrm{Tr}\left(H^{2}\right)\mathrm{Tr}\left(\rho^{2}\right)\left(\frac{\mathrm{Tr}\left(V^{2}\right)}{2^{3n}}-\frac{\mathrm{Tr}\left(V\right)^{2}}{2^{4n}}\right)\end{array}\right. \tag{7}

where the notation ⟨f(u)⟩Ux\langle f(u)\rangle_{U_x} indicates the average with uu drawn from p(Ux)p(U_x), and the first case corresponds to U−U_- being a 2 design and not U+U_+, the second to U+U_+ being a 2-design but not U−U_-, and the third to both U+U_+ and U−U_- being 2-designs. We emphasize the fact that this variance depends at most on polynomials of degree 2 in UU and polynomials of degree 2 in U∗U^*. Whereas a unitary 2-design will exhibit the correct variance [43, 46], a unitary 1-design will exhibit the correct average value, but not necessarily the variance. As a result, if a circuit is of sufficient depth such that for any ∂kE\partial_k E, either U−U_- or U+U_+ forms a 2-design, then with high probability one will produce an ansatz state on a barren plateau of the quantum landscape, with no interesting search directions in sight.

References (56)