functions.models

Functions for the model classes.

Functions

BasicHoneycombHamiltonian(t, p, q, k, period)

The basic honeycomb lattice Hofstadter Hamiltonian.

BasicKagomeHamiltonian(t, p, q, k, period)

The basic kagome lattice Hofstadter Hamiltonian.

BasicSquareHamiltonian(t, p, q, k, period)

The basic square lattice Hofstadter Hamiltonian.

BasicTriangularHamiltonian(t, p, q, k, period)

The basic triangular lattice Hofstadter Hamiltonian.

Hamiltonian(t, p, q, A_UC, vec_group_matrix, k)

The generalized Hofstadter Hamiltonian.

diag_func(t_val, p_val, q_val, A_UC_val, ...)

The diagonal function.

nearest_neighbor_finder(avec, abasisvec, ...)

Finds the relevant nearest neighbors for a given lattice.

nearest_neighbor_sorter(data_array)

Sorts the relevant nearest neighbors array.

peierls_factor(nphi, dx, y_cart, dy_cart, A_UC)

The Peierls factor.

reciprocal_vectors(avec)

Finds the reciprocal lattice vectors in 2D.