Quantum gradient descent for linear systems and least squares

Quantum machine learning and optimization are exciting new areas that have been brought forward by the breakthrough quantum algorithm of Harrow, Hassidim, and Lloyd for solving systems of linear equations. The utility of classical linear system solvers extends beyond linear algebra as they can be leveraged to solve optimization problems using iterative methods like gradient descent. In this work, we provide a quantum method for performing gradient descent when the gradient is an affine function. Performing $\ensuremath{\tau}$ steps of the gradient descent requires time $O(\ensuremath{\tau}{C}_{S})$ for weighted least-squares problems, where ${C}_{S}$ is the cost of performing one step of the gradient descent quantumly, which at times can be considerably smaller than the classical cost. We illustrate our method by providing two applications: first, for solving positive semidefinite linear systems, and, second, for performing stochastic gradient descent for the weighted least-squares problem with reduced quantum memory requirements. We also provide a quantum linear system solver in the QRAM data structure model that provides significant savings in cost for large families of matrices.

[1]  Roy Mathias,et al.  The spectral norm of a nonnegative matrix , 1990 .

[2]  Alexei Y. Kitaev,et al.  Quantum measurements and the Abelian Stabilizer Problem , 1995, Electron. Colloquium Comput. Complex..

[3]  Richard S. Sutton,et al.  Introduction to Reinforcement Learning , 1998 .

[4]  G. Brassard,et al.  Quantum Amplitude Amplification and Estimation , 2000, quant-ph/0005055.

[5]  Lov K. Grover,et al.  Creating superpositions that correspond to efficiently integrable probability distributions , 2002, quant-ph/0208112.

[6]  Mikhail N. Vyalyi,et al.  Classical and Quantum Computation , 2002, Graduate studies in mathematics.

[7]  M. Szegedy,et al.  Quantum Walk Based Search Algorithms , 2008, TAMC.

[8]  S. Jordan Fast quantum algorithm for numerical gradient estimation. , 2004, Physical review letters.

[9]  David W. Bulger Quantum basin hopping with gradient-based local optimisation , 2005, quant-ph/0507193.

[10]  S. Lloyd,et al.  Architectures for a quantum random access memory , 2008, 0807.4994.

[11]  A. Harrow,et al.  Quantum algorithm for linear systems of equations. , 2008, Physical review letters.

[12]  Stephen P. Jordan,et al.  Permutational quantum computing , 2009, Quantum Inf. Comput..

[13]  Andrew M. Childs On the Relationship Between Continuous- and Discrete-Time Quantum Walk , 2008, 0810.0312.

[14]  Kevin P. Murphy,et al.  Machine learning - a probabilistic perspective , 2012, Adaptive computation and machine learning series.

[15]  W. Marsden I and J , 2012 .

[16]  Seth Lloyd,et al.  Quantum algorithm for data fitting. , 2012, Physical review letters.

[17]  Andris Ambainis,et al.  Variable time amplitude amplification and quantum algorithms for linear algebra problems , 2012, STACS.

[18]  Amnon Ta-Shma,et al.  Inverting well conditioned matrices in quantum logspace , 2013, STOC '13.

[19]  S. Lloyd,et al.  Quantum algorithms for supervised and unsupervised machine learning , 2013, 1307.0411.

[20]  Masoud Mohseni,et al.  Quantum support vector machine for big feature and big data classification , 2013, Physical review letters.

[21]  S. Lloyd,et al.  Quantum principal component analysis , 2013, Nature Physics.

[22]  Anmer Daskin Quantum Principal Component Analysis , 2015 .

[23]  S. Aaronson Read the fine print , 2015, Nature Physics.

[24]  Srinivasan Arunachalam,et al.  On the robustness of bucket brigade quantum RAM , 2015, TQC.

[25]  Andrew M. Childs,et al.  Quantum linear systems algorithm with exponentially improved dependence on precision , 2015 .

[26]  Yang Liu,et al.  Fast quantum algorithms for least squares regression and statistic leverage scores , 2015, Theor. Comput. Sci..

[27]  Aram Wettroth Harrow Quantum Algorithms for Systems of Linear Equations , 2016, Encyclopedia of Algorithms.

[28]  Krysta Marie Svore,et al.  Quantum Speed-ups for Semidefinite Programming , 2016, ArXiv.

[29]  Iordanis Kerenidis,et al.  Quantum Recommendation Systems , 2016, ITCS.

[30]  Andrew M. Childs,et al.  Quantum Algorithm for Linear Differential Equations with Exponentially Improved Dependence on Precision , 2017, Communications in Mathematical Physics.

[31]  Andrew M. Childs,et al.  Quantum Algorithm for Systems of Linear Equations with Exponentially Improved Dependence on Precision , 2015, SIAM J. Comput..

[32]  Yang Liu,et al.  Fast quantum algorithms for least squares regression and statistic leverage scores , 2017, Theor. Comput. Sci..

[33]  R. Sarpong,et al.  Bio-inspired synthesis of xishacorenes A, B, and C, and a new congener from fuscol† †Electronic supplementary information (ESI) available. See DOI: 10.1039/c9sc02572c , 2019, Chemical science.

[34]  Ewin Tang,et al.  A quantum-inspired classical algorithm for recommendation systems , 2018, Electron. Colloquium Comput. Complex..

[35]  Jorge Nocedal,et al.  Optimization Methods for Large-Scale Machine Learning , 2016, SIAM Rev..

[36]  Iordanis Kerenidis,et al.  A Quantum Interior Point Method for LPs and SDPs , 2018, ACM Transactions on Quantum Computing.

[37]  L. Wossnig,et al.  Quantum Linear System Algorithm for Dense Matrices. , 2017, Physical review letters.

[38]  Srinivasan Arunachalam,et al.  Optimizing quantum optimization algorithms via faster quantum gradient computation , 2017, SODA.

[39]  W. Hager,et al.  and s , 2019, Shallow Water Hydraulics.

[40]  Iordanis Kerenidis,et al.  q-means: A quantum algorithm for unsupervised machine learning , 2018, NeurIPS.

[41]  Stacey Jeffery,et al.  The power of block-encoded matrix powers: improved regression techniques via faster Hamiltonian simulation , 2018, ICALP.

[42]  S. Lloyd,et al.  Quantum gradient descent and Newton’s method for constrained polynomial optimization , 2016, New Journal of Physics.