SyTen

◆ coarse_grain() [2/2]

Operator syten::MPS::coarse_grain ( Operator const &  op,
std::ostream out,
bool  collapse 
)

Coarse-grains the operator op, returning a new operator of half the size.

Prints a . into out on completion of every site. If collapse is true, all states with the same quantum numbers are collapsed into a single state.

References syten::MPS::Operator::dIdx, syten::MPS::Operator::dInt, std::flush(), syten::genCombinator(), syten::genFuse(), syten::genSplit(), syten::MPS::Operator::lIdx, syten::MPS::Operator::lInt, syten::MPS::Operator::rIdx, syten::MPS::Operator::rInt, SYTEN_ASSERT, syten::MPS::Operator::uIdx, and syten::MPS::Operator::uInt.

Referenced by coarse_grain(), and syten::Pyten::init_mp_mg().

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