Operator syten::MPS::parse | ( | Lattice const & | lat, |
std::string const & | desc, | ||
bool | truncate = true |
||
) |
Parse an operator description.
lat | Lattice on which the operators are defined |
desc | description of the operator, e.g. s 1 @ s 2 @ ยท Hpbc + |
truncate | if 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().