Abstract
Optimization problems in disciplines such as machine learning are commonly solved with iterative methods. Gradient descent algorithms find local minima by moving along the direction of steepest descent while Newton's method takes into account curvature information and thereby often improves convergence. Here, we develop quantum versions of these iterative optimization algorithms and apply them to polynomial optimization with a unit norm constraint. In each step, multiple copies of the current candidate are used to improve the candidate using quantum phase estimation, an adapted quantum principal component analysis scheme, as well as quantum matrix multiplications and inversions. The required operations perform polylogarithmically in the dimension of the solution vector and exponentially in the number of iterations. Therefore, the quantum algorithm can be beneficial for high-dimensional problems where a small number of iterations is sufficient.
Introduction
Iterative optimization is a cornerstone of modern computational science, particularly in machine learning and artificial intelligence. Classical algorithms like Gradient Descent (GD) and Newton’s Method are ubiquitous; however, their performance is fundamentally limited by the dimensionality ($N$) of the problem. For a vector of dimension $N$, a single GD step requires at least $O(N)$ operations, while Newton’s method, which involves the inversion of a Hessian matrix, can scale as $O(N^3)$. As datasets grow into the billions of dimensions, these classical costs become prohibitive.
In this work, Rebentrost et al. propose quantum algorithms that achieve a polylogarithmic scaling with respect to $N$, offering a potential exponential speedup for high-dimensional optimization. By representing the solution vector as a quantum state and utilizing quantum linear algebra techniques, the researchers demonstrate a path toward efficient optimization on quantum hardware.
Quantum Implementation and Vector Fields
The proposed quantum algorithms focus on minimizing homogeneous polynomials of even order subject to a unit norm constraint ($|x|^2 = 1$). This constraint is naturally suited for quantum systems, as quantum states are inherently normalized.
The methodology relies on several key quantum primitives:
- Amplitude Encoding: The solution vector $x$ is encoded into the amplitudes of a quantum state $|x\rangle$.
- Density Matrix Exponentiation: Inspired by Quantum Principal Component Analysis (QPCA), the gradient and Hessian operators are "exponentiated" to be treated as Hamiltonians.
- Quantum Phase Estimation (QPE): This is used to extract the eigenvalues of these operators, enabling the matrix-vector multiplications required for GD and the matrix inversions required for Newton’s method.
As shown in the figure above, the algorithm effectively navigates the vector fields $\nabla f(x)$ and $H^{-1}\nabla f(x)$ within the constrained space. The quantum implementation allows for these complex operations to be performed in $O(\text{polylog } N)$ time, provided the objective function can be efficiently queried via a quantum oracle. The success probability of a single update step is lower-bounded by $1/16$ using post-selection on ancilla qubits, and the algorithm shows robustness against errors in quantum states.
Comparative Analysis of Iterative Trajectories
A critical aspect of iterative optimization is the trajectory the algorithm takes toward the minimum. While standard GD follows the steepest descent, Newton’s method utilizes second-order curvature information to take more direct paths, often leading to faster convergence.
The figure above illustrates these trajectories on a Rosenbrock-like landscape. In the quantum context, these methods must be "projected" to maintain the unit norm constraint. The trajectories demonstrate that while both methods can find local minima, their efficiency varies significantly based on the landscape's geometry.
The Dimensionality Advantage and the Iteration Cost
The primary advantage of the quantum approach is its $O(\text{polylog } N)$ complexity per iteration. This suggests that for extremely high-dimensional problems, quantum computers could perform update steps that are entirely out of reach for classical machines.
However, this speedup comes with a significant trade-off: State Consumption. Due to the no-cloning theorem, the algorithm cannot simply reuse the state $|x^{(t)}\rangle$ to compute $|x^{(t+1)}\rangle$. Instead, it must "consume" multiple copies of the current state to produce the next. This leads to an exponential scaling in the number of iterations $T$, specifically $O(C^T)$ copies of the initial state $|x^{(0)}\rangle$ are required.
This trade-off makes Newton’s method a particularly attractive candidate for quantum implementation. Because Newton’s method often exhibits quadratic convergence—doubling the number of correct digits at each step—it requires far fewer iterations than GD to reach a desired precision. Furthermore, the authors suggest a "saddle-free" modification to Newton’s method by taking the absolute value of the Hessian's eigenvalues—a task that is relatively straightforward in the quantum framework—to avoid getting stuck at saddle points in high dimensions.
Conclusion
The development of quantum gradient descent and Newton’s method represents a significant step toward applying quantum computing to practical optimization tasks. While the exponential scaling with the number of iterations limits these algorithms to problems where a good solution is nearby, the polylogarithmic scaling with dimension offers a unique advantage for the massive-scale problems typical of modern AI. Future work will likely focus on reducing the state consumption requirements and extending these techniques to non-polynomial objective functions.
Summary updated