Quantum spectral method for gradient and Hessian estimation
Yuxin Zhang, Changpeng Shao
TL;DR
The paper introduces a quantum spectral method for gradient estimation of analytic functions that can take complex values, achieving an exponential speedup in dimension with a query complexity of $\widetilde{O}(1/\varepsilon)$, and extends this approach to Hessian estimation with polynomial speedups, including strong gains for sparse Hessians. The core idea is to express directional derivatives via a Cauchy-differentiation-based spectral formula $F(\mathbf{x})=\frac{1}{N\delta}\sum_{k} \omega^{-k} f(\delta \omega^{k}\mathbf{x})$, construct a phase oracle from $F$, and recover the gradient; Hessians are handled by reducing to gradient estimation, with analogous resource bounds. The results include two Hessian-estimation schemes under the spectral framework with $\widetilde{O}(d/\varepsilon)$ and $\widetilde{O}(d^{1.5}/\varepsilon)$ costs in the general case, and substantially improved $\widetilde{O}(s/\varepsilon)$ and $\widetilde{O}(sd/\varepsilon)$ costs for $s$-sparse Hessians, along with lower bounds of $\widetilde{\Omega}(d)$ for the general problem. The paper also analyzes a finite-difference approach for Hessians, highlighting the spectral method’s superior error behavior and its practical implications for Newton-type optimization in quantum settings. Overall, the work advances quantum subroutines for second-order optimization and clarifies the trade-offs between spectral and finite-difference strategies, especially in the presence of sparsity.
Abstract
Gradient descent is one of the most basic algorithms for solving continuous optimization problems. In [Jordan, PRL, 95(5):050501, 2005], Jordan proposed the first quantum algorithm for estimating gradients of functions close to linear, with exponential speedup in the black-box model. This quantum algorithm was greatly enhanced and developed by [Gilyén, Arunachalam, and Wiebe, SODA, pp. 1425-1444, 2019], providing a quantum algorithm with optimal query complexity $\widetildeΘ(\sqrt{d}/\varepsilon)$ for a class of smooth functions of $d$ variables, where $\varepsilon$ is the accuracy. This is quadratically faster than classical algorithms for the same problem. In this work, we continue this research by proposing a new quantum algorithm for another class of functions, namely, analytic functions $f(\boldsymbol{x})$ which are well-defined over the complex field. Given phase oracles to query the real and imaginary parts of $f(\boldsymbol{x})$ respectively, we propose a quantum algorithm that returns an $\varepsilon$-approximation of its gradient with query complexity $\widetilde{O}(1/\varepsilon)$. This achieves exponential speedup over classical algorithms in terms of the dimension $d$. As an extension, we also propose two quantum algorithms for Hessian estimation, aiming to improve quantum analogs of Newton's method. The two algorithms have query complexity $\widetilde{O}(d/\varepsilon)$ and $\widetilde{O}(d^{1.5}/\varepsilon)$, respectively, under different assumptions. Moreover, if the Hessian is promised to be $s$-sparse, we then have two new quantum algorithms with query complexity $\widetilde{O}(s/\varepsilon)$ and $\widetilde{O}(sd/\varepsilon)$, respectively. The former achieves exponential speedup over classical algorithms. We also prove a lower bound of $\widetildeΩ(d)$ for Hessian estimation in the general case.
