Manuscript Offprint

arXiv:2609.05679

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\mathbb{R}^n with evaluation and membership queries is Ω~(n)\tilde{\Omega}(n), nearly matching the best known upper bound. In particular, we show this even for quadratic minimization, which is equivalent to inverting an n×nn \times 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→Rf: \mathbb{R}^n \to \mathbb{R} at a given point x∈Rnx \in \mathbb{R}^n, an oracle determining whether x∈Rnx \in \mathbb{R}^n belongs to a convex body over which ff 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)\hat{O}(n^2) 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)\hat{O}(n) queries [3,4], a quadratic improvement. The best quantum lower bound we are aware of is only Ω~(n)\tilde{\Omega}(\sqrt{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 ff at any chosen point. Such an oracle captures the scenario where ff is described by an explicit formula that can be efficiently differentiated as well as evaluated. Indeed, provided ff 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)\hat{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 ϵ\epsilon, 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)\Theta(1/\epsilon^2) (more precisely, they are Θ((GR/ϵ)2)\Theta((GR/\epsilon)^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 ϵ\epsilon (in particular, we give a lower bound that holds for ϵ=1/poly(n)\epsilon = 1/\text{poly}(n)).

An especially simple kind of convex function is a positive definite quadratic form plus a linear term, fA,b(x)=12x⊤Ax+b⊤xf_{A,b}(x) = \frac{1}{2}x^\top A x + b^\top x, where A∈Rn×nA \in \mathbb{R}^{n \times n} is positive definite (and therefore symmetric) and b∈Rnb \in \mathbb{R}^n. The best known quantum query complexity for convex optimization is O~(n)\tilde{O}(n) even for the quadratic case. This optimization problem has a clean linear-algebraic description: since ∇fA,b(x)=Ax+b\nabla f_{A,b}(x) = Ax + b, fA,b(x)f_{A,b}(x) is minimized at x=−A−1bx = -A^{-1}b. Furthermore, using quantum gradient estimation [6], poly( log⁡n\log n) quantum queries to fA,bf_{A,b} suffice to determine bb, and also to implement an oracle that produces AxAx on input xx (a so-called matrix-vector query). Conversely, given a matrix-vector query oracle for AA and knowledge of the vector bb, we can implement fA,bf_{A,b} using a constant number of queries. Thus, the tasks of minimizing the quadratic function fA,bf_{A,b} given an evaluation oracle, and of computing A−1A^{-1} applied to a particular input vector using matrix-vector queries for AA, have the same query complexity up to log factors, so we focus on the inversion problem with matrix-vector queries. Clearly, nn 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)U_{A}\colon|x,y\rangle\mapsto|x,y+A x\rangle \tag{1}

for all x,y∈Rnx, y \in \mathbb{R}^n. It is often more convenient to work with a phase oracle, obtained by conjugating UAU_A by the Fourier transform on the output register, giving

U^A ⁣:∣x,y⟩↦e2πiy⊤Ax∣x,y⟩.(2)\hat{U}_{A}\colon|x,y\rangle\mapsto e^{2\pi i y^{\top}A x}|x,y\rangle. \tag{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 tt matrix-vector queries is described by a measure over matrices with Fourier components of rank at most tt. Consequently, we show in Lemma 3.3 that we can lower bound the failure probability of a tt-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 2t2t. 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/log⁡n)\Omega(n/\log n) lower bound for computing the trace (Theorem 4.4).

  • In Section 5, we prove a lower bound of Ω(n)\Omega(n) for computing the sign of the determinant (Theorem 5.2), and a bound of Ω(n/log⁡n)\Omega(n/\log n) for computing its magnitude within some nn-dependent additive error (Theorem 5.6).

  • In Section 6, we prove an Ω(n/log⁡n)\Omega(n/\log n) 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)\tilde{\Omega}(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)\tilde{\Omega}(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−49O(n^{-49})). We leave it for future work to tighten this bound and to better understand the best possible scaling with both nn and the error.

References (22)