Expand description
Kernel-polynomial moments on the GPU, checked against the CPU.
The GPU computes the moments of every start vector; the CPU recomputes those of a sample
(one vector in fifty, at least one) in f64, and the GPU those of the same sample. If the two
differ by more than the tolerance (relative to μ_0), or the GPU fails, the CPU computes
everything. With a single start vector the check costs a full CPU run: for a local density of
states, batch the sites as start vectors.
Functions§
- moments
- Moments
μ_n = kernel_n · mean_v ⟨r_v| T_n(H̃) |r_v⟩of the rescaled Hamiltonianh(asblock_moments), on the device ofoptions.