mps-0.0.0
MatrixProductStatesinC++
 All Data Structures Namespaces Functions Variables Enumerations Enumerator Groups Pages
mps::Hamiltonian Class Referenceabstract

Base class for 1D lattice Hamiltonians. More...

Inheritance diagram for mps::Hamiltonian:

Public Member Functions

virtual index dimension (index k) const
 Dimension of the Hilbert space on the k-th site. More...
 
virtual const Hamiltonianduplicate () const =0
 Create a copy of this object. More...
 
virtual const CTensor interaction (index k, double t=0.0) const =0
 Nearest neighbor interaction between sites 'k' and 'k+1'.
 
virtual bool is_constant () const =0
 Does the Hamiltonian depend on time?
 
virtual bool is_periodic () const =0
 Is there interaction between the first and the last sites?
 
virtual const CTensor local_term (index k, double t=0.0) const =0
 Local term of the Hamiltonian on site 'k'. More...
 

Detailed Description

Base class for 1D lattice Hamiltonians.

Definition at line 33 of file hamiltonian.h.

Member Function Documentation

index mps::Hamiltonian::dimension ( index  k) const
virtual

Dimension of the Hilbert space on the k-th site.

Reimplemented in mps::ConstantHamiltonian.

Definition at line 30 of file hamiltonian.cc.

virtual const Hamiltonian* mps::Hamiltonian::duplicate ( ) const
pure virtual

Create a copy of this object.

Implemented in mps::ConstantHamiltonian, and mps::TIHamiltonian.

virtual const CTensor mps::Hamiltonian::local_term ( index  k,
double  t = 0.0 
) const
pure virtual

Local term of the Hamiltonian on site 'k'.

Implemented in mps::ConstantHamiltonian, and mps::TIHamiltonian.