Table of Contents
Fetching ...

Quantum algorithms for spectral sums

Alessandro Luongo, Changpeng Shao

TL;DR

This work presents quantum algorithms for estimating spectral sums of positive semidefinite matrices, including the log-determinant, Schatten $p$-norms, von Neumann entropy, and the trace of the inverse, by leveraging block-encodings and quantum singular value transformation. The methods yield sub-linear dependence on matrix size and polylogarithmic factors in key parameters like the condition number $\kappa$ and error $\epsilon$, with concrete applications to graph problems such as counting triangles, estimating effective resistance, and counting spanning trees. The authors develop multiple algorithmic branches (log-determinant, Schatten norms, entropy, inverse trace) and provide detailed runtime analyses, error bounds, and comparisons to classical approaches, along with discussions of practical few-depth and one-clean-qubit regimes. Overall, the paper demonstrates that quantum spectral-sum estimation can outperform several classical randomized techniques and offers a versatile toolkit for spectral graph theory tasks and related domains.

Abstract

We propose new quantum algorithms for estimating spectral sums of positive semi-definite (PSD) matrices. The spectral sum of an PSD matrix $A$, for a function $f$, is defined as $ \text{Tr}[f(A)] = \sum_j f(λ_j)$, where $λ_j$ are the eigenvalues of $A$. Typical examples of spectral sums are the von Neumann entropy, the trace of $A^{-1}$, 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 within a graph.

Quantum algorithms for spectral sums

TL;DR

This work presents quantum algorithms for estimating spectral sums of positive semidefinite matrices, including the log-determinant, Schatten -norms, von Neumann entropy, and the trace of the inverse, by leveraging block-encodings and quantum singular value transformation. The methods yield sub-linear dependence on matrix size and polylogarithmic factors in key parameters like the condition number and error , with concrete applications to graph problems such as counting triangles, estimating effective resistance, and counting spanning trees. The authors develop multiple algorithmic branches (log-determinant, Schatten norms, entropy, inverse trace) and provide detailed runtime analyses, error bounds, and comparisons to classical approaches, along with discussions of practical few-depth and one-clean-qubit regimes. Overall, the paper demonstrates that quantum spectral-sum estimation can outperform several classical randomized techniques and offers a versatile toolkit for spectral graph theory tasks and related domains.

Abstract

We propose new quantum algorithms for estimating spectral sums of positive semi-definite (PSD) matrices. The spectral sum of an PSD matrix , for a function , is defined as , where are the eigenvalues of . Typical examples of spectral sums are the von Neumann entropy, the trace of , the log-determinant, and the Schatten -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 within a graph.

Paper Structure

This paper contains 37 sections, 34 theorems, 66 equations, 1 figure, 2 algorithms.

Key Result

Theorem 1

Let $U_A$ be an $\alpha$-block-encoding of an PSD matrix $A \in \mathbb{R}^{n \times n}$. There is a quantum algorithm that returns an estimate $\overline{\mathop{\mathrm{logdet}}\nolimits(A)}$ which is with $\epsilon$-relative error of $\mathop{\mathrm{logdet}}\nolimits(A)$ with high probability us

Figures (1)

  • Figure 1: Results of the numerical experiment measuring $\rho$ as function of $p \in [50]$.

Theorems & Definitions (65)

  • Definition 1: Spectral sum han2017approximatingubaru2017fast
  • Theorem : Informal - Algorithm for estimating log-determinants
  • Theorem : Informal - Algorithm for Schatten $p$-norms
  • Theorem : Informal - Algorithm for estimating von Neumann entropy
  • Theorem : Informal - Algorithm for trace of inverse
  • Definition 2: Positive semi-definite (PSD)
  • Definition 3: Block-encoding gilyen2019quantumlow2019hamiltonian
  • Theorem 4: SVT of Hermitian matrices gilyen2019quantum
  • Lemma 5: Quantum trace estimation
  • Definition 6: Log-determinant of an PSD matrix $A$
  • ...and 55 more