Quantum Algorithms for Spectral Sums

Authors

  • Alessandro Luongo Centre for Quantum Technologies (CQT), National University of Singapore, Singapore Inveriant Pte. Ltd., Singapore
  • Changpeng Shao Academy of Mathematics and Systems Science,Chinese Academy of Sciences, China

DOI:

https://doi.org/10.1609/aaai.v40i29.39597

Abstract

We propose new quantum algorithms for estimating spectral sums of positive semi-definite (PSD) matrices. For a matrix A and a function f, the spectral sum is the trace of f(A), equivalently the sum over eigenvalues of A of f applied to each eigenvalue. Typical examples of spectral sums are the von Neumann entropy, the trace of the inverse of A, the log-determinant, and the Schatten p-norm, where the latter does not require the matrix to be PSD. The current best classical randomized algorithms estimating these quantities have a runtime that is at least linearly in the number of nonzero entries of the matrix and quadratic in the estimation error. Assuming access to a block-encoding of a matrix, our algorithms are sub-linear in the matrix size, and depend at most quadratically on other parameters, like the condition number and the approximation error, and thus can compete with most of the randomized and distributed classical algorithms proposed in the literature, and polynomially improve the runtime of other quantum algorithms proposed for the same problems. We show how the algorithms and techniques used in this work can be applied to three problems in spectral graph theory: approximating the number of triangles, the effective resistance, and the number of spanning trees in a graph.

Published

2026-03-14

How to Cite

Luongo, A., & Shao, C. (2026). Quantum Algorithms for Spectral Sums. Proceedings of the AAAI Conference on Artificial Intelligence, 40(29), 24178-24188. https://doi.org/10.1609/aaai.v40i29.39597

Issue

Section

AAAI Technical Track on Machine Learning VI