arXiv Analytics

Sign in

arXiv:1402.0660 [quant-ph]AbstractReferencesReviewsResources

New Quantum Algorithm for Linear Regression

Guoming Wang

Published 2014-02-04, updated 2017-03-06Version 4

We present a quantum algorithm for fitting a linear regression model to a given data set using the least squares approach. Different from previous algorithms which only yield a quantum state encoding the optimal parameters, our algorithm outputs these numbers in the classical form. So by running it once, one completely determines the fitted model and then can use it to make predictions on new data at negligible cost. Moreover, our algorithm does not require the design matrix to be sparse or need any help from additional state preparation procedures. It runs in time $\operatorname{poly}(\operatorname{log}(N), d, \kappa, 1/\epsilon)$, where $N$ is the size of the data set, $d$ is the number of adjustable parameters, $\kappa$ is the condition number of the design matrix, and $\epsilon$ is the desired precision in the output. We also show that the polynomial dependence on $d$ and $\kappa$ is necessary. Thus, our algorithm cannot be significantly improved. Furthermore, we also give a quantum algorithm that estimates the quality of the least-squares fit without computing its parameters explicitly. This algorithm runs faster than the one for finding this fit, and can be used to check whether the given data set qualifies for linear regression in the first place.

Comments: 19 pages, no figure; v4: this paper has been significantly revised, new techniques are used, the results are improved and expanded
Categories: quant-ph, cs.DS
Related articles: Most relevant | Search more
arXiv:quant-ph/0407264 (Published 2004-07-30)
Effects of decoherence and imperfections for quantum algorithms
arXiv:0906.1811 [quant-ph] (Published 2009-06-09, updated 2009-07-29)
Quantum algorithms know in advance 50% of the solution they will find in the future
arXiv:0908.1657 [quant-ph] (Published 2009-08-12)
On zeros of exponential polynomials and quantum algorithms