tightbinder.observables.compute_dos_momentum#

compute_dos_momentum(n, h, r)[source]#

Routine to compute up to the n-th momentum associated to a Chebyshev polynomial expansion of the density of states. Instead of computing the whole trace of h, we perform the stochastic evaluation of the trace over a small set of random vectors.

Parameters:
  • n (int) – Total number of momentum computed for DoS calculation.

  • h (ndarray) – Hamiltonian, usually on k=0 (intended for supercell calculations).

  • r (int) – Number of samples on stochastic ealuation of trace.

Return type:

ndarray

Returns:

Array with all momentum.