void syten::MPS::Lattice::add | ( | std::string const & | id, |
std::string const & | desc, | ||
Operator const & | op, | ||
bool const | overwrite = false |
||
) |
Add a global operator.
id | key used in globalOperators, e.g. H or H_S |
desc | free-form string describing the operator |
op | MPO operator |
overwrite | set to true if you want to overwrite an existing operator |
References globalOperators, syten::RepRegister::id(), length, std::make_pair(), and SYTEN_ASSERT_DEBUG.
Referenced by syten::MPS::coarse_grain(), and syten::MPS::QcLatticeGenerator::construct_su2u1().