Optimized solver algorithms for computing $\mathrm{Tr}(A^{-1})$
Abstract
Estimating the trace of the inverse of a large quark matrix is a longstanding problem in lattice QCD.
The standard approach is Hutchinson's method, which uses random noise vectors to estimate the trace to a desired statistical tolerance.
Each noise vector $b$ requires solving a system of linear equations $Ax = b$.
In this work, we introduce a new class of Krylov solvers for this task, called Twin methods.
Twin methods generate the Krylov polynomial once then reuse it on all other right-hand sides.
This reduces the number of basic linear algebra operations in the algorithm and therefore lowers the trace computation time.
We apply the Twin approach to BiCG and BiCGStab and test them on lattice QCD matrices of varying size and in a range of computing contexts.
We also present a more economical estimation of $\mathrm{Tr}(A^{-1})$ which implements a polynomial approximation of $A^{-1}$ and a singular value deflation.
In this scheme, the solvers are applied to only a few noise vectors, and the remainder are treated by the polynomial and the deflation.
In our tests, the polynomial approximation combined with the deflation yield a 17-fold speedup in the time required to compute the trace over standard Hutchinson's method.