Quantum lower bounds for convex optimization and real matrix-vector query problems
Andrew M. Childs
Abstract
We (the author and the AI systems that did the heavy lifting) show that the quantum query complexity of minimizing a convex function over a convex subset of Rn with evaluation and membership queries is Ω~(n), nearly matching the best known upper bound. In particular, we show this even for quadratic minimization, which is equivalent to inverting an n×n real matrix using matrix-vector queries. We also show linear or nearly linear lower bounds on the quantum query complexity of computing the trace, the sign of the determinant, and the magnitude of the determinant of a real matrix in the matrix-vector query model. We use a novel quantum lower bound technique, the determinantal witness method, based on identifying a witness whose Fourier transform vanishes on low-rank matrices and that correlates well with the function being computed.
1 Introduction
Minimizing convex functions is a basic computational problem with broad applications, including combinatorial optimization, machine learning, control systems, signal processing, and finance, among others. While convex optimization can be performed efficiently by classical algorithms, prior work has investigated the possibility of even faster algorithms using quantum computation.
In one natural formulation of this problem, we are given query access to a convex function evaluating f:Rn→R at a given point x∈Rn, an oracle determining whether x∈Rn belongs to a convex body over which f is to be minimized, and a point in that body. Under standard boundedness and well-roundedness assumptions, and suppressing logarithmic dependence on geometric, scale, and accuracy parameters, the best known classical randomized algorithm for this problem uses O^(n2) queries [1] (where the tilde indicates that logarithmic factors are neglected), which was recently shown to be nearly optimal [2]. There is a quantum algorithm using only O^(n) queries [3,4], a quadratic improvement. The best quantum lower bound we are aware of is only Ω~(n) [3,4], leaving open the possibility of anything from a fourth-power quantum speedup to no quantum speedup.
It is also natural to consider the setting where we additionally have access to an oracle computing the gradient of f at any chosen point. Such an oracle captures the scenario where f is described by an explicit formula that can be efficiently differentiated as well as evaluated. Indeed, provided f is given as an efficient procedure, automatic differentiation can often be used to efficiently evaluate its gradient [5]. In the gradient oracle setting, classical algorithms can perform convex optimization using only O^(n) queries. However, the addition of a gradient oracle does not provide a significant benefit for quantum algorithms—indeed, the algorithms of [3,4] work by computing a (sub)gradient using poly(log n) queries to an evaluation oracle using Jordan's gradient estimation algorithm [6]. Therefore, no quantum speedup is known in this setting.
In the work mentioned above, we assume the oracles provide results with arbitrarily high accuracy, we demand that the output is also produced with arbitrarily high accuracy, and we study the query complexity as a function of the dimension n. It is also natural to study the complexity as a function of the allowed output error ϵ, restricting attention to algorithms whose complexity is independent of n. In this setting, given access to evaluation and (sub)gradient oracles, both the classical and quantum query complexities are Θ(1/ϵ2) (more precisely, they are Θ((GR/ϵ)2) assuming the function is G-Lipschitz and one is given a point within a distance R of the true minimum), so there is provably no quantum speedup [7]. Since this question has essentially been resolved, for the remainder of the paper we focus on dimension dependence for algorithms that achieve arbitrarily small ϵ (in particular, we give a lower bound that holds for ϵ=1/poly(n)).
An especially simple kind of convex function is a positive definite quadratic form plus a linear term, fA,b(x)=21x⊤Ax+b⊤x, where A∈Rn×n is positive definite (and therefore symmetric) and b∈Rn. The best known quantum query complexity for convex optimization is O~(n) even for the quadratic case. This optimization problem has a clean linear-algebraic description: since ∇fA,b(x)=Ax+b, fA,b(x) is minimized at x=−A−1b. Furthermore, using quantum gradient estimation [6], poly( logn) quantum queries to fA,b suffice to determine b, and also to implement an oracle that produces Ax on input x (a so-called matrix-vector query). Conversely, given a matrix-vector query oracle for A and knowledge of the vector b, we can implement fA,b using a constant number of queries. Thus, the tasks of minimizing the quadratic function fA,b given an evaluation oracle, and of computing A−1 applied to a particular input vector using matrix-vector queries for A, have the same query complexity up to log factors, so we focus on the inversion problem with matrix-vector queries. Clearly, n ideal queries suffice, but lower bounds have been elusive.
The task of determining properties of a matrix using matrix-vector queries has been widely studied in a classical context (see for example [8,9]). There has been some progress on understanding quantum query complexity in the matrix-vector model over finite fields [10], but only limited progress for real matrices. A significant obstacle is that the lower bounds of [10] primarily rely on the polynomial method [11], which does not extend naturally to query problems with continuous input.
In this paper, we develop techniques for lower bounding quantum query complexity in the matrix-vector model over the reals and use them to resolve the quantum query complexity of convex optimization up to log factors. Along the way, we prove other results for the matrix-vector query model, namely for computing the trace and determinant, resolving several open questions from [10].
In the matrix-vector query model, for an unknown matrix A, an ideal query acts as
UA:∣x,y⟩↦∣x,y+Ax⟩(1)
for all x,y∈Rn. It is often more convenient to work with a phase oracle, obtained by conjugating UA by the Fourier transform on the output register, giving
U^A:∣x,y⟩↦e2πiy⊤Ax∣x,y⟩.(2)
The above formulation is an idealization since real numbers cannot be represented using finitely many bits. We address this by defining the problem through discretization, representing real numbers with arbitrarily high precision and demanding that an algorithm produce the answer with arbitrarily high precision. We formalize this model in Section 2 below.
We show query lower bounds using a technique, developed in Section 3, that we call the determinantal witness method. This approach uses the simple observation that the A-dependent phase accumulated by a quantum algorithm using t matrix-vector queries is described by a measure over matrices with Fourier components of rank at most t. Consequently, we show in Lemma 3.3 that we can lower bound the failure probability of a t-query algorithm by finding a measure that is well-correlated with the function to be computed, and that has no support on Fourier components of rank at most 2t. As shown in Section 3.2, we can construct such a witness by applying the Cayley operator (the determinant of a matrix of partial derivatives) to a smooth function of the input matrix. If such a determinantal witness correlates well with the function, the result is a good lower bound.
This approach can be viewed as a cousin of the polynomial method [11], replacing polynomial degree with matrix rank, and replacing orthogonality to low-degree polynomials by the vanishing of a certain measure on low-rank Fourier components. In particular, the notion of a dual witness appears related to the concept of the dual polynomial in Boolean function complexity [12]. Note that the “rank method” of Boneh and Zhandry [13] is apparently unrelated, despite also featuring matrix rank. The rank method bounds the success probability of a quantum algorithm in terms of the rank of a matrix whose rows are the final states for different oracles; rank plays a different role in the determinantal witness method.
By constructing and analyzing appropriate dual witnesses, we use the determinantal witness method to prove several quantum lower bounds on matrix-vector query problems:
In Section 4, we prove an Ω(n/logn) lower bound for computing the trace (Theorem 4.4).
In Section 5, we prove a lower bound of Ω(n) for computing the sign of the determinant (Theorem 5.2), and a bound of Ω(n/logn) for computing its magnitude within some n-dependent additive error (Theorem 5.6).
In Section 6, we prove an Ω(n/logn) lower bound for computing the first column of the inverse (Theorem 6.6). Indeed, we show the bound for inverse polynomial accuracy, even for matrices with polynomial condition number. This analysis is the most technically involved, building upon concepts from Section 5 and applying results from random matrix theory. We initially consider matrices with entries drawn independently from the standard normal distribution, which are very unlikely to be positive definite. However, a reduction shows that the bound also applies to positive definite matrices (Corollary 6.8).
The last of these results implies an Ω~(n) lower bound on the quantum query complexity of convex optimization using evaluation queries. Indeed, we show this even for constrained optimization over a fixed unit ball (Corollary 6.9). This implies that the algorithms of [3,4] are nearly optimal, achieving at most quadratic speedup over the best known classical algorithm [1], up to log factors. Furthermore, since a quantum computer can use evaluation queries to implement a gradient oracle with only logarithmic overhead, this result also shows an Ω~(n) lower bound for optimization when gradient queries are provided, ruling out more than logarithmic quantum speedup in this case.
This work suggests several questions for future investigation. First, while we settle the quantum query complexity of the trace, determinant, and inversion problems for real matrices, we do not consider the problem of rank testing, which is solved for finite fields in [10]. More generally, one might show lower bounds on the matrix-vector quantum query complexity of other tasks. It is also natural to ask whether any of the lower bound techniques developed here can be applied to problems outside the matrix-vector query model. In the context of optimization, we only prove hardness for quite small inverse polynomial error (O(n−49)). We leave it for future work to tighten this bound and to better understand the best possible scaling with both n and the error.
2 Query model
To formalize the setting, we define a matrix-vector query as a discretized version of Eq. (2). When provided with query access to a matrix A∈Rn×n, we are also given a bound Λ≥∥A∥max:=maxi,j∈[n]∣Aij∣. For a parameter k∈N that the algorithm is free to choose, each coordinate of x and y is represented by 2k bits (k bits representing the integer part and sign, and another k bits representing the fractional part), ranging over D:={−22k−1+1,−22k−1+2,…,22k−1−1}/2k (where we omit one additional value that could be encoded with 2k bits so that D is closed under negation). The corresponding discrete Fourier transform is taken over Z22k−1. The query acts precisely as in Eq. (2), i.e.,
U^A:∣x,y⟩↦e2πiyTAx∣x,y⟩,(3)
where k is left implicit, and the only restriction is that x,y∈Dn. An algorithm can choose any finite k depending on n, Λ, and the desired accuracy of the computation, but not on the unknown A, and it must succeed for every admissible A. As we formalize in Lemma 6.7, a query in this model can effectively compute the application of A to a given vector with arbitrarily high accuracy. All the lower bounds we prove are uniform in k and use finite values of Λ, so that an algorithm can choose a sufficiently large k to avoid aliasing.
Note that we need not separately provide inverse queries, since conjugating the output register by the operation ∣y⟩↦∣−y⟩ maps U^A to U^−A=U^A−1, so an inverse query can be exactly simulated with one forward query. The operation ∣y⟩↦∣−y⟩ is well defined since we chose D to be closed under negation.
Similarly, as observed in [10, Theorem 9], a single matrix-vector query to A can be used to implement a matrix-vector query to A⊤. Concretely, letting S swap the two registers of Eq. (3), a simple calculation shows that SU^AS=U^A⊤, so we can implement a matrix-vector query to A⊤, or the inverse of such a query, using one matrix-vector query to A.
When considering an optimization problem with query access to a function f:Rn→R, we are also given a query region K⊂Rn and a bound Ξ≥supx∈K∣f(x)∣. Queries to f are provided via a discretized phase oracle O^f:∣x,y⟩↦e2πiyf(x)∣x,y⟩ for x∈Dn∩K and y∈D. Outside K, the query acts as the identity. Again an algorithm may choose any finite k depending on n, Ξ, and the desired accuracy, but not on the unknown function f.
3 The determinantal witness method
In this section, we describe the method used to prove lower bounds in this paper. Section 3.1 introduces the concept of a dual witness, and Section 3.2 shows how to construct such a witness using the Cayley operator.
3.1 Dual witnesses
We begin with a simple characterization of t-query quantum algorithms in terms of a linear combination of phase contributions from rank-t matrices. Let Rr:={M∈Rn×n:rank(M)≤r} denote the set of real n×n matrices of rank at most r (the rank variety), and let ⟨A,M⟩:=tr(A⊤M).
Since we consider algorithms with finite query registers, all of the integrals in the following lemma and its proof in fact represent finite sums.
Lemma 3.1. For any quantum algorithm using t queries to U^A, the probability of any measurement outcome has the form
∫R2te2πi⟨A,M⟩dμ(M),(4)
where μ is an A-independent discrete complex measure on R2t.
Proof. Consider a general t-query algorithm
VA=VtU^AVt−1⋯V1U^AV0(5)
with A-independent unitaries V0,…,Vt acting on the query registers tensored with a workspace register. Inserting the identity between queries (acting at an implicit discretization level k), for any states ∣ψ⟩,∣ϕ⟩ we have
is a discrete measure supported on matrices of rank at most t.
When measuring the final state in a basis that includes ∣ϕ⟩, the probability of obtaining that outcome is
∣⟨ϕ∣VA∣ψ⟩∣2=∫Rt2e2πi⟨A,M−M′⟩dν(M)dν(M′),(9)
which has the form of Eq. (4) since its measure is supported on matrices M−M′∈Rt−Rt=R2t. More generally, the probability of obtaining a given outcome for a more general measurement is a linear combination of such expressions, so it has the same form.
We emphasize that the conclusion of Lemma 3.1 holds independently of the discretization level k chosen by the algorithm.
We can use this representation to lower bound the query complexity of a matrix-vector query problem. Suppose the input is promised to come from a set P⊆Rn×n, and consider a decision problem D:P→{0,1}. A t-query lower bound for computing D follows from the existence of a complex measure whose Fourier transform vanishes on matrices of rank at most 2t, and that has significant correlation with D. For additional flexibility, we allow the measure to have some support outside P. Let ∥ξ∥1:=∫∣dξ∣ denote the total variation of a measure ξ.
Definition 3.2. For a matrix-vector query decision problem D:P→{0,1} with promise set P⊆Rn×n, a dual witness for rank r is a complex measure ξ=ξ0+ξ1, with ξ0 supported on P (i.e., ξ0(A)=0 if A∈/P), 0<∥ξ0∥1<∞, and ∥ξ1∥1<∞, such that
∀M∈Rr,ξ^(M):=∫Rn×ne2πi⟨A,M⟩dξ(A)=0.(10)
Lemma 3.3. If ξ=ξ0+ξ1 is a rank-2t dual witness for D:P→{0,1} with promise set P⊆Rn×n, then any t-query quantum algorithm has failure probability (in the worst case over P) at least
∥ξ0∥1∣∫Rn×nD(A)dξ(A)∣−∥ξ1∥1,(11)
for any extension of D to a {0,1}-valued function on all of Rn×n.
Proof. Let p(A) be the acceptance probability of a t-query algorithm on input A∈Rn×n. By Lemma 3.1,
(the exchange of integrals is justified since the integral over R2t is in fact a finite sum), which vanishes since ξ^(M)=0 for M∈R2t by Definition 3.2. Therefore
Using Hölder’s inequality for the first term, ∣D(A)−p(A)∣≤1 for the second (since D(A)∈{0,1} and p(A)∈[0,1]), and the triangle inequality, we have
∫Rn×nD(A)dξ(A)≤∥D−p∥∞,P∥ξ0∥1+∥ξ1∥1,(16)
where ∥D−p∥∞,P:=supA∈P∣D(A)−p(A)∣. For an input A∈P, the failure probability of the algorithm is 1−p(A) if D(A)=1 and p(A) if D(A)=0, i.e., exactly ∣D(A)−p(A)∣, so ∥D−p∥∞,P is the worst-case failure probability, and rearranging Eq. (16) gives Eq. (11). □
3.2 Determinantal witnesses
To apply Lemma 3.3, we construct a family of measures that vanish on Rr.
For an n×n matrix X of variables Xij, define ∂Xij:=∂Xij∂. The Cayley operator is
det(∂X)=σ∈Sn∑sgn(σ)i=1∏n∂Xiσ(i).(17)
We define the Fourier transform of f:Rn×n→C as
f^(M)=∫Rn×ne2πi⟨X,M⟩f(X)dX.(18)
We say that f is a Schwartz function if supX∈Rn×n∣Xr∂sf(X)∣<∞ for all r,s∈{0,1,2,…}n×n, where Xr:=∏i,j=1nXi,jri,j and ∂s:=∏i,j=1n∂Xi,jsi,j.
The following result characterizes the Fourier transform of a polynomial of the Cayley operator.
Lemma 3.4. Let b:Rn×n→R be a Schwartz function. Let P be a polynomial in {Xij:i,j∈[n]}. Then
since the boundary terms vanish for a Schwartz function. For a monomial P=∏i,jXijaij, repeating this process for all factors of P gives (−2πi)∑i,jaij∏i,jMijaijb^(M)=P(−2πiM)b^(M). The result for a general polynomial follows by linearity. □
For a given Schwartz function b:Rn×n→R, we construct an associated function β:Rn×n→C defined as
β=det(−2πi1∂X)b,(23)
which we call a determinantal witness. More generally, for I,J⊆[n], let det(MI,J) denote the minor of M∈Rn×n corresponding to rows in I and columns in J, and define
βI,J=det((−2πi1∂X)I,J)b.(24)
We also define the associated complex measure dβ(X)=β(X)dX, and similarly for βI,J.
This construction gives measures whose Fourier transforms vanish on matrices of bounded rank, satisfying Eq. (10) in Definition 3.2.
Lemma 3.5. For all M∈Rn×n, β^(M)=det(M)b^(M), which is 0 for M∈Rn−1. More generally, for I,J⊆[n] with ∣I∣=∣J∣=r+1, β^I,J(M)=det(MI,J)b^(M) vanishes on Rr.
Proof. The identities follow from Lemma 3.4 with P(X)=det(−2πi1XI,J). We have β^I,J(M)=0 for M∈Rr since then det(MI,J)=0.
4 Trace
We now show how to use this method to lower bound the query complexity of computing the trace. Note that the lower bound for matrix inversion builds upon that for the determinant, but does not directly use results from this section, so a reader who is not interested in the trace lower bound for its own sake can safely skip to Section 5.
We first characterize the behavior of a determinantal witness for a function that separates over the matrix entries, and then choose the factors to achieve the desired lower bound. Let
b(A)=i=1∏nbd(Aii)i=j∏bod(Aij)(25)
for pointwise nonnegative Schwartz functions bd,bod:R→R with ∥bd∥1=∥bod∥1=1.
Lemma 4.1. Define β as in Eq. (23) using b(A) as in Eq. (25). Then for any bounded measurable function D(A)=d(trA),
∫Rn×nD(A)dβ(A)=(−2πi1)n∫Rd(τ)(bd′)∗n(τ)dτ(26)
where a prime denotes differentiation and ∗n denotes n-fold convolution.
Proof. From Eq. (23), β(A)=(−2πi1)n∑σ∈Snsgn(σ)∏i=1n∂Aiσ(i)b(A). Since the form of b in Eq. (25) has each entry Aij in exactly one factor, we have
For fixed σ, the integrand is a product of univariate functions, one for each entry of A, and the weight d(trA) only depends on the sum of the diagonal entries, so the integral factors as a product over the off-diagonal entries of A and an n-dimensional integral over the diagonal.
We claim that the terms where σ=id vanish. Indeed, if σ(i)=i, then the integral over the variable Aiσ(i) is proportional to ∫Rbod′(Aiσ(i))dAiσ(i), which is zero by the fundamental theorem of calculus (as bod is Schwartz). Therefore
To apply Lemma 3.3 with ξ=β, it remains to choose the functions bd,bod, the split ξ=ξ0+ξ1, and a concrete decision function and promise, to make the ratio in Eq. (11) sufficiently large. For simplicity, suppose n is even (this is without loss of generality since a simple padding argument shows that the complexity is nondecreasing in n). Consider the decision problem D(A)=1trA≥θ (i.e., d(τ)=1τ≥θ) for θ=(n−1)/2, where 1 denotes the indicator function, with the promise P={A∈Rn×n:∣θ−trA∣≥31,∥A∥max≤24n3/2}.
Let gδ:R→R be a smooth, even, nonnegative mollifier with ∥gδ∥1=1, supported on [−δ,δ] with δ≤6n1, and let bd=1[0,1]∗gδ. We have ∥bd∥1=1, and since bd′(τ)=gδ(τ)−gδ(τ−1), ∥bd′∥1=2. For the off-diagonal part, set w=16n3/2 and let bod=w11[0,w]∗gw/2 where gw/2:R→R is a smooth, even, nonnegative mollifier with ∥gw/2∥1=1, supported on [−w/2,w/2]. Then ∥bod∥1=1 and ∥bod′∥1=w2 (which we can make small by taking w large). Finally, define β according to Eqs. (23) and (25).
Let βid(A):=(−2πi1)n∏i=1nbd′(Aii)∏i=jbod(Aij) (the σ=id term of the determinant), and let βid:=β−βid (the remaining terms). (When applying Lemma 3.3, we use ξ0=βid and ξ1=βid). Then we can compute the correlation with the decision function as follows.
Lemma 4.2. ∣∫Rn×nD(A)dβ(A)∣=(2n−1−1)/(2π)n.
Proof. Lemma 4.1 expresses ∫Rn×nD(A)dβ(A) in terms of (bd′)∗n. Let ⊤ denote an operator that translates a function by one unit, i.e., ⊤f(τ)=f(τ−1). Since translation commutes with convolution, we have
Lemma 4.3. We have suppβid⊆P, ∥βid∥1=1/πn, and provided ∥bod′∥1≤81n−3/2, ∥βid∥1≤81n−1/2∥βid∥1.
Proof. First, on the support of βid, each diagonal entry of A lies in suppbd′⊆[−δ,δ]∪[1−δ,1+δ], so trA is within nδ≤61 of some integer k. Since θ is a half-integer, ∣θ−trA∣≥21−61=31. Moreover, suppbod⊆[−w/2,3w/2], so every matrix A∈suppβid satisfies ∥A∥max≤24n3/2. Therefore suppβid⊆P.
Second, we have ∥βid∥1=∥bd′∥1n/(2π)n=1/πn (recall ∥bd′∥1=2).
(40) where fix(σ) is the number of fixed points of σ. Applying the triangle inequality to the expression for βid as a sum over non-identity permutations and using the fact that there are at most nk elements of Sn with n−k fixed points gives
Combining the above results gives the desired lower bound for trace computation.
Theorem 4.4 (Trace lower bound). The bounded-error quantum query complexity of computing the trace of an n×n real matrix in the matrix-vector query model with additive error less than 1/3 is Ω(n/logn), even with the promise that the entries of the matrix are at most 24n3/2 in magnitude.
Proof. By Lemma 3.5, β^ vanishes on Rn−1, satisfying Eq. (10) in Definition 3.2 with r=n−1. By the first fact in Lemma 4.3, ξ=β is a dual witness for the given decision problem with ξ0=βid and ξ1=βid. Using Lemmas 4.2 and 4.3, Eq. (11) of Lemma 3.3 shows that the failure probability of any quantum algorithm making fewer than n/2 queries is at least
where we used the bound 2n1(2n−1n−1)=2n+11(n/2n)≥4n1 [14, p. 309]. By a standard boosting argument, logarithmic overhead suffices to reduce the error probability from constant to 1/poly(n), so this shows that Ω(n/logn) queries are required for the decision problem (and therefore also to compute the trace).
5 Determinant
We now consider the quantum query complexity of computing the determinant. In Section 5.1 we give a simple argument showing an Ω(n) lower bound for computing the sign of the determinant, and in Section 5.2 we show that Ω(n/logn) queries are needed to compute its magnitude. The analysis relies on properties of matrices whose entries are chosen independently from N(0,1), the Gaussian distribution with mean 0 and variance 1.
Let
γ(X):=(2π)n2/21e−⟨X,X⟩/2(46)
denote the standard Gaussian density on Rn×n, so that ∫Rn×nf(X)γ(X)dX=E[f(A)] where the entries of A are drawn independently from N(0,1) (throughout Section 5, expectations are over this distribution unless specified otherwise).
5.1 Sign
It is straightforward to lower bound the quantum query complexity of computing the sign of the determinant. Indeed, the argument is simple enough that it avoids incurring logarithmic overhead.
The Cayley operator (Eq. (17)) has a simple action on the Gaussian density γ.
The expression in square brackets is simply det(X).
Define β by Eq. (23) with b=γ. By Lemma 5.1,
β(X)=det(−2πi1∂X)γ(X)=(2πi1)ndet(X)γ(X).(49)
This dual witness directly gives the lower bound for the sign of the determinant.
Theorem 5.2. Deciding the sign of detA (and hence computing detA) for A∈Rn×n with ∣detA∣≥81E∣detA∣ requires Ω(n) quantum matrix-vector queries to A, even with some finite upper bound on the magnitudes of the entries of A.
Proof. Let D(A)=1detA≥0 and Δ:=81E∣detA∣. Choose a finite value of Λ so that
E[∣detA∣1∥A∥max>Λ]≤321E∣detA∣.(50)
Let the promise be P={A∈Rn×n:∣detA∣≥Δ,∥A∥max≤Λ}, and choose ξ0=β1P and ξ1=β−ξ0. We have
∫Rn×nD(A)dβ(A)=(2πi)n1E[1detA>0detA].(51)
Since negating a row of A flips the sign of its determinant and does not change the distribution A is drawn from, E[1detA>0detA]=−E[1detA<0detA], so
Also, ∥ξ0∥1≤∥β∥1=E∣detA∣/(2π)n and, by the union bound, ∥ξ1∥1≤(Δ+321E∣detA∣)/(2π)n. By Lemma 3.5, β^(M)=det(M)γ^(M) vanishes on Rn−1, so it is a rank- (n−1) dual witness. Therefore, by Lemma 3.3 (which applies for 2t≤n−1), any algorithm using fewer than n/2 queries fails on some input with probability at least
E∣detA∣21E∣detA∣−Δ−321E∣detA∣=3211.(54)
Therefore a bounded-error algorithm requires Ω(n) queries.
5.2 Magnitude
We now consider the problem of computing the magnitude of the determinant. The witness constructed in Section 5.1 is an odd function of detA, so it has no correlation with a decision problem that is a function of ∣detA∣. Instead, we consider
β(2)(X):=det(−2πi1∂X)2γ(X).(55)
By Lemma 3.4 with P(X)=det(−2πi1X)2, we have β(2)(M)=det(M)2γ(M), which vanishes for M∈Rn−1.
To bound this ratio, it is useful to compute E[q(A)2] and E[q(A)(detA)2]. In the calculation, we use the following standard fact about the action of the Cayley operator on powers of the determinant (see for example [15]).
Lemma 5.3 (Cayley's identity). For an n×n matrix X of variables Xij and z∈N,
det(∂X)(detX)z=z(n)(detX)z−1(60)
where z(n):=∏j=0n−1(z+j) denotes the rising factorial.
Expanding this as a sum of monomials, each factor of −Xij increases the degree, while each factor of ∂Xij lowers it. The degree-2n part of q(X) comes from taking −Xij in every factor, giving det(−X)2=det(X)2. Every other term contains at least one derivative, so it has lower degree (at most 2n−2 since the next-highest-degree term has 2n−1 contributions that increase the degree and one contribution that decreases it).
Thus, by taking p(A)=q(A) in Eq. (66) and using the fact that det(∂A)2 annihilates all terms other than (detA)2, we find E[q(A)2]=E[det(∂A)2q(A)]=E[det(∂A)2(detA)2]. Instead taking p(A)=(detA)2 in Eq. (66) gives E[q(A)(detA)2]=E[det(∂A)2(detA)2], which is identical. Finally, applying Lemma 5.3 twice, we have det(∂A)2(detA)2=2(n)det(∂A)detA=2(n)1(n)=(n+1)!n!. □
We use this result to bound the ratio in Eq. (59) for a suitable decision function.
where the interchange of the integral over θ and the expectation is justified by Fubini's theorem, since E[∣q(A)∣(detA)2]≤E[q(A)2]E[(detA)4]<∞, and the last step uses Lemma 5.4.
Now we bound the contribution to the integral from large values of θ. For any Θ>0, we have
Choosing Θ=4E[(detA)6]/((n+1)!n!), the bound in Eq. (78) is 21(n+1)!n!. Then we have ∫0ΘE[q(A)Dθ(A)]dθ≥21(n+1)!n!, so there is some θ∗∈[0,Θ] such that
To compute the denominator, we use the fact that for a matrix with independent Gaussian entries, (detA)2 is distributed as a product ∏j=1nχj2 of independent chi-squared variables, where χj2 has j degrees of freedom [16, Theorem 3.2.15]. Since E[(χj2)k]=∏i=0k−1(j+2i), we have
Using this bound on the ratio, we obtain the desired lower bound on the query complexity of the magnitude of the determinant.
Theorem 5.6. Computing ∣detA∣ (to within some n-dependent additive error εn) requires Ω(n/logn) quantum matrix-vector queries to A∈Rn×n, even with some finite upper bound on the magnitudes of the entries of A.
Proof. Choose θ∗ as in the proof of Lemma 5.5. We have θ∗>0 because the correlation vanishes at θ=0 (then D0=1, and E[q(A)]=0 by Eq. (66) with p=1), whereas the correlation in Eq. (80) is positive. Let
The value ϵn is well-defined because the weighted mass of matrices A with ∣detA∣=θ∗ is zero, so absolute continuity of the determinant implies that the set of admissible positive ϵ above is nonempty. Also, choose a finite Λ so that E[∣q(A)∣1∥A∥max>Λ]<4rnE∣q(A)∣.
Consider the problem of determining whether ∣detA∣≥θ∗+ϵn or ∣detA∣≤θ∗−ϵn, i.e., let P={A∈Rn×n:(∣detA∣≥θ∗+ϵn or ∣detA∣≤θ∗−ϵn),∥A∥max≤Λ}. Consider the decision function Dθ∗ on all of Rn×n, which agrees with the promise problem on P. Let ξ0 and ξ1 be the restrictions of β(2) (defined in Eq. (55)) to P and its complement, respectively. The Fourier transform of β(2) vanishes on Rn−1 by the calculation following Eq. (55). By the choice of truncation parameters, ∥ξ1∥1≤rn∥β(2)∥1/2. Therefore, Lemmas 3.3 and 5.5 show that any algorithm making fewer than n/2 queries has failure probability at least
∥ξ0∥1rn∥β(2)∥1−∥ξ1∥1≥2rn=Ω(n−9/2),(85)
so by a standard boosting argument, the quantum query complexity of the decision problem is Ω(n/logn). Finally, setting εn=ϵn/3, an estimate with additive error εn serves to solve this decision problem. □
Note that this proof does not establish particular scaling of the additive error with n for which the determinant computation is hard. Since our main goal is to understand the inversion problem, we leave the error scaling of determinant estimation for future work.
6 Matrix inversion and convex optimization
Finally, we lower bound the quantum matrix-vector query complexity of computing the first column of the inverse of an invertible matrix A∈R(n+1)×(n+1) (we increase the dimension of the matrix by 1 for notational simplicity in the proof) and thereby lower bound the quantum query complexity of convex optimization. In Section 6.1, we describe the determinantal witness for matrix inversion and state a key correlation bound that it satisfies. We reduce this bound to the expectation of a scalar function in Section 6.2 and then establish the bound in Section 6.3 using standard properties of Gaussian-distributed matrices. In Section 6.4, we use these results to prove the matrix inversion query lower bound. Finally, in Section 6.5 we apply this result to show hardness of quadratic optimization, which involves showing hardness of matrix inversion for positive semidefinite matrices and defining an associated quadratic function whose minimum is within the unit ball.
Motivated by the proof of Theorem 24 in [10], consider a block matrix of the form
A=(avu⊤B)∈R(n+1)×(n+1)(86)
where a∈R, u,v∈Rn, and B∈Rn×n. Provided B is invertible, the Schur complement gives
(A−1)11=(a−u⊤B−1v)−1.(87)
We consider the task of computing (A−1)11, and more precisely, deciding whether its magnitude is larger than some threshold θ, as indicated by the decision function
Dθ(A)=1∣(A−1)11∣≥θ.(88)
We set Dθ(A)=0 when A is singular.
6.1 The witness
Letting I:={2,…,n+1}, consider the witness
βI(2)(A):=det((−2πi1∂A)I,I)2γ(A)(89)
where the determinant with subscript I,I denotes a minor as in Eq. (24), γ(A) is the Gaussian defined in Eq. (46) (with n replaced by n+1), and q(B) is defined as in Eq. (56). By Eq. (57), since the Gaussian density factors as a product over B and the border variables a,u,v, and det((∂X)I,I) differentiates only the former,
βI(2)(A)=(2πi)2n1q(B)γ(A).(90)
By Lemma 3.4 with P(X)=det((−2πi1X)I,I)2, we have
βI(2)(M)=det(MI,I)2γ^(M),(91)
which vanishes for M∈Rn−1.
Define
Pθ(B):=a,u,vPr[∣(A−1)11∣≥θ](92)
where a and the entries of u,v∈Rn are chosen independently from N(0,1) and, here and throughout Section 6, expectations are over a matrix B with entries chosen independently from N(0,1), unless specified otherwise.
The following lower bound on the witness correlation is the key technical element of the proof.
Lemma 6.1. For any fixed θ≥5, there is a constant cθ such that for all sufficiently large n,
To prove this bound, we use a Gaussian integration-by-parts identity (Lemma 6.2), recast the quantity of interest as a one-dimensional expectation (Lemma 6.4, proven using an identity in Lemma 6.3), and apply standard bounds for properties of Gaussian matrices (Lemma 6.5).
6.2 Reduction to a scalar expectation
For 1≤i,j≤n, define the differential operator Rij acting as
RijF(B)=dtdF(B(1+tEij))t=0(94)
on a function F:Rn×n→R, where Eij is the matrix with a 1 in the i,j entry and 0 elsewhere. A straightforward application of the chain rule shows that
where the factors are ordered so that j increases from left to right.
The following is essentially a straightforward application of integration by parts, but some care must be taken to show that the singular matrices do not introduce boundary terms. Let Cn denote the class of functions whose derivatives of order 1 through n exist and are continuous.
Lemma 6.2 (Gaussian integration by parts). Let F:Rn×n→R be bounded on Rn×n and Cn on {B∈Rn×n:det(B)=0}, and suppose that every function of the form Ri1j1⋯RimjmF with m≤n is bounded there. Then
E[q(B)F(B)]=E[det(B)det(∂B)F(B)].(97)
Proof. Choose a smooth function ρ:R→[0,1] with ρ(x)=0 for x≤0 and ρ(x)=1 for x≥1, and another smooth function χ:Rn×n→[0,1] with χ(B)=1 for ∥B∥F≤1 and χ(B)=0 for ∥B∥F≥2. For constants μ,ν≥1, let
using Lemma 5.1 to get Eq. (104). By the Capelli identity, Eq. (96), this equals
E[C(B)Fμ,ν(B)]=E[C(B)(χν(B)sμ(B)F(B))].(106)
Now we remove the factors of χν and sμ. First, when C(B) acts on χν(B)sμ(B)F(B), if any term containing a derivative acts on χν(B), the result only has support where ν≤∥B∥F≤2ν. In particular, Rij(B)χν(B)=ν1∑k=1nBki(∂Bkjχ)(B/ν), which is O(1) uniformly in ν since ∣Bki∣≤∥B∥F≤2ν. The same holds for terms in which several derivatives act on χν, since each derivative of χ contributes a factor of 1/ν while each factor Bki is O(ν) on this support. Taking ν→∞, the Gaussian integrals of these terms tend to zero, so we have
Thus, when C(B) acts on sμ(B)F(B), any term with some Rij acting on sμ(B) vanishes in the μ→∞ limit, and in that limit we have
μ→∞limE[C(B)(sμ(B)F(B))]=E[C(B)F(B)].(111)
By dominated convergence, limμ,ν→∞E[q(B)Fμ,ν(B)]=E[q(B)F(B)]. Therefore, E[q(B)F(B)]=E[C(B)F(B)]. Finally, using the Capelli identity again, we obtain Eq. (97) as claimed. □
To show that the quantity in Eq. (93) can be expressed as the expectation of a scalar function, next we establish the following technical lemma.
Lemma 6.3. Fix u,v∈Rn and let s(B):=u⊤B−1v. Then for any invertible B and any h:R→R that extends to an entire function,
det(B)det(∂B)h(s(B))=−(n−1)!s(B)h′(s(B)).(112)
Proof. First, suppose detB>0. For X∈Rn×n with detX>0 and z∈C, fix the branch (detX)z:=exp(zlogdetX), where log is the real logarithm. Note that Cayley's identity (Lemma 5.3) holds for complex z with this fixed branch [15, Section 2.7].
Consider the rank-one perturbation B~:=B+λvu⊤. Since B and B~ differ by a constant, det(∂B~)=det(∂B), and by the matrix determinant lemma, detB~=det(B)(1+λs(B)). Restrict λ∈R so that ∣λs(B)∣<1. Then detB~>0, and we have (detB~)z=(detB)z(1+λs(B))z, where the powers on the right are defined using the real logarithm.
so det(B)det(∂B)s(B)j=−(n−1)!js(B)j for all j∈N. For each j, this is an identity of rational functions in the entries of B. After clearing powers of detB, it is a polynomial identity. Since it holds on the nonempty open set {B∈Rn×n:detB>0}, it holds for every invertible B. Therefore Eq. (112) holds for h(x)=xj, since xdxdxj=jxj. More generally, the result applies to any convergent Taylor series, and hence to any entire function: near any fixed invertible B, the function s is holomorphic and bounded, so the series ∑j=0∞cjs(B)j converges uniformly on a complex neighborhood and can be differentiated term by term.
With this result in hand, we now give a simplified expression for Eq. (93). Let
Φ(x):=2π1∫−∞xe−y2/2dy(119)
denote the standard normal cumulative distribution function, and let ϕ(x):=Φ′(x)=e−x2/2/2π denote the standard normal probability density function. Also, let
Ψθ(x):=Φ(x+θ1)−Φ(x−θ1)=Pra[∣a−x∣≤θ1].(120)
Lemma 6.4. With gθ(x):=−xΨθ′(x), we have
E[q(B)Pθ(B)]=(n−1)!Eu,v,B[gθ(uTB−1v)]≥0.(121)
Proof. Recalling the definition of Pθ in Eq. (92), we have
Pθ(B)=Eu,v[Ψθ(uTB−1v)].(122)
We define Pθ(B)=0 on the singular matrices, which have probability zero.
To use Lemma 6.2 with F=Pθ, we first verify its hypotheses. For invertible B, consider the coordinate change B↦BG for a matrix G close to the identity. Since this is a smooth change of variables, it suffices to show that Pθ(BG) is a smooth function of G near I. Changing variables in the Gaussian integral over u gives
Pθ(BG)=Eu,v[Ψθ(uTB−1v)wG(u)](123)
where
wG(u):=∣detG∣exp((∥u∥2−∥GTu∥2)/2).(124)
Every derivative of wG(u) with respect to entries of G gives wG(u) times a polynomial in u with bounded coefficients, so the Gaussian integral of any such derivative is bounded. Since 0≤Ψθ(x)≤1, differentiation under the expectation shows that Pθ is Cn on the invertible matrices, and that every function of the form Ri1j1⋯RimjmPθ(B) is bounded. Thus Lemma 6.2 applies.
Since det(B)det(∂B)=C(B) is a polynomial in the Rij, and the computation above justifies differentiating under Eu,v, we can apply Lemma 6.3 inside the expectation. Applying that result with h=Ψθ (which can be extended to an entire function),
and that ϕ(x) is an even function of x. If x>0, ∣x−θ1∣≤∣x+θ1∣, and since ϕ(x) is monotonically decreasing for x≥0, gθ(x)=x(ϕ(∣x−θ1∣)−ϕ(∣x+θ1∣))≥0. Then gθ(−x)=gθ(x)≥0, and gθ(0)=0. □
6.3 Proof of the correlation bound
The final ingredients for the proof of Lemma 6.1 are several standard bounds on properties of Gaussian matrices. Let σmax(B) and σmin(B) denote the largest and smallest singular values of B, respectively.
Lemma 6.5.
(a) Pr[σmax(B)>3n]≤e−n/2 and E[σmax(B)2]≤12n,
(b) E[σmin(B)]≥1/(2n), and
(c) Pr[∥v∥2∈/[n/2,2n]]≤2e−n/16.
Proof.
(a) By [18, Theorem II.13], Pr[σmax(B)>2n+t]≤e−t2/2; the first claim follows by taking t=n. For the expectation, we have
Proof of Lemma 6.1. By Lemma 6.4, it suffices to show that Eu,v,B[gθ(u⊤B−1v)]∈Ω(1/n).
Let κ:=minx∈[θ1,θ2]gθ(x)>0 (positivity follows from the proof of Lemma 6.4). The distribution of a linear combination of zero-mean Gaussians is a zero-mean Gaussian, with variance equal to the squared ℓ2 norm of the coefficients. Therefore, conditioned on B and v, we have u⊤B−1v∼N(0,V) with V:=∥B−1v∥2. Therefore
(recall that ϕ is the probability density of N(0,1) and Φ is its cumulative distribution function).
We now identify a good event that results in a suitable lower bound. By the mean value theorem and monotonicity of ϕ on [θV1,θV2], we have Φ(θV2)−Φ(θV1)≥θV1ϕ(θV2). Therefore, for V≥θ21,
Γ(V)≥θVκϕ(2).(148)
Let G be the event that σmax(B)≤3n and 2n≤∥v∥2≤2n. Conditioned on G, we have
V=∥B−1v∥2≥σmax(B)2∥v∥2≥9nn/2=181>θ21,(149)
so Eq. (148) applies.
Since σmin(B)=1/∥B−1∥, we have V−1/2≥σmin(B)/∥v∥. Therefore
where we used Lemma 6.5(b), Cauchy-Schwarz, and Lemma 6.5(a). Therefore Eu,v,B[gθ(uTB−1v)]≥cθ/n for some cθ and all sufficiently large n, so by Lemma 6.4,
E[q(B)Pθ(B)]≥cθn(n−1)!(158)
and the claim follows.
6.4 Inversion lower bound
With the correlation bound in hand, we now show our main result on the quantum query complexity of matrix inversion.
Theorem 6.6. Computing the first column of A−1 requires Ω(n/logn) quantum matrix-vector queries to an invertible matrix A∈R(n+1)×(n+1). In particular, for fixed θ≥5, Ω(n/logn) queries are needed to determine whether ∣(A−1)11∣≤θ−n−3 or ∣(A−1)11∣≥θ+n−3 with the promise that σmin(A)≥n−13/2 and σmax(A)≤3n.
Proof. Fix θ≥5. For all sufficiently large n, Lemma 6.1 gives
and consider the decision problem Dθ with the promise P=G∩H. Let ξ0=βI(2)1P and ξ1=βI(2)−ξ0.
We first bound the witness mass removed by G. By the Gaussian singular-value tail bounds from the proof of Lemma 6.5 (with n increased by 1), with ϵ=n+1n−13/2 in the bound on σmin and t=3n−2n+1≥n/2 (for n≥2) in the bound on σmax,
Pr[A∈/G]≤n+1n−13/2+e−n/8=O(n−6).(162)
Since E[q(B)2]=(n+1)!n!=(n!)2(n+1) by Lemma 5.4, Cauchy-Schwarz gives
By Eqs. (163) and (166), ∥ξ1∥1=o((2π)2nn2n!). Thus, for sufficiently large n, ∥ξ1∥1 is at most half the correlation in Eq. (159). By Eq. (91), βI(2) vanishes on Rn−1. Therefore, since ∥βI(2)∥1=(2π)2n1E∣q(B)∣≤(2π)2nn!n+1, Lemma 3.3 implies that any algorithm using fewer than n/2 quantum queries has failure probability Ω(n−5/2). As usual, since the failure probability can be reduced from constant to inverse polynomial with only logarithmic overhead, this shows that the bounded-error quantum query complexity is Ω(n/logn). □
6.5 Convex optimization
Theorem 6.6 does not immediately provide a lower bound for quadratic optimization because the matrix A in the proof need not be positive definite. Indeed, a matrix with entries chosen independently from N(0,1) is almost surely not symmetric, and its symmetric part is very likely to have both positive and negative eigenvalues. However, it is straightforward to adapt the argument to give a similar lower bound for the task of inverting the positive semidefinite (indeed, positive definite since we assume A is invertible) matrix M:=AA⊤.
Since a query to A⊤ can be implemented using one query to A (as discussed in Section 2), we can implement a query to M with three queries to A. Intuitively, since y⊤Mx=y⊤A(A⊤x), we can compute z=A⊤x into an ancilla with one query, apply the phase e2πiy⊤Az with a second query, and uncompute z with a third query. Since A⊤x need not lie in Dn, the intermediate computation only approximates it. However, the following lemma shows that the error can be made arbitrarily small by taking the discretization level k sufficiently high.
Lemma 6.7. Let A∈Rn×n, Λ≥max{∥A∥max,1}, L≥1, and ϵ∈(0,1). For any discretization level k≥log2(256n3ΛL/ϵ3), the following hold using queries to U^A at level k, together with A-independent unitaries:
(a) For any x∈Dn with ∥x∥∞≤L and B∈{A,A⊤}, we can produce an estimate z with ∥z−Bx∥∞≤ϵ with probability at least 1−ϵ using one query.
(b) Three queries suffice to implement U^AA⊤:∣x,y⟩↦e2πiy⊤AA⊤x∣x,y⟩ for x,y∈Dn with ∥x∥∞, ∥y∥∞≤L within trace distance ϵ.
Proof. First we estimate Bx for B∈{A,A⊤} using phase estimation. Let x∈Dn with ∥x∥∞≤L. Prepare an ancilla in the state ∑z∈Dn∣z⟩/∣D∣n. Applying U^B with ∣x⟩ in the input register and the ancilla in the output register gives
∣D∣n1∣x⟩z∈Dn∑e2πiz⊤Bx∣z⟩.(167)
Identify D with Z22k−1, with d∈Z22k−1 corresponding to d/2k∈D as in Section 2. Then applying the inverse Fourier transform over Z22k−1 to each ancilla coordinate gives a state ∣x⟩∣η⟩, where register j of ∣η⟩ is simply the output of phase estimation (with modulus 22k−1) for the phase (Bx)j/2k.
Since ∣(Bx)j∣≤nΛL<2k−1 by assumption, this phase has magnitude less than 1/2. As the phase determines (Bx)j only modulo 2k, this is precisely the condition under which (Bx)j is the unique consistent value in [−2k−1,2k−1), so no aliasing occurs. Let bj denote the integer with 0≤2k22k−1(Bx)j−bj<1. Since ∣(Bx)j∣/2k≤nΛL/2k≤2561, we have ∣bj∣≤25622k−1+1, so bj labels a valid state of an ancilla register. Then
so for any integer p≥2, ∣2kzj−bj∣≤p implies ∣zj−(Bx)j∣≤2p/2k. Thus, by the standard analysis of phase estimation [21, Equation (5.34)] (which carries over straightforwardly to a modulus that is not a power of 2),
z∈Dn:∣zj−(Bx)j∣>2p/2k∑∣⟨z∣η⟩∣2≤2(p−1)1(171)
for each j∈[n] and any integer p≥2.
Part (a) follows by measuring the ancilla. Letting p=1+⌈n/2ϵ⌉ and taking a union bound over the n coordinates, the outcome z satisfies ∥z−Bx∥∞≤2p/2k≤ϵ (since 2p≤4+n/ϵ and 2k≥256n/ϵ3) with probability at least 1−ϵ.
For part (b), perform a query to U^A with the ancilla of the above procedure for B=A⊤ in its input register and ∣y⟩ in its output register. The result is a state
∣ψ⟩:=∣x⟩∣y⟩z∈Dn∑e2πiy⊤Az⟨z∣η⟩∣z⟩
(172) that approximates e2πiy⊤AA⊤x∣x⟩∣y⟩∣η⟩ since ⟨z∣η⟩ is peaked around z≈A⊤x. Specifically, splitting the sum over z according to whether ∥z−A⊤x∥∞≤2p/2k and using ∣e2πia−e2πib∣≤min{2π∣a−b∣,2}, ∣y⊤A(z−A⊤x)∣≤∥A⊤y∥1∥z−A⊤x∥∞≤n2ΛL∥z−A⊤x∥∞, and Eq. (171) with a union bound over the n coordinates gives
With p=1+⌈8n/ϵ2⌉, the second term is clearly at most ϵ/2, and the first is also at most ϵ/2 since p≤10n/ϵ2 and 2k>80πn3ΛL/ϵ3. Finally, applying the Fourier transform to each ancilla coordinate, followed by U^A−1 with the x register as the input and the ancilla as the output, we return the ancilla to a uniform superposition. Overall, this implements U^AA⊤ using three queries to U^A, as claimed. The error bound established above for basis states implies the general error bound since the implementation is a direct sum over the x and y registers, and the lemma follows. □
We can now formalize the reduction from inverting M to inverting A. We have M−1=(AT)−1A−1, so ATM−1=A−1. This means that, given the first column of M−1, we can compute the first column of A−1 using one additional query (Lemma 6.7(a) applied to AT). Therefore, a t-query algorithm for inverting M gives, with arbitrarily small additional error, a (3t+1)-query algorithm for inverting A, so Theorem 6.6 implies the hardness of matrix inversion even for positive definite matrices.
In the two corollaries below, we relabel the dimension n+1 in Theorem 6.6 as n. Increasing the dimension by 1 in the corollaries weakens their promises and makes their error tolerances tighter, so the lower bounds remain valid.
Corollary 6.8. Computing the first column of M−1 with the promise that M>0 requires Ω(n/logn) quantum matrix-vector queries to M∈Rn×n. In particular, this holds for the task of computing the first column of M−1 within Euclidean error at most 61n−7/2 with the promise that
n1311≤M≤9n1.(174)
Proof. For the inputs A∈G of Theorem 6.6, the matrix M=AA⊤ satisfies Eq. (174), and ∥A∥≤3n. Given a t-query algorithm that obtains the first column of M−1 with Euclidean error at most 61n−7/2, application of A⊤ gives an estimate of the first column of A−1 with Euclidean error at most 61∥A∥n−7/2≤1/(2n3), neglecting error in the application of A⊤.
It remains to choose parameters for Lemma 6.7 that let us simulate the algorithm making queries to M with an algorithm making queries to A. Let the algorithm querying M use discretization level kM, with corresponding grid DM. A successful algorithm obtains a vector w with ∥w−M−1e1∥≤61n−7/2<1 (where e1 is the first standard basis vector), and ∥M−1e1∥≤n13 by Eq. (174), so w∈[−n13−1,n13+1]n. (If the returned vector lies outside this box, simply declare failure.) Denote the discretization level for queries to A by kA>kM, with corresponding grid DA⊃DM. The algorithm need not return a vector on the grid, so round w coordinatewise to wˉ∈DAn. Then ∥wˉ−w∥∞≤2−kA−1 and ∥A⊤(wˉ−w)∥≤3n2−kA−1. Every coordinate in DM has magnitude less than 2kM−1, and every coordinate of wˉ has magnitude less than n13+2, so L=max{2kM−1,n13+2} bounds every vector to which Lemma 6.7 is applied, independently of kA. Choose kA large enough that every simulated query to M has trace-distance error at most 12(t+1)1 and ∥A⊤(wˉ−w)∥≤8n31. In the final step of the reduction, apply Lemma 6.7(a) with ϵ=min{8n7/21,12(t+1)1} so that it estimates A⊤wˉ with Euclidean error at most 8n31, with probability at least 1−12(t+1)1. Then, provided the algorithm querying M succeeds and the final query to A⊤ succeeds, the final Euclidean error is at most 4n33<n31. A hybrid argument for the simulated queries shows that the failure probability increases by at most 12(t+1)t+12(t+1)1=121. If the algorithm querying M succeeds with probability at least 2/3, then comparing the absolute value of the first output coordinate with θ solves the decision problem of Theorem 6.6 with probability at least 7/12. Constant amplification gives a bounded-error O(t)-query algorithm, so Theorem 6.6 implies t=Ω(n/logn). □
Essentially the same reduction also shows that Theorem 5.6 still holds with the assumption that the matrix is positive definite, as we now sketch. Because the singular matrices have zero measure and β(2) is absolutely continuous, excluding singular A does not change the hard witness, so the construction can be restricted to invertible A and hence to positive definite M. In particular, using the notation of the proof of that theorem, Ω(n/logn) queries are needed to distinguish whether detM≤(θ∗−ϵn)2 or detM≥(θ∗+ϵn)2 for a positive definite M. These instances also satisfy ∥M∥max≤nΛ2.
Corollary 6.8 suggests that the quantum query complexity of quadratic minimization—and therefore general convex optimization—is Ω(n/logn). We now rigorously demonstrate this in the discretized function evaluation model, even in the setting of constrained optimization over a fixed convex region, the unit ball.
Corollary 6.9. Let K:={x∈Rn:∥x∥≤1}. Given query access to a quadratic, 1-Lipschitz on K, 10n141-strongly convex function f:Rn→R that is bounded by 1 on K, Ω(n/logn) quantum queries are needed to identify a point x~∈K satisfying
f(x~)−x∈Kminf(x)≤720n491.(175)
Proof. For an input A∈G as in the proof of Theorem 6.6, let M=AA⊤, and consider
f(x)=10n1(21xTMx+n−14e1Tx).(176)
The Hessian 10n1M satisfies 10n1411≤10n1M≤1091 (as in Eq. (174)), so f has the claimed strong convexity. Furthermore, for x∈K, we have ∣f(x)∣≤1 and ∥∇f(x)∥≤10n9n+n−14≤1, so f is 1-Lipschitz. Its unconstrained minimizer is x∗=−n−14M−1e1, with ∥x∗∥≤n−14∥M−1∥≤1/n, so this is also the unique minimum over K. If x~ satisfies Eq. (175), then by strong convexity,
∥x~−x∗∥≤20n14(f(x~)−f(x∗))(177)≤6n35/21.(178)
Suppose the optimization algorithm makes t function queries at discretization level kf, with grid Df. We simulate this using queries to A with some discretization level kA, with grid DA. For any x∈Dfn and y∈Df, compute auxiliary vectors xK,zˉ∈DAn as follows. If x∈K, let xK=x and obtain zˉ by rounding z=20nyx coordinatewise to a nearest grid point. Otherwise, set xK=zˉ=0. Apply the three-query implementation of U^M from Lemma 6.7(b) to xK,zˉ and apply the known phase e2πiyx1/(10n15) conditional on x∈K. Let L=max{20n2kf−1+1,n14+1}, which bounds every vector used in the simulation independently of kA. For x∈K, nearest-grid rounding gives ∥zˉ−z∥≤n2−kA−1, so 2π∣(zˉ−z)⊤Mx∣≤9πn3/22−kA. Choose kA large enough that this rounding error and the trace-distance error from Lemma 6.7(b) are each at most 24(t+1)1. Then every simulated function query has trace-distance error at most 12(t+1)1. If the returned point lies outside K, declare failure. On a successful run, ∥A⊤(−n14x~)−A−1e1∥≤n14∥A∥∥x~−x∗∥≤2n31.
Using the final-query rounding, accuracy, and failure bounds from the proof of Corollary 6.8, with −n14x~ as the returned vector, gives an estimate of A−1e1 with Euclidean error less than 1/n3. The same hybrid and union-bound calculation as before increases the failure probability by at most 1/12. It follows that a t-query algorithm optimizing f within the stated precision implies a (3t+1)-query algorithm for the decision problem in Theorem 6.6 with success probability at least 7/12, which can be increased above 2/3 with constant overhead. □
AI statement
The results of this paper were generated primarily through conversations with Claude Opus 4.8 and 5, which provided the majority of the technical approach. Initial prompts about generalizing the results of [10] to the reals led to a formulation of the determinantal witness method and the trace lower bound, and further interactions produced extensions to the determinant and to the inversion problem, with the arguments for the latter case relying on conjectured behavior of random Gaussian matrices. Claude was then prompted to numerically check this conjecture, and in the course of optimizing numerical calculations, made analytical observations that enabled a proof. Further interactions with Claude Opus 5 and ChatGPT 5.6-Sol helped to illuminate discretization of the query model and the connection to convex optimization. The manuscript was written manually, informed by AI-generated notes. The paper was also checked for correctness and clarity using ChatGPT 5.6-Sol and Claude Opus 5; some technical issues were found, and the paper was revised accordingly. The author takes sole responsibility for correctness of the final manuscript.
Acknowledgments
We thank Yanlin Chen and Yufan Zheng for highlighting the similarity of dual witnesses and dual polynomials [12], Sander Gribling for emphasizing the significance of being given a feasible point in the lower bound for convex optimization (indeed, a linear lower bound was previously shown if no such point is available [3]), and Tongyang Li for bringing Ref. [2] to our attention.
After sharing this manuscript with several colleagues, we learned of independent work by Brandon Augustino, Shouvanik Chakrabarti, Enrico Fontana, Dylan Herman, Junhyung Kim, Guneykan Ozgul, and Nadezhda Voronova that also shows a nearly linear lower bound on the quantum query complexity of convex optimization using related techniques, also with significant use of AI tools [22].
This work received support from the National Science Foundation (grant 26-17356) and the Department of Energy, Office of Science, Office of Advanced Scientific Computing Research, Accelerated Research in Quantum Computing program.
References
[1] Yin Tat Lee, Aaron Sidford, and Santosh S. Vempala. “Efficient convex optimization with membership oracles”. In Proceedings of the 31st Conference On Learning Theory. Volume 75 of Proceedings of Machine Learning Research, pages 1292–1294. (2018). arXiv:1706.07357.
[2] Haihan Zhang, Chenheng Zhang, Zhiquan Qi, and Zhouchen Lin. “Near-optimal lower bounds for randomized algorithms in exact value zeroth-order convex optimization” arXiv:2607.16558.
[3] Joran van Apeldoorn, András Gilyén, Sander Gribling, and Ronald de Wolf. “Convex optimization using quantum oracles”. Quantum 4, 220 (2020). arXiv:1809.00643.
[4] Shouvanik Chakrabarti, Andrew M. Childs, Tongyang Li, and Xiaodi Wu. "Quantum algorithms and lower bounds for convex optimization". Quantum 4, 221 (2020). arXiv:1809.01731.
[5] Atilim Günes Baydin, Barak A. Pearlmutter, Alexey Andreyevich Radul, and Jeffrey Mark Siskind. "Automatic differentiation in machine learning: a survey". Journal of Machine Learning Research 18, 5595–5637 (2017). arXiv:1502.05767.
[6] Stephen P. Jordan. "Fast quantum algorithm for numerical gradient estimation". Physical Review Letters 95, 050501 (2005). arXiv:quant-ph/040514.
[7] Ankit Garg, Robin Kothari, Praneeth Netrapalli, and Suhail Sherif. "No quantum speedup over gradient descent for non-smooth convex optimization". In 12th Innovations in Theoretical Computer Science Conference (ITCS 2021). Volume 185 of Leibniz International Proceedings in Informatics, pages 53:1–53:20. (2021). arXiv:2010.01801.
[8] Xiaoming Sun, David P. Woodruff, Guang Yang, and Jialin Zhang. "Querying a Matrix Through Matrix-Vector Products". In 46th International Colloquium on Automata, Languages, and Programming (ICALP 2019). Volume 132 of Leibniz International Proceedings in Informatics (LIPIcs), pages 94:1–94:16. (2019). arXiv:1906.05736.
[9] Mark Braverman, Elad Hazan, Max Simchowitz, and Blake Woodworth. "The gradient complexity of linear regression". In Proceedings of Thirty-Third Conference on Learning Theory. Volume 125 of Proceedings of Machine Learning Research, pages 627–647. (2020). arXiv:1911.02212.
[10] Andrew M. Childs, Shih-Han Hung, and Tongyang Li. "Quantum query complexity with matrix-vector products". In Proceedings of the 48th International Colloquium on Automata, Languages, and Programming (ICALP 2021). Volume 198 of Leibniz International Proceedings in Informatics, pages 55:1–55:19. (2021). arXiv:2102.11349.
[11] Robert Beals, Harry Buhrman, Richard Cleve, Michele Mosca, and Ronald de Wolf. "Quantum lower bounds by polynomials". Journal of the ACM 48, 778–797 (2001). arXiv:quant-ph/9802049.
[12] Alexander A. Sherstov. "Communication lower bounds using dual polynomials" arXiv:0805.2135.
[13] Dan Boneh and Mark Zhandry. "Quantum-secure message authentication codes". In Thomas Johansson and Phong Q. Nguyen, editors, Advances in Cryptology – EUROCRYPT 2013. Pages 592–608. (2013).
[14] Florence J. MacWilliams and Neil J. A. Sloane. "The theory of error-correcting codes". North-Holland. (1977).
[15] Sergio Caracciolo, Alan D. Sokal, and Andrea Sportiello. "Algebraic/combinatorial proofs of Cayley-type identities for derivatives of determinants and pfaffians". Advances in Applied Mathematics 50, 474–594 (2013). arXiv:1105.6270.
[16] Robb J. Muirhead. "Aspects of multivariate statistical theory". Wiley. (1982).
[17] Alfredo Capelli. "Ueber die Zurückführung der Cayley'schen Operation ω auf gewöhnliche Polar-Operationen". Mathematische Annalen 29, 331–338 (1887).
[18] Kenneth R. Davidson and Stanislaw J. Szarek. "Local operator theory, random matrices and Banach spaces". In W. B. Johnson and J. Lindenstrauss, editors, Handbook of the Geometry of Banach Spaces. Volume I, pages 317–366. North-Holland (2001).
[19] Arvind Sankar, Daniel A. Spielman, and Shang-Hua Teng. "Smoothed analysis of the condition numbers and growth factors of matrices". SIAM Journal on Matrix Analysis and Applications 28, 446–476 (2006). arXiv:cs/0310022.
[20] Béatrice Laurent and Pascal Massart. "Adaptive estimation of a quadratic functional by model selection". The Annals of Statistics 28, 1302–1338 (2000).
[21] Michael A. Nielsen and Isaac L. Chuang. "Quantum computation and quantum information". Cambridge University Press. (2000).
[22] Brandon Augustino, Shouvanik Chakrabarti, Enrico Fontana, Dylan Herman, Junhyung Kim, Guneykan Ozgul, and Nadezhda Voronova. "Near-optimal quantum lower bounds for convex optimization via Fourier rank".