SyTen

◆ coarse_grain() [1/2]

Lattice syten::MPS::coarse_grain ( Lattice const &  lat,
std::ostream out,
bool  collapse 
)

Coarse-grains a lattice, returning a new lattice.

Prints operator names and progress into out. If collapse is true, states with the same quantum numbers are locally added together.

References syten::MPS::Lattice::add(), coarse_grain(), syten::genSplit(), syten::Tensor< rank >::getBasis(), std::make_pair(), std::vector< T >::push_back(), std::vector< T >::resize(), and std::to_string().

+ Here is the call graph for this function: