tightbinder.disorder.introduce_impurities#

introduce_impurities(system, energy=2, probability=0.5)[source]#

Routine to introduce impurities in the system. These impurities are implemented via a change in the on-site energies of the randomly selected atoms. This routine randomly chooses atoms according to the specified probability, meaning that each call will generate a different distribution. NB: This routine will override ALL on-site energies for the selected atoms, in a multi-orbital scenario. The hopping terms remain as they were before the introduction of impurities. NB2: Current implementation requires already having initialized the Hamiltonian to modify the corresponding matrix elements.

Parameters:
  • system (System) – Instance of System class or subclass derived from it

  • probability (float) – Parameter to specify probability of selecting an atom as an impurity. Defaults to 0.5.

  • energy (float) – Value of on-site energy of impurities. Defaults to 2.

Return type:

System

Returns:

Modified system.