functions.models.BasicSquareHamiltonian
- BasicSquareHamiltonian(t, p, q, k, period)[source]
The basic square lattice Hofstadter Hamiltonian.
The Hofstadter Hamiltonian for the square lattice with nearest-neighbor hopping.
Note
We have hardcoded this Hamiltonian because it is commonly used and this function is faster than calling the generic Hamiltonian method.
- Parameters:
- Returns:
Hamiltonian – The Hofstadter Hamiltonian matrix of dimension \(q \times q\).
- Return type:
ndarray