Skip to main content

Crate caroli_kpm

Crate caroli_kpm 

Source
Expand description

Kernel polynomial method (Weiße, Wellein, Alvermann & Fehske, Rev. Mod. Phys. 78, 275 (2006)).

For a Hamiltonian rescaled to H̃ = (H − e0)/ΔE with spectrum inside (−1, 1), the moments μ_n = g_n ⟨r| T_n(H̃) |r⟩ (Jackson kernel g_n) give the spectral density at x ∈ (−1, 1) as ρ(x) = [μ_0 + 2 Σ_{n≥1} μ_n T_n(x)] / (π sqrt(1 − x²)). With random-phase vectors |r⟩ this estimates the density of states (stochastic trace); with a site orbital it gives the local density of states.

Re-exports§

pub use spectrum::Spectrum;

Modules§

accelerated
Kernel-polynomial moments on the GPU, checked against the CPU.
kubo
Kubo–Bastin conductivity by the kernel polynomial method (García, Covaci and Rappoport, Phys. Rev. Lett. 114, 116602 (2015)), as Kwant’s kpm.conductivity and KITE.
spectrum
Densities of states and conductivities of a Model by the kernel polynomial method.

Functions§

block_moments
Stochastic moments μ_n = kernel_n · mean_v ⟨r_v| T_n(H̃) |r_v⟩ for a block of start vectors. apply(x, y) sets y = H̃ x for the whole block stored interleaved (x[row·m + v], see interleave), e.g. SparseMatrix::apply_block.
chebyshev_series
μ_0 + 2 Σ_{n≥1} μ_n T_n(x) at every x.
deinterleave
Inverse of interleave for a block of m vectors.
density
Density at x from the series: Re[series(x)] / (π sqrt(1 − x²)) (x strictly inside (−1, 1)).
dot
⟨a|b⟩.
interleave
Interleaves vectors of equal length into one block: x[row·m + v] = vectors[v][row].
jackson
Jackson kernel g_n, n = 0..m.
moments
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}.
random_phases
Random-phase vector r_j = e^{2πiφ_j} (⟨r|r⟩ = n): ⟨r|A|r⟩ is an unbiased estimate of Tr A.