Quantum Information & Computation
Volume 27
RESEARCH ARTICLE Open access

Matrix encoding method in variational algorithm of calculating eigenvalues and generalized eigenvalues

Alexander I. Zenchuk, Junde Wu

Author affiliations
  • Alexander I. Zenchuk1
  • Junde Wu2,3
  1. Federal Research Center of Problems of Chemical Physics and Medicinal Chemistry RAS, Chernogolovka, Moscow reg., 142432, Russia
  2. School of Mathematical Sciences, Zhejiang University, Hangzhou 310027, PR China
  3. School of Information Engineering, Minnan University of Sciences and Technology, Quanzhou 362700, PR China

Article 3 · pp. 1-15 · 10.70917/qic-2027-0003

Received · Accepted · Published online

Read PDF

Abstract

We propose a variational method for constructing the eigenvalues and generalized eigenvalues for an arbitrary N×NN\times N complex matrix. The quantum part of our algorithm is based on encoding the matrix elements into the pure state of a quantum system and expressing the loss function with optimization parameters in terms of certain probability amplitudes in the superposition state. The principal step of this algorithm is the measurement of the ancilla state that removes all extra terms from the above superposition and allows to probabilistically construct the required loss function along with its derivatives with respect to the optimization parameters. These output data are used to find the new values of optimization parameters for the next iteration of the loss function in the gradient optimization method. The depth and size of the circuit for this algorithm are, respectively, O(N2log⁡N)O(N^2\log N) and O(log⁡N)O(\log N)⁠.
Open accessCC BY-NC-ND 4.0

Keywords

  • Matrix
  • eigenvalues
  • generalized eigenvalues

Suggested citation

Alexander I. Zenchuk, Junde Wu (2027). Matrix encoding method in variational algorithm of calculating eigenvalues and generalized eigenvalues. Quantum Information & Computation, 27, Article 3. https://doi.org/10.70917/qic-2027-0003

References (69)

  1. Bose, S.: Quantum communication through an unmodulated spin chain. Phys. Rev. Lett. 91, 207901 (2003)Google Scholar
  2. R.F. Werner, “Quantum states with Einstein-Podolsky-Rosen correlations admitting a hidden-variable model”, Phys.Rev.A 40(8), 4277 (1989)Google Scholar
  3. Ch.H. Bennett, G. Brassard, C. Crépeau, R. Jozsa, A. Peres, W.K. Wootters, “Teleporting an unknown quantum state via dual classical and Einstein-Podolsky-Rosen channels”, Phys.Rev.Lett 70(13), 1895 (1993)Google Scholar
  4. S. Popescu, “Bell’s Inequalities versus Teleportation: What is Nonlocality?” Phys.Rev.Lett. 72, 797 (1994)Google Scholar
  5. X.-S. Ma, Th. Herbst, Th. Scheidl, D. Wang, S. Kropatschek, W. Naylor, B. Wittmann, A. Mech, J. Kofler, E. Anisimova, V. Makarov, Th. Jennewein, R. Ursin, A. Zeilinger, “Quantum teleportation over 143 kilometres using active feed-forward”, Nature 489, 269 (2012)Google Scholar
  6. J.-G. Ren, P. Xu, H.-L. Yong, L. Zhang, Sh.-K. Liao, J. Yin, W.-Y. Liu, W.-Q. Cai, M. Yang, L. Li, K.-X. Yang, X. Han, Y.-Q. Yao, J. Li, H.-Y. Wu, S. Wan, L. Liu, D.-Q. Liu, Y.-W. Kuang, Zh.-P. He, P. Shang, Ch. Guo, R.-H. Zheng, K.Tian, Zh.-C. Zhu, N.-L. Liu, Ch.-Y. Lu, R. Shu, Y.-A. Chen, Ch.-Zh. Peng, J.-Y. Wang, J.-W. Pan, “ Ground-to-satellite quantum teleportation”, Nature 549, 70 (2017)Google Scholar
  7. J. Qiu, Y. Liu, J. Niu, L. Hu, Yu. Wu, L. Zhang, W. Huang, Yu. Chen, J. Li, S. Liu, Yo. Zhong, L. Duan, D. Yu, “Deterministic quantum teleportation between distant superconducting chips”, Science Bulletin 70, 351 (2025)Google Scholar
  8. Peters, N.A., Barreiro, J.T., Goggin, M. E., Wei, T.-C., Kwiat, P.G.: Remote State Preparation: Arbitrary Remote Control of Photon Polarization. Phys. Rev. Lett. 94, 150502 (2005)Google Scholar
  9. Peters, N.A., Barreiro, J.T., Goggin, M.E., Wei, T.-C., Kwiat, P. G.: Remote state preparation: arbitrary remote control of photon polarizations for quantum communication. (Quantum Communications and Quantum Imaging III, in: Proc. of SPIE, vol. 5893) eds Meyers R E, Shih Ya, (SPIE, Bellingham, WA) (2005)Google Scholar
  10. Dakic, B., Lipp, Ya.O., Ma, X., Ringbauer, M., Kropatschek, S., Barz, S., Paterek, T., Vedral, V., Zeilinger, A., Brukner, C., Walther, P.: Quantum discord as resource for remote state preparation. Nat. Phys. 8, 666 (2012)Google Scholar
  11. Y.Zhao, B.Qi, X.F.Ma, H.-K.Lo, L.Qian, Experimental quantum key distribution with decoy states, Phys.Rev.Lett. 96(7), 070502 (2006)Google Scholar
  12. C.H.Bennett, Experimental quantum cryptography, J. Cryptology 5(1), 3 (1992)Google Scholar
  13. Z.Tang, Z.F.Liao, F.H.Xu, B.Qi, L.Qian, H.-K. Lo, Experimental demonstration of polarization encoding measurement-device-independent quantum key distribution, Phys. Rev. Lett. 112(19), 190503 (2014)Google Scholar
  14. A. W. Harrow, A. Hassidim, S. Lloyd, Quantum algorithm for linear systems of equations, Phys. Rev. Lett. 103, 150502 (2009)Google Scholar
  15. J. Biamonte, P. Wittek, N. Pancotti, P. Rebentrost, N. Wiebe, and S. Lloyd, Quantum machine learning, Nature 549, 195 (2017)Google Scholar
  16. A. Shukla, P. Vedula, A quantum approach for digital signal processing, Eur. Phys. J. Plus 138, 1121 (2023)Google Scholar
  17. M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information, Cambridge University Press, Cambridge, England (2000).Google Scholar
  18. Preskill, J.: Lecture Notes for Physics 229: Quantum Information and Computation, CreateSpace Independent Publishing Platform (2015)Google Scholar
  19. Schleich, W.P., Ranade, K.S., Anton, C., Arndt, M., Aspelmeyer, M., Bayer, M., Berg, G., Calarco, T., Fuchs, H., Giacobino, E., Grassl, M., Hönggi, P., Heckl, W.M., Hertel, I.-V., Huelga, S., Jelezko, F., Keimer, B., Kotthaus, J.P., Leuchs, G., Lütkenhaus, N., Maurer, U., Pfau, T., Plenio, M.B., Rasel, E.M., Renn, O., Silberhorn, C., Schiedmayer, J., Schmitt-Landsiedel, D., Schönhammer, K., Ustinov, A., Walther, P., Weinfurter, H., Welzl, E., Wiesendanger, R., Wolf, S., Zeilinger, A., Zoller, P.: Quantum technology: from research to application. Appl. Phys. B 122(5), 130 (2016)Google Scholar
  20. Acín, A., Bloch, I., Buhrman, H., Calarco, T., Eichler, C., Eisert, J., Esteve, D., Gisin, N., Glaser, S.J., Jelezko, F., Kuhr, S., Lewenstein, M., Riedel, M.F., Schmidt, P.O., Thew, R., Wallraff, A., Walmsley, I., Wilhelm, F.K.: The quantum technologies roadmap: a European community view. New J. Phys., 20(8), 080201 (2018)Google Scholar
  21. D. Deutsch, Quantum theory, the Church-turing principle and the universal quantum computer, Proc.R. Soc. Lond. A 400, 97 (1985),Google Scholar
  22. L. Grover, A fast quantum mechanical algorithm for database search, STOC, in 96: Proceedings 28th Annual ACM Symposium on the Theory of Computation. New York: ACM Press. (1996)Google Scholar
  23. P.W. Shor, Algorithms for quantum computation: discrete logarithms and factoring Proceedings, XXXV Annual Symposium on Foundations of Computer Science. (Los Alamitos, CA: IEEE Press) (1994)Google Scholar
  24. P.W. Shor, Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer SIAM J. Comput. 26, 5 (1997)Google Scholar
  25. D. Coppersmith, An approximate Fourier transform useful in quantum factoring, IBM Research Report, RC 19642, (2002)Google Scholar
  26. Y. S. Weinstein, M. A. Pravia, E. M. Fortunato, S. Lloyd, D. G. Cory, Implementation of the quantum Fourier transform, Phys. Rev. Lett. 86, 1889 (2001)Google Scholar
  27. 8. H. Wang, L. Wu, Y. Liu, F. Nori, Measurement-based quantum phase estimation algorithm for finding eigenvalues of non-unitary matrices, Phys. Rev. A. 82, 062303 (2010)Google Scholar
  28. Khaneja, N., Reiss, T., Kehlet, C., Schulte-Herbrüggen, T., Glaser, S. J.: Optimal control of coupled spin dynamics: design of NMR pulse sequences by gradient ascent algorithms. 2005 J. Magn. Res. 172(2) 296Google Scholar
  29. Doria, P., Calarco, T., Montangero, S.: Optimal control technique for many-body quantum dynamics. Phys. Rev. Lett. 106, 190501 (2011)Google Scholar
  30. Petruhanov, V.N., Pechen, A.N.: GRAPE optimization for open quantum systems with time-dependent decoherence rates driven by coherent and incoherent controls. J. Phys. A 56(30), 305303 (2023)Google Scholar
  31. Schulte-Herbrüggen, T., Spörl, A., Khaneja, N., Glaser, S.J.: Optimal control for generating quantum gates in open dissipative systems. J. Phys. B: At. Mol. Opt. Phys. 44(15), 154013 (2011)Google Scholar
  32. De Fouquieres, P., Schirmer, S.G., Glaser, S.J., Kuprov, I.: Second order gradient ascent pulse engineering. J. Magn. Res. 212(2) 412 (2011)Google Scholar
  33. Pechen, A.N., Tannor, D.J.: Quantum control landscape for a Lambda-atom in the vicinity of second-order traps. Israel Journal of Chemistry 52 467 (2012)Google Scholar
  34. Lucarelli, D.: Quantum optimal control via gradient ascent in function space and the time-bandwidth quantum speed limit. Phys. Rev. A 97(6), 062346 (2018)Google Scholar
  35. Koch, C.P., Boscain, U., Calarco, T., Dirr, G., Filipp, S., Glaser, S.J., Kosloff, R., Montangero, S., Schulte-Herbrüggen,T., Sugny, D., Wilhelm, F.K.: Quantum optimal control in quantum technologies. Strategic report on current status, visions and goals for research in Europe. EPJ Quantum Technol. 9(1), 19 (2022)Google Scholar
  36. Müller, M.M., Said, R.S., Jelezko, F., Calarco, T., Montangero, S.: One decade of quantum optimal control in the chopped random basis. Rep. Prog. Phys. 85, 076001 (2022)Google Scholar
  37. A. Peruzzo, J. Clean, P. Shadbolt, M. H. Yung, X. Q. Zhou, P. J. Love, A. Aspuru-Guzik, and J. L. O’Brien, A variational eigenvalue solver on a photonic quantum processor, Nat. Commun. 5, 4213 (2014)Google Scholar
  38. X. D. Xie, Z. Y. Xue, and D. B. Zhang, Variational quantum algorithms for scanning the complex spectrum of non-Hermitian systems, Front. Phys. 19, 41202 (2024).Google Scholar
  39. J. M. Liang, S. Q. Shen, M. Li, and S. M. Fei, Quantum algorithms for the generalized eigenvalue problem, Quantum Inf. Process. 21, 23 (2022)Google Scholar
  40. Y. Sato, H. C. Watanabe, R. Raymond, R. Kondo, K. Wada, K. Endo, M. Sugawara, and N. Yamamoto, Variational quantum algorithm for generalized eigenvalue problems and its application to the finite-element method, Phys. Rev. A 108, 022429 (2023)Google Scholar
  41. M. R. Hwang, E. Jung, M. Kim, and D. Park, Euclidean time method in generalized eigenvalue equation, Quantum Inf. Process. 23, 62 (2024).Google Scholar
  42. H. F. Zhao, P. Zhang, and T. C Wei, A universal variational quantum eigensolver for non-Hermitian systems, Sci. Rep. 13, 22313 (2023)Google Scholar
  43. X. Wang, Zh. Song, Y. Wang, Variational quantum singular value decomposition, Quantum 5, 483 (2021)Google Scholar
  44. Paddle Quantum: a quantum machine learning toolkit, URL https://qml.baidu.com (2020).Google Scholar
  45. PaddlePaddle URL https://github.com/paddlepaddle/paddle.Google Scholar
  46. Ya. Ma, D. Yu, T. Wu, and H. Wang, PaddlePaddle: An Open-Source Deep Learning Platform from Industrial Practice. Frontiers of Data and Domputing11(1) 105 (2019)Google Scholar
  47. J. Li, Zh. Fan, H. Yao, Ch. Yang, Sh.-M. Fei, Z.-T. Zhou, M.-H. Dou, T.-Ya. Ma, Variational quantum algorithm for generalized eigenvalue problems of non-Hermitian systems, Phys.Rev.A 113, 012406 (2026)Google Scholar
  48. J. Jojo, A. Khandelwal, M.G. Chandra, On Modifying the Variational Quantum Singular Value Decomposition Algorithm, arXiv:2310.19504v2 [quant-ph] (2024)Google Scholar
  49. M.P. Deisenroth, A. A. Faisal, Ch. S. Ong, Mathematics for machine learning, Cambridge University Press (2020)Google Scholar
  50. Charu C Aggarwal, Linear algebra and optimization for machine learning, volume 156. Springer, 2020.Google Scholar
  51. B. Ford, G. Hall, The generalized eigenvalue problem in quantum chemistry, Computer Physics Communications, 8(5), 337 (1974)Google Scholar
  52. A. Klawonn, M. Lanser, O. Rheinbach, Toward extremely scalable nonlinear domain decomposition methods for elliptic partial differential equations, SIAM Journal on Scientific Computing, 37(6), C667 (2015)Google Scholar
  53. J. Toivanen, Ph. Avery, Ch. Farhat, A multilevel FETI-DP method and its performance for problems with billions of degrees of freedom, International Journal for Numerical Methods in Engineering, 116(10-11), 661 (2018)Google Scholar
  54. A. I. Zenchuk, W. Qi, A. Kumar, J. Wu, Matrix manipulations via unitary transformations and ancilla-state measurements, Quant.Inf. Comp., 24(13&14), 1099 (2024)Google Scholar
  55. A.I. Zenchuk, W. Qi and J. Wu, Matrix Encoding Method in Variational Quantum Singular Value Decomposition, Quant. Inf. Comp., 25(4) 356 (2025)Google Scholar
  56. A.I. Zenchuk, G. A. Bochkin, W. Qi, A. Kumar, J. Wu, Quantum algorithms for calculating determinant and inverse of matrix and solving linear algebraic systems, Quantum Inf. Comp. 25(2), 195 (2025).Google Scholar
  57. H.F. Trotter,On the Product of Semi-Groups of Operators, Proc. Amer. Math. Soc. 10 545 (1959)Google Scholar
  58. M. Suzuki, Generalized Trotter’s formula and systematic approximants of exponential operators and inner derivations with applications to many-body problems, Commun. Math. Phys. 51 183 (1976)Google Scholar
  59. A. T.-Shma, Inverting well conditioned matrices in quantum logspace, in Proceedings of the Forty-fifth Annual ACM Symposium on Theory of Computing, STOC ’13, pages 881-890, New York, USA (2013).Google Scholar
  60. D. Aharonov and A. T.-Shma, Adiabatic quantum state generation, SIAM Journal on Computing 37(1), 47 (2007).Google Scholar
  61. S. Blanes and F. Casas, On the convergence and optimization of the Baker-Campbell-Hausdorff formula, Linear algebra and its applications, 378, 135 (2004)Google Scholar
  62. L. Zhao, Z. Zhao, P. Rebentrost, and J. Fitzsimons, Compiling basic linear algebra subroutines for quantum computers, Quantum Mach. Intell. 3, 21 (2021).Google Scholar
  63. L. Wossnig, Z. Zhao, and A. Prakash, Quantum Linear System Algorithm for Dense Matrices, Phys. Rev. Lett. 120, 050502 (2018).Google Scholar
  64. J.M. Martyn, Z. M. Rossi, A.K. Tan, I.L. Chuang, A Grand Unification of Quantum Algorithms, PRX Quantum 2, 040203 (2021)Google Scholar
  65. I. Novikau, I. Joseph Estimating QSVT angles for matrix inversion with large condition numbers, arXiv:2408.15453v2 [quant-ph] (2024)Google Scholar
  66. G. H. Golub and C. F. V. Loan, Matrix Computations, 4th ed., Johns Hopkins University Press, Baltimore, (2013)Google Scholar
  67. A.I.Zenchuk, W. Qi, J.Wu, Arbitrary state creation via controlled measurement, Quantum Information and Computation, accepted; arXiv:2504.09462v2 [quant-ph] (2025)Google Scholar
  68. A. Bellante, A. Luongo, and S. Zanero, Quantum algorithms for SVD-based data representation and analysis, Quantum Mach. Intell. 4(2) (2022)Google Scholar
  69. E.B. Fel’dman, A.I. Zenchuk, W. Qi, J. Wu, Controlled measurement, Hermitian conjugation and normalization in matrix-manipulation algorithms, arXiv:2504.00015v4 [quant-ph] (2025)Google Scholar