Reuse & Permissions

It is not necessary to obtain permission to reuse this article or its components as it is available under the terms of the Creative Commons Attribution 4.0 International license. This license permits unrestricted use, distribution, and reproduction in any medium, provided attribution to the author(s) and the published article's title, journal citation, and DOI are maintained. Please note that some figures may have been included with permission from other third parties. It is your responsibility to obtain the proper permission from the rights holder directly for these figures.

Export citation

Export citation

Choose format for download:

Download Citation
  • Open Access

Quantum Computational Complexity of Matrix Functions

Santiago Cifuentes1, Samson Wang2,*, Thais L. Silva3, Mario Berta4,5, and Leandro Aolita3

  • *Contact author: samsonwang@outlook.com

PRX Quantum 7, 020364 – Published 18 June, 2026

DOI: https://doi.org/10.1103/g5x4-jcsz

Abstract

We investigate the dividing line between classical and quantum computational power in estimating properties of matrix functions. More precisely, we study the computational complexity of two primitive problems: given a function f and a Hermitian matrix A, we compute a matrix element of f(A) or a local measurement on f(A)|0⟩⊗n, with |0⟩⊗n being an n-qubit reference state vector, in both cases up to additive approximation error. We consider four functions—monomials, Chebyshev polynomials, the time evolution function, and the inverse function—and probe the complexity across a broad landscape covering different problem input regimes. Namely, we consider two types of matrix inputs (sparse and Pauli access), matrix properties (norm and sparsity), the approximation error, and function-specific parameters. We identify BQP-complete forms of both problems for each function and then toggle the problem parameters to easier regimes to see where hardness remains, or where the problem becomes classically easy. As part of our results, we make concrete a hierarchy of hardness across the functions; in parameter regimes where we have classically efficient algorithms for monomials, all three other functions remain robustly BQP-hard, or hard under usual computational complexity assumptions. In identifying classically easy regimes, among others, we show that for any polynomial of degree poly(n), both problems can be efficiently classically simulated when A has O(logn) nonzero coefficients in the Pauli basis. This contrasts with the fact that the problems are BQP-complete in the sparse access model even for constant row sparsity, whereas the stated Pauli access efficiently constructs sparse access with row sparsity O(logn). Our work provides a catalog of efficient quantum and classical algorithms for fundamental linear-algebra tasks.

View figure in article

Physics Subject Headings (PhySH)

Popular Summary

Article Text

References (93)

  1. D. Janzing and P. Wocjan, A simple PromiseBQP-complete matrix problem, Theory Comput. 3, 61 (2007).
  2. A. W. Harrow, A. Hassidim, and S. Lloyd, Quantum algorithm for linear systems of equations, Phys. Rev. Lett. 103, 150502 (2009).
  3. D. Nagaj, Fast universal quantum computation with railroad-switch local Hamiltonians, J. Math. Phys. 51, 062201 (2010).
  4. A. Gilyén, Y. Su, G. Hao Low, and N. Wiebe, in Proceedings of the 51st ACM Symposium on the Theory of Computing (STOC) (2019), pp. 193–204.
  5. J. M. Martyn, Z. M. Rossi, A. K. Tan, and I. L. Chuang, Grand unification of quantum algorithms, Phys. Rev. X 2, 040203 (2021).
  6. G. H. Low and I. L. Chuang, Hamiltonian simulation by qubitization, Quantum 3, 163 (2019).
  7. Y. Dong, X. Meng, K. B. Whaley, and L. Lin, Efficient phase-factor evaluation in quantum signal processing, Phys. Rev. A 103, 042419 (2021).
  8. T. d. L. Silva, L. Borges, and L. Aolita, Fourier-based quantum signal processing, arXiv:2206.02826.
  9. D. Motlagh and N. Wiebe, Generalized quantum signal processing, PRX Quantum 5, 020368 (2024).
  10. N.-H. Chia, A. Gilyén, T. Li, H.-H. Lin, E. Tang, and C. Wang, in Proceedings of the 52nd ACM Symposium on the Theory of Computing (STOC) (2020), pp. 387–400.
  11. S. Gharibian and F. Le Gall, in Proceedings of the 54th ACM Symposium on the Theory of Computing (STOC) (2022), pp. 19–32.
  12. J. Haah, Product decomposition of periodic functions in quantum signal processing, Quantum 3, 190 (2019).
  13. L. Lin and Y. Tong, Heisenberg-limited ground-state energy estimation for early fault-tolerant quantum computers, PRX Quantum 3, 010318 (2022).
  14. G. Wang, D. S. França, R. Zhang, S. Zhu, and P. D. Johnson, Quantum algorithm for ground state energy estimation using circuit depth with exponentially improved dependence on precision, Quantum 7, 1167 (2023).
  15. G. Wang, D. S. França, G. Rendon, and P. D. Johnson, Efficient ground-state-energy estimation and certification on early fault-tolerant quantum computers, Phys. Rev. A 111, 012426 (2025).
  16. D. An, J.-P. Liu, and L. Lin, Linear combination of Hamiltonian simulation for nonunitary dynamics with optimal state preparation cost, Phys. Rev. Lett. 131, 150603 (2023).
  17. D. An, A. M. Childs, and L. Lin, Quantum algorithm for linear non-unitary dynamics with near-optimal dependence on all parameters, arXiv:2312.03916 .
  18. G. H. Low and Y. Su, Quantum eigenvalue processing, arXiv:2401.06240 [quant-ph].
  19. X.-M. Zhang and X. Yuan, On circuit complexity of quantum access models for encoding classical data, arXiv:2311.11365.
  20. E. Campbell, Random compiler for fast Hamiltonian simulation, Phys. Rev. Lett. 123, 070503 (2019).
  21. K. Wan, M. Berta, and E. T. Campbell, Randomized quantum algorithm for statistical phase estimation, Phys. Rev. Lett. 129, 030503 (2022).
  22. S. Wang, S. McArdle, and M. Berta, Qubit-efficient randomized quantum algorithms for linear algebra, PRX Quantum 5, 020324 (2024).
  23. K. Nakaji, M. Bagherimehrab, and A. Aspuru-Guzik, qSWIFT: High-order randomized compiler for Hamiltonian simulation, arXiv:2302.14811.
  24. A. Montanaro and C. Shao, in Proceedings of the 56th ACM Symposium on the Theory of Computing (STOC) (2024), pp. 573–584.
  25. E. Tang, Dequantizing algorithms to understand quantum advantage in machine learning, Nat. Rev. Phys. 4, 692 (2022).
  26. D. Aharonov, I. Arad, and T. Vidick, Guest column: The quantum PCP conjecture, ACM Sigact News 44, 47 (2013).
  27. S. Sachdeva and N. K. Vishnoi, Faster algorithms via approximation theory, Found. Trends Theor. Comput. Sci. 9, 125 (2014).
  28. A. M. Childs, R. Kothari, and R. D. Somma, Quantum algorithm for systems of linear equations with exponentially improved dependence on precision, SIAM J. Comput. 46, 1920 (2017).
  29. A. Tosta, T. d. L. Silva, G. Camilo, and L. Aolita, Randomized semi-quantum matrix processing, arXiv:2307.11824.
  30. S. Apers and L. Miclo, Quantum walks, the discrete wave equation and Chebyshev polynomials, arXiv:2402.07809.
  31. S. Apers, S. Sen, and D. Szabó, A (simple) classical algorithm for estimating Betti numbers, arXiv:2211.09618.
  32. R. P. Feynman, Quantum mechanical computers, Opt. News 11, 11 (1985).
  33. This also extends to functions approximated by a polynomial of said degree.
  34. E. Tang, in Proceedings of the 51st ACM Symposium on the Theory of Computing (STOC) (2019), pp. 217–228.
  35. E. Tang, Quantum principal component analysis only achieves an exponential speedup because of its state preparation assumptions, Phys. Rev. Lett. 127, 060503 (2021).
  36. A. Gilyén, Z. Song, and E. Tang, An improved quantum-inspired algorithm for linear regression, Quantum 6, 754 (2022).
  37. C. Shao and A. Montanaro, Faster quantum-inspired algorithms for solving linear systems, ACM Trans. Quantum Comput. 3, 20 (2022).
  38. This problem consists of finding the ground state energy of a local Hamiltonian given a “guiding” vector with Ω(1/poly(N)) overlap with the corresponding eigenspace.
  39. N. Bansal, S. Bravyi, and B. M. Terhal, Classical approximation schemes for the ground-state energy of quantum and classical Ising spin Hamiltonians on planar graphs, Quantum Inf. Comput. 9, 701 (2009).
  40. The precise problems to which our computational hardness results will directly apply are actually the promise problem version of these estimation tasks, i.e., deciding whether the target quantity is above or below a value range, instead of directly estimating it. Both problems are intimately connected: for example, using an algorithm that decides given g whether Aj,jm≥g it is possible to approximate the value Aj,jm by doing binary search on the value g in the range [−‖A‖m,‖A‖m]. The formal promise problems considered for hardness analysis are defined in Sec. 4 for each function.
  41. Y. Dong, L. Lin, and Y. Tong, Ground-state preparation and energy estimation on early fault-tolerant quantum computers via quantum eigenvalue transformation of unitary matrices, PRX Quantum 3, 040305 (2022).
  42. J. H. Reif, Logarithmic depth circuits for algebraic functions, SIAM J. Comput. 15, 231 (1986).
  43. C. H. Bennett, Logical reversibility of computation, IBM J. Res. Dev. 17, 525 (1973).
  44. A. Shpilka and A. Yehudayoff, Arithmetic circuits: A survey of recent results and open questions, Found. Trends Theor. Comput. Sci. 5, 207 (2010).
  45. S. Wang, X. Li, W. J. B. Lee, S. Deb, E. Lim, and A. Chattopadhyay, A comprehensive study of quantum arithmetic circuits, arXiv:2406.03867.
  46. Z. Zhang, Q. Wang, and M. Ying, Parallel quantum algorithm for Hamiltonian simulation, Quantum 8, 1228 (2024).
  47. S. McArdle, S. Endo, Alán Aspuru-Guzik, S. C. Benjamin, and X. Yuan, Quantum computational chemistry, Rev. Mod. Phys. 92, 015003 (2020).
  48. A. Lucas, Ising formulations of many NP problems, Front. Phys. 2, 74887 (2014).
  49. J. Kempe, A. Kitaev, and O. Regev, The complexity of the local Hamiltonian problem, SIAM J. Comput. 35, 1070 (2006).. Earlier version in FSTTCS’04.
  50. S. Aaronson and D. Gottesman, Improved simulation of stabilizer circuits, Phys. Rev. A 70, 052328 (2004).
  51. C. Gidney, Stim: A fast stabilizer circuit simulator, Quantum 5, 497 (2021).
  52. P. Rall, D. Liang, J. Cook, and W. Kretschmer, Simulation of qubit quantum circuits via Pauli propagation, Phys. Rev. A 99, 062337 (2019).
  53. A. Angrisani, A. Schmidhuber, M. S. Rudolph, M. Cerezo, Z. Holmes, and H.-Y. Huang, Classically estimating observables of noiseless quantum circuits, Phys. Rev. Lett. 135, 170602 (2025).
  54. C. Cirstoiu, A Fourier analysis framework for approximate classical simulations of quantum circuits. arXiv:2410.13856.
  55. S. Lerch, R. Puig, M.S. Rudolph, A. Angrisani, T. Jones, M. Cerezo, S. Thanasilp, and Z. Holmes, Efficient quantum-enhanced classical simulation for patches of quantum landscapes, arXiv:2411.19896.
  56. S. Bravyi, D. Browne, P. Calpin, E. Campbell, D. Gosset, and M. Howard, Simulation of quantum circuits by low-rank stabilizer decompositions, Quantum 3, 181 (2019).
  57. B. Coecke and R. Duncan, in International Colloquium on Automata, Languages, and Programming (Springer, 2008), pp. 298–310.
  58. O. Koska, M. Baboulin, and A. Gazda, A tree-approach Pauli decomposition algorithm with application to quantum computing, arXiv:2403.11644.
  59. L. Hantzko, L. Binkowski, and S. Gupta, Tensorized Pauli decomposition algorithm, Phys. Scr. 99, 085128 (2024).
  60. T. N Georges, B. K Berntson, C. Sünderhauf, and A. V Ivanov, Pauli decomposition via the fast Walsh-Hadamard transform, New J. Phys. 27, 033004 (2025).
  61. The standard way [4, Lemma 48] of preparing a block encoding of an s-sparse matrix A with largest matrix entry magnitude ≤1 given through the sparse access model returns a subnormalized block encoding of A/s. To the authors’ knowledge, there is not currently a known method to generically obtain a non-normalized block encoding when starting from sparse access.
  62. D. Janzing and P. Wocjan, BQP-complete problems concerning mixing properties of classical random walks on sparse graphs, arXiv:quant-ph/0610235.
  63. The notion of BQP-completeness as we described it is based on Karp-reductions, see Definition 5 for definitions. Meanwhile, a polynomial-time Turing reduction from problem A to B consists of an algorithm that is able to decide A in polynomial-time using an oracle able to solve problem B. In other words, results (C.2) show that the problem of computing Chebyshev polynomials is BQP-complete under Turing reductions.
  64. R. P. Feynman, Simulating physics with computers, Int. J. Theor. Phys. 21, 467 (1982).
  65. A. Peres, Reversible logic and quantum computers, Phys. Rev. A 32, 3266 (1985).
  66. D. W. Berry, A. M. Childs, R. Cleve, R. Kothari, and R. D. Somma, Simulating Hamiltonian dynamics with a truncated Taylor series, Phys. Rev. Lett. 114, 090502 (2015).
  67. More precisely, given an algorithm that computes a (kε)-approximation of ⟨i|A−1|j⟩, we can obtain an ε-approximation of the same value by using the same algorithm to compute a (kε)-approximation of ⟨i|(A/k)−1|j⟩=k⟨i|A−1|j⟩ and then dividing that approximation by k.
  68. S. E. Venegas-Andraca, Quantum walks: A comprehensive review, Quantum Inf. Process. 11, 1015 (2012).
  69. K. Seki and S. Yunoki, Quantum power method by a superposition of time-evolved states, PRX Quantum 2, 010333 (2021).
  70. T. A. Bespalova and O. Kyriienko, Hamiltonian operator approximation for energy measurement and ground-state preparation, PRX Quantum 2, 030318 (2021).
  71. W. Kirby, M. Motta, and A. Mezzacapo, Exact and efficient Lanczos method on a quantum computer, Quantum 7, 1018 (2023).
  72. T. O’Leary, L. W. Anderson, D. Jaksch, and M. Kiffner, Partitioned quantum subspace expansion, Quantum 9, 1726 (2025).
  73. The “non-promise” problems, known commonly as decision problems, consist of the subset of promise problems such that Πyes∪Πno={0,1}⋆.
  74. Observe that we are defining BQP as a class of promise problems. Formally, one might denote this class as PromiseBQP, while reserving BQP for the class of non-promise problems. Nonetheless, using the term BQP to refer directly to the promise class is common in the literature, and we follow this convention.
  75. D. Aharonov and A. Ta-Shma, Adiabatic quantum state generation, SIAM J. Comput. 37, 47 (2007).. Earlier version in STOC’03.
  76. D. W. Berry, G. Ahokas, R. Cleve, and B. C. Sanders, Efficient quantum algorithms for simulating sparse Hamiltonians, Commun. Math. Phys. 270, 359 (2007).
  77. We say that a function gε-approximates a function f in domain D when for all x∈D it holds that |f(x)−g(x)|≤ε.
  78. A. Y. Kitaev, Quantum measurements and the Abelian Stabilizer Problem, arXiv:quant-ph/9511026.
  79. Michael A. Nielsen and Isaac L. Chuang, Quantum Computation and Quantum Information (Cambridge University Press, 2000).
  80. L. Lin, Lecture notes on quantum algorithms for scientific computation, arXiv:2201.08309.
  81. G. Brassard, P. Høyer, M. Mosca, and A. Tapp, in Quantum Computation and Quantum Information: A Millennium Volume, Contemporary Mathematics Series (AMS, 2002), Vol. 305, pp. 53–74.
  82. G. H. Low and I. L. Chuang, Optimal Hamiltonian simulation by quantum signal processing, Phys. Rev. Lett. 118, 010501 (2017).
  83. M. Berestycki, Mixing times of markov chains: techniques and examples. Lecture Notes (2016).
  84. From now on, we omit the dependence on N of η and simply write η to denote η(N).
  85. Technically, the decision version of this problem is BQP-complete.
  86. This follows straightforwardly from error propagation in multiplication.
  87. We do not explicitly prove this fact, but it is a consequence of the proof from Theorem 8.
  88. D. Aharonov, V. Jones, and Z. Landau, “in Proceedings of the 38th ACM Symposium on the Theory of Computing (STOC) (2006), pp. 427–436.
  89. A. B. Aleksandrov and V. V. Peller, Estimates of operator moduli of continuity, J. Funct. Anal. 261, 2741 (2011).
  90. F. Verstraete and J. I. Cirac, Matrix product states represent ground states faithfully, Phys. Rev. B 73, 094423 (2006).
  91. D. Gross, Recovering low-rank matrices from few coefficients in any basis, IEEE Trans. Inf. Theory 57, 1548 (2011).
  92. A. Markov, Sur une question posée par Mendeleieff, Bull. Acad. Sci. St. Petersburg 62, 1 (1889).
  93. This trick is known as idling.

Outline

Information

Sign In to Your Journals Account

Filter

Filter

Article Lookup

Enter a citation