SRDef syten::MPS::State::truncate | ( | Truncation const & | trunc = Truncation() , |
State::DropNorm const | dropN = DropNorm::Yes |
||
) |
Truncates the state.
First drops all unmatched blocks, then left-normalises the state without truncation and finally right-normalises with the given truncation.
trunc | Truncation specification |
dropN | if true, drop the norm on both normalisation sweep |
References dropUnmatched(), leftnorm(), and rightnorm().
Referenced by syten::MPS::RandomState::generateCompleteState(), syten::MPS::RandomState::generateSampledState(), syten::Pyten::init_mps(), and truncateKeepNorm().