This is a companion piece to https://doi.org/10.1063/5.0166678
Code to replicate the figures in the corresponding paper can be found on Github.
See also the spectral_density Python package.
Consider a Hermitian matrix with eigenvalues and eigenvectors . Given a vector , we may be interested in the Local Density of States
We can’t efficiently compute exactly, as this is equivalent to determining all the eigenvalues. However, we can compute moments for .
The aim of the Kernel Polynomial Method (KPM) is to produce a “density” approximating . Towards this end, let be a fixed reference density and expand as a formal polynomial series where are the orthonormal polynomials with respect to . Using the orthonormality of the with respect to , we can compute by Thus, we see the are the so-called (modified) moments of with respect to the orthogonal polynomials of and can be computed without explicit knowledge of using the expression above.
Computing the first moments naturally gives an approximation to defined by When the degree of the approixmation ,
Typically, one chooses the reference density to be the orthogonality measure for the Chebyshev polynomials. In this case, the modified moments can be computed by computing Chebyshev polynomials in applied to . For such an approach to work, it is critical that is scaled so that the spectrum is contained in .
The Lanczos method for matrix function approximation (Lanczos-FA) can be used to approximate (read more about this task here). For polynomials, the method is mathematically exact, and so we can use this method to compute . In the present paper, the key observation is the expensive part of this approach (running Lanczos) is completely independent of the choice of reference density . This means we can obtain lots of different KPM approxiamtions for essentially free. This avoids the need for determining how to scale a priori and also allows us to use more “exotic” reference densities.
There is a lot of concern that the Lanczos method is unstable. Another contribution of this paper is to try and spread awareness about the way the instabilities of Lanczos actually impact methods like Lanczos-FA. For example, [1] shows that the method accurately computes (bounded) polynomial moments!
1. Knizhnerman, L.A. The Simple Lanczos Procedure: Estimates of the Error of the Gauss Quadrature Formula and Their Applications. Comput. Math. Math. Phys. 1996, 36, 1481–1492.