SyTen

◆ add() [1/3]

void syten::MPS::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(), length, std::make_pair(), and SYTEN_ASSERT_DEBUG.

Referenced by syten::MPS::coarse_grain(), and syten::MPS::QcLatticeGenerator::construct_su2u1().

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