quant_met.mean_field.hamiltonians.BaseHamiltonian.
hamiltonian_derivative#
- abstract BaseHamiltonian.hamiltonian_derivative(k, direction)#
Calculate the spatial derivative of the Hamiltonian.
- Parameters:
- knumpy.ndarray
List of k points in reciprocal space.
- directionstr
Direction for the derivative, either ‘x’ or ‘y’.
- Returns:
- class:
numpy.ndarray The derivative of the Hamiltonian matrix in the specified direction.