constant_potential

constant_potential(magnitude: float) Callable

Apply a constant onsite energy to every lattice site

Parameters:
magnitudefloat

In units of eV.