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:
- Return type:
- Returns:
Modified system.