|virtual const Hamiltonian *||duplicate () const|
|Create a copy of this object. More...|
|virtual const CTensor||interaction (index k, double t) const|
|Nearest neighbor interaction between sites 'k' and 'k+1'. |
|virtual bool||is_constant () const|
|Does the Hamiltonian depend on time? |
|virtual bool||is_periodic () const|
|Is there interaction between the first and the last sites? |
|virtual const CTensor||local_term (index k, double t) const|
|Local term of the Hamiltonian on site 'k'. More...|
|TIHamiltonian (index N, const CTensor &newH12, const CTensor &newH1, bool periodic=0)|
|Create a translationally invariant Hamiltonian. More...|
|Public Member Functions inherited from mps::Hamiltonian|
|virtual index||dimension (index k) const|
|Dimension of the Hilbert space on the k-th site. More...|
1D Hamiltonian, translationally invariant and constant.
|const CTensor &||H12,|
|const CTensor &||H1,|
Create a translationally invariant Hamiltonian.
'N' is the number of lattice sites, 'H12' is the nearest neighbor interaction between every two sites, 'H1' is the local term and 'periodic' determines whether there is also interaction between sites 1 and N.