BaseHamiltonian#
- class quant_met.mean_field.hamiltonians.BaseHamiltonian(parameters)#
Base class for Hamiltonians.
This abstract class provides the essential framework for defining various Hamiltonians used in solid-state physics. It includes methods for constructing the Hamiltonian based on a set of parameters, calculating properties such as energy bands, conducting derivatives, and diagonalizing the Hamiltonian to obtain eigenstates and eigenvalues. Subclasses should implement methods to provide specific Hamiltonian forms.
- Parameters:
- parameters
quant_met.parameters.hamiltonians.GenericParameters An object containing the necessary parameters to define the Hamiltonian, including lattice parameters, critical constants, and Hubbard interaction strengths.
- parameters
- Attributes:
- namestr
Name or identifier of the Hamiltonian.
- betafloat
Inverse temperature (related to thermal excitations).
- q
numpy.ndarray A two-dimensional array defining a momentum offset, typically in reciprocal space.
- lattice
quant_met.geometry.BaseLattice The lattice structure in which the Hamiltonian is defined.
- hubbard_int_orbital_basis
numpy.ndarray Interaction terms for Hubbard-type models represented in orbital basis.
- number_of_bandsint
The total number of bands calculated based on the orbital basis provided.
- delta_orbital_basis
numpy.ndarray An array initialized for the order parameter or pairing potentials.
Methods
Generate the Bogoliubov-de Gennes (BdG) Hamiltonian.
bdg_hamiltonian_derivative(k, direction)Calculate the derivative of the BdG Hamiltonian.
calculate_bandstructure(k[, overlaps])Calculate the band structure.
Calculate the current density.
Calculate the density of states (DOS).
Calculate the free energy for the Hamiltonian.
Calculate the spectral gap.
Diagonalizes the BdG Hamiltonian.
Diagonalizes the normal state Hamiltonian.
from_file(filename)Initialize a Hamiltonian from a previously saved HDF5 file.
gap_equation(k)Gap equation.
gap_equation_loop(bdg_energies, ...)Calculate the gap equation.
Return the specific parameters model for the subclass.
hamiltonian(k)Return the normal state Hamiltonian.
hamiltonian_derivative(k, direction)Calculate the spatial derivative of the Hamiltonian.
save(filename)Save the Hamiltonian configuration as an HDF5 file.
setup_lattice(parameters)Set up the lattice based on the provided parameters.