SyTen

◆ add() [3/3]

void syten::T3N::Lattice::add ( std::string const &  id,
std::string const &  desc,
Tensor< 4 > const &  op,
bool const  overwrite = false,
bool const  periodic = true 
)

Add a single-site operator.

Parameters
idkey used in siteOperators
descfree-form string describing the operator
opsingle-site T3N component
statsstatistics of the operator, whether to replace parts of the base operator by elements of P
overwriteset to true if you want to overwrite an existing operator

References globalOperators, syten::RepRegister::id(), std::make_pair(), numTypes(), siteOperators, SYTEN_ASSERT, and SYTEN_ASSERT_MSG.

+ Here is the call graph for this function: