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.
id | key used in siteOperators |
desc | free-form string describing the operator |
op | single-site T3N component |
stats | statistics of the operator, whether to replace parts of the base operator by elements of P |
overwrite | set 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.