Skip to main content

moments

Function moments 

Source
pub fn moments(
    apply: impl Fn(&[c64], &mut [c64]),
    start: &[c64],
    kernel: &[f64],
) -> Vec<c64> ⓘ
Expand description

Moments μ_n = kernel_n ⟨start| T_n(H̃) |start⟩ for n = 0..kernel.len(), with apply the rescaled Hamiltonian (out = H̃ ψ). Chebyshev recursion T_{n+1} = 2 H̃ T_n − T_{n−1}.