SyTen

◆ add() [3/3]

void syten::MPS::Lattice::add ( std::string const &  id,
std::string const &  desc,
Tensor< 4 > const &  leftI,
Tensor< 4 > const &  op,
Tensor< 4 > const &  rightI,
bool const  overwrite = false 
)

Add a single-site operator, valid only for uniform lattices.

Parameters
idkey used in siteOperators, e.g. ch or sz
descfree-form string describing the operator
leftIidentity tensor used to the left of the site on which the operator acts
opoperator tensor used on the site on which the operator acts
rightIidentity tensor used to the right of the site on which the operator acts
overwriteset to true if you want to overwrite an existing operator