void syten::BTT::Lattice::add | ( | std::string const & | id, |
std::string const & | desc, | ||
Tensor< 5 > const & | op, | ||
Statistics const | stats = Statistics::Bosonic , |
||
bool const | overwrite = false |
||
) |
Add a single-site operator.
id | key used in siteOperators, e.g. s |
desc | free-form string describing the operator |
op | single-site BTTO 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, siteOperators, and SYTEN_ASSERT_DEBUG.