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

1D Hamiltonian, translationally invariant and constant. More...

Inheritance diagram for mps::TIHamiltonian:
Collaboration diagram for mps::TIHamiltonian:

Public Member Functions

virtual const Hamiltonianduplicate () 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...
 

Detailed Description

1D Hamiltonian, translationally invariant and constant.

Definition at line 69 of file hamiltonian.h.

Constructor & Destructor Documentation

mps::TIHamiltonian::TIHamiltonian ( index  N,
const CTensor &  H12,
const CTensor &  H1,
bool  periodic = 0 
)

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.

Definition at line 32 of file hamiltonian_ti.cc.

Member Function Documentation

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

Create a copy of this object.

Implements mps::Hamiltonian.

Definition at line 54 of file hamiltonian_ti.cc.

const CTensor mps::TIHamiltonian::local_term ( index  k,
double  t 
) const
virtual

Local term of the Hamiltonian on site 'k'.

Implements mps::Hamiltonian.

Definition at line 102 of file hamiltonian_ti.cc.