Skip to main content
Log in

Faster quantum ridge regression algorithm for prediction

  • Original Article
  • Published:
International Journal of Machine Learning and Cybernetics Aims and scope Submit manuscript

Abstract

In this paper, a quantum algorithm based on ridge regression model is proposed. The proposed quantum algorithm consists of two parts. One is the first quantum sub-algorithm to efficiently generate predictive values for new inputs. The non-sparse Hamiltonian simulation technique is applied to simulate the data matrix that is generally non-sparse. Therefore, there is no need to expand the data matrix into a larger sparse Hermitian matrix, and the predictive results can be obtained without projection operation at the end of the first sub-algorithm, which makes it more feasible. The other is to determine a reasonable regularization parameter. To achieve this goal, the second sub-algorithm is proposed. In the second sub-algorithm, the suitable one is selected from some candidates using phase estimation algorithm and the controlled rotation operation. In this way, the whole training dataset can be calculated in parallel, which greatly reduces the time complexity. In addition, it is shown that the proposed quantum ridge regression algorithms can achieve exponential speedup over the classical counterpart when the rank of the data matrix is low.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4

Similar content being viewed by others

References

  1. Schuld M, Sinayskiy I, Petruccione F (2015) An introduction to quantum machine learning. Contemp Phys 56:172

    Article  MATH  Google Scholar 

  2. Biamonte J, Wittek P, Pancotti N (2017) Quantum machine learning. Nature 549:195

    Article  Google Scholar 

  3. Chen H, Chiang RH, Storey VC (2012) Business intelligence and analytics: from big data to big impact. Manag Inf Syst Q 36:1165

    Article  Google Scholar 

  4. Walther P, Resch KJ, Rudolph T (2005) Experimental one-way quantum computing. Nature 7030:169

    Article  Google Scholar 

  5. Alhaidari AD, Taiwo TJ (2017) Wilson–Racah quantum system. J Math Phys 2:022101

    Article  MATH  Google Scholar 

  6. Shor PW (1994) Algorithms for quantum computation: discrete logarithms and factoring. In: Proceedings of the 35th annual symposium on foundations of computer science, p 124

  7. Duan B, Yuan J, Xu J, Li D (2019) Quantum algorithm and quantum circuit for A-optimal projection: dimensionality reduction. Phys Rev A 99:032311

    Article  Google Scholar 

  8. Liang J, Shen S, Li M, Li L (2020) Variational quantum algorithms for dimensionality reduction and classification. Phys Rev A 101:032323

    Article  Google Scholar 

  9. Rebentrost P, Mohseni M, Lloyd S (2014) Quantum support vector machine for big data classification. Phys Rev A 113:130503

    Google Scholar 

  10. Duan B, Yuan J, Liu Y, Li D (2017) Quantum algorithm for support matrix machines. Phys Rev A 96:032301

    Article  Google Scholar 

  11. Lu S, Braunstein SL (2014) Quantum decision tree classifier. Quantum Inf Process 13:757

    Article  MATH  Google Scholar 

  12. Yu C, Gao F, Wang Q, Wen Q (2016) Quantum algorithm for association rules mining. Phys Rev A 94:042311

    Article  Google Scholar 

  13. Cao H, Cao F, Wang D (2015) Quantum artificial neural networks with applications. Inf Sci 290:1

    Article  MATH  Google Scholar 

  14. Haney BS (2020) Quantum machine learning: a patent review. SSRN Electron J 4

  15. Dunjko V, Briegel HJ (2018) Machine learning and artificial intelligence in the quantum domain: a review of recent progress. Rep Prog Phys 81:074001

    Article  Google Scholar 

  16. Wiebe N, Braun D, Lloyd S (2012) Quantum algorithm for data fitting. Phys Rev Lett 109:050505

    Article  Google Scholar 

  17. Harrow AW, Hassidim A, Lloyd S (2009) Quantum algorithm for linear systems of equations. Phys Rev Lett 15:150502

    Article  Google Scholar 

  18. Schuld M, Sinayskiy I, Petruccione F (2016) Prediction by linear regression on a quantum computer. Phys Rev A 94:022342

    Article  Google Scholar 

  19. Wang G (2017) Quantum algorithm for linear regression. Phys Rev A 96:012335

    Article  Google Scholar 

  20. Liu Y, Zhang S (2017) Fast quantum algorithms for least squares regression and statistic leverage scores. Theor Comput Sci 657:38

    Article  MATH  Google Scholar 

  21. Yu CH, Gao F, Wen QY (2021) An improved quantum algorithm for ridge regression. IEEE Trans Knowl Data Eng 33:858

    Google Scholar 

  22. Date P, Potok T (2020) Adiabatic quantum linear regression. arXiv:2008.02355

  23. Zhang DB, Xue ZY, Zhu SL et al (2019) Realizing quantum linear regression with auxiliary qumodes. Phys Rev A 99:012331

    Article  Google Scholar 

  24. Lloyd S, Mohseni M, Rebentrost P (2014) Quantum principal component analysis. Nat Phys 10:631

    Article  Google Scholar 

  25. Hoerl AE, Kennard RW (2000) Ridge regression: biased estimation for nonorthogonal problems. Technometrics 42:80

    Article  MATH  Google Scholar 

  26. Lay D (2014) Handbook of linear algebra. Discrete mathematics and its applications. Chapman and Hall/CRC, London

    Google Scholar 

  27. Nielsen MA, Chuang IL (2010) Quantum computation and quantum information. Cambridge University Press, Cambridge

    MATH  Google Scholar 

  28. Buhrman H, Cleve R, Watrous J (2001) Quantum fingerprinting. Phys Rev Lett 87:167902

    Article  Google Scholar 

  29. Brassard G, Hoyer P, Mosca M (2000) Quantum amplitude amplification and estimation. arXiv:quant-ph/0005055

  30. Rastegin AE (2018) On the role of dealing with quantum coherence in amplitude amplification. Quantum Inf Process 17:179

    Article  MATH  Google Scholar 

  31. Chen S, Liu Y, Lyu M, King I, Zhang S (2015) Fast relative-error approximation algorithm for ridge regression. In: Proceedings of the 31st conference on uncertainty in artificial intelligence, p 201

Download references

Acknowledgements

This work was supported by National Natural Science Foundation of China (Grant nos. 61772134, 61976053, 62006105 and 62171131), Fujian Province Natural Science Foundation (Grant No. 2018J01776), Jiangxi Provincial Natural Science Foundation (Grant No. 20202BABL212004) and Program for New Century Excellent Talents in Fujian Province University.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Song Lin.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Chen, M., Yu, C., Guo, G. et al. Faster quantum ridge regression algorithm for prediction. Int. J. Mach. Learn. & Cyber. 14, 117–124 (2023). https://doi.org/10.1007/s13042-022-01526-6

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s13042-022-01526-6

Keywords

Navigation