seemps.state.simplify_mps#
- seemps.state.simplify_mps(state: TypeAliasForwardRef('~seemps.state.MPS') | TypeAliasForwardRef('~seemps.state.MPSSum'), strategy: Strategy = SIMPLIFICATION_STRATEGY, direction: int = +1, guess: TypeAliasForwardRef('~seemps.state.MPS') | None = None) CanonicalMPS#
Simplify an MPS state transforming it into another one with a smaller bond dimension, sweeping until convergence is achieved.
- Parameters:
- state
MPS|MPSSum State to approximate.
- strategy
Strategy Truncation strategy. Defaults to SIMPLIFICATION_STRATEGY.
- direction{ +1, -1 }
Initial direction for the sweeping algorithm.
- guess
MPS A guess for the new state, to ease the optimization.
- state
- Returns:
CanonicalMPSApproximation \(\xi\) to the state.