Quantum and classical query complexities of functions of matrices
Ashley Montanaro, Changpeng Shao
TL;DR
This work analyzes the quantum and classical query complexities of computing entries ⟨i|f(A)|j⟩ for functions of sparse Hermitian matrices A with ∥A∥ ≤ 1. It establishes that the quantum query complexity is lower bounded by the ε-approximate degree \widetilde{deg}_{ε}(f) and that the best quantum upper bounds scale nearly linearly or quadratically in this quantity, while classical lower bounds grow exponentially in the same measure, yielding an exponential quantum–classical separation. The authors derive a deep connection between approximate degree, dual polynomials, and tridiagonal matrix constructions, and use this to justify the optimality of quantum singular value transformation (QSVT) for smooth matrix functions. They also prove BQP-completeness for the entry estimation problem under suitable conditions, highlighting intrinsic quantum hardness for classical computation. Altogether, the paper provides a tight, degree-driven framework for understanding when quantum algorithms outperform classical ones in evaluating matrix functions, with broad implications for Hamiltonian simulation, matrix inversion, and related tasks.
Abstract
Let $A$ be an $s$-sparse Hermitian matrix, $f(x)$ be a univariate function, and $i, j$ be two indices. In this work, we investigate the query complexity of approximating $\bra{i} f(A) \ket{j}$. We show that for any continuous function $f(x):[-1,1]\rightarrow [-1,1]$, the quantum query complexity of computing $\bra{i} f(A) \ket{j}\pm \varepsilon/4$ is lower bounded by $Ω(\widetilde°_\varepsilon(f))$. The upper bound is at most quadratic in $\widetilde°_\varepsilon(f)$ and is linear in $\widetilde°_\varepsilon(f)$ under certain mild assumptions on $A$. Here the approximate degree $\widetilde°_\varepsilon(f)$ is the minimum degree such that there is a polynomial of that degree approximating $f$ up to additive error $\varepsilon$ in the interval $[-1,1]$. We also show that the classical query complexity is lower bounded by $\widetildeΩ((s/2)^{(\widetilde°_{2\varepsilon}(f)-1)/6})$ for any $s\geq 4$. Our results show that the quantum and classical separation is exponential for any continuous function of sparse Hermitian matrices, and also imply the optimality of implementing smooth functions of sparse Hermitian matrices by quantum singular value transformation. As another hardness result, we show that entry estimation problem (i.e., deciding $\bra{i} f(A) \ket{j}\geq \varepsilon$ or $\bra{i} f(A) \ket{j}\leq -\varepsilon$) is BQP-complete for any continuous function $f(x)$ as long as its approximate degree is large enough. The main techniques we used are the dual polynomial method for functions over the reals, linear semi-infinite programming, and tridiagonal matrices.
