SyTen

◆ add() [1/2]

void syten::BTT::Lattice::add ( std::string const &  id,
std::string const &  desc,
Operator const &  op,
bool const  overwrite = false 
)

Add a global operator.

Parameters
idkey used in globalOperators, e.g. H or H_S
descfree-form string describing the operator
opMPO operator
overwriteset to true if you want to overwrite an existing operator

References globalOperators, syten::RepRegister::id(), std::make_pair(), and SYTEN_ASSERT_DEBUG.

Referenced by buildIdentity().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: