hopping_generator

hopping_generator(name, energy)

Introduce a new hopping family (with a new hop_id) via a list of index pairs

This can be used to create new hoppings independent of the main Lattice definition. It’s especially useful for creating additional local hoppings, e.g. to model defects.

Parameters:
name : string

Friendly identifier for the new hopping family.

energy : Union[float, complex]

Base hopping energy value.

Notes

The function parameters must be a combination of any number of the following:

x, y, z : np.ndarray
Lattice site position.
system : System
Structural data of the model constructed so far. See System for details.

The function must return:

Tuple[np.ndarray, np.ndarray]
A pair of arrays of indices which form the new hoppings.