seemps.hamiltonians.NNHamiltonian#
- class seemps.hamiltonians.NNHamiltonian(size)[source]#
Abstract class representing a Hamiltonian for a 1D system with nearest-neighbor interactions.
The Hamiltonian is assumed to have the structure
\[H = \sum_{i=0}^{N-2} h_{i,i+1}\]where each \(h_{i,i+1}\) is a matrix acting on two quantum subsystems. Descendents from this class must implement both the
dimension()
andinteraction_term()
methods.