SyTen

◆ add() [2/2]

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.

Parameters
idkey used in siteOperators, e.g. s
descfree-form string describing the operator
opsingle-site BTTO 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, siteOperators, and SYTEN_ASSERT_DEBUG.