SyTen

◆ parse() [1/2]

Operator syten::MPS::parse ( Lattice const &  lat,
std::string const &  desc,
bool  truncate = true 
)

Parse an operator description.

Parameters
latLattice on which the operators are defined
descdescription of the operator, e.g. s 1 @ s 2 @ ยท Hpbc +
truncateif true, truncates generated MPOs automatically

References std::stack< T >::emplace(), std::stringstream::fail(), syten::MPS::ParseOperator::getFunction(), syten::logGI(), syten::EnvVars::mpo_parse_notrunc, std::stack< T >::size(), std::to_string(), and std::stack< T >::top().

Referenced by syten::calc_expval(), parse(), and syten::MPS::SwappableTEBD::parse_terms_file().

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