Skip to main content

Module spectrum

Module spectrum 

Source
Expand description

Densities of states and conductivities of a Model by the kernel polynomial method.

Spectrum builds the sparse Hamiltonian of a region, open or periodic, rescales it into (−1, 1) and computes Chebyshev moments: the density of states Tr δ(E − H), its projection on an on-site operator (spin, orbital, sublattice), local densities of states, and the Kubo–Bastin conductivity of a periodic sample.

use caroli_kpm::Spectrum;
use caroli_lattice::{Lattice, Region};
use caroli_model::Model;

// Square lattice, 64 × 64 torus: the band runs from −4 to 4.
let model = Model::new(Lattice::square(1.0, 1)).hopping(0, 0, [1, 0, 0], -1.0).hopping(0, 0, [0, 1, 0], -1.0);
let region = Region::cuboid(model.lattice(), [64, 64, 0]);
let spectrum = Spectrum::periodic(&model, &region, &[[64, 0, 0], [0, 64, 0]]).moments(128).vectors(4);
let rho = spectrum.dos(&[-5.0, 0.5]);
assert!(rho[0] == 0.0 && rho[1] > 0.0);

Structs§

Spectrum
The kernel polynomial method on the Hamiltonian of a Model on a Region.