seemps.state.simplify#

seemps.state.simplify(state: TypeAliasForwardRef('~seemps.state.MPS') | TypeAliasForwardRef('~seemps.state.MPSSum'), strategy: Strategy = SIMPLIFICATION_STRATEGY, direction: int = +1, guess: TypeAliasForwardRef('~seemps.state.MPS') | None = None) CanonicalMPS[source]#

Simplify an MPS state transforming it into another one with a smaller bond dimension, sweeping until convergence is achieved.

Parameters:
stateMPS | MPSSum

State to approximate.

strategyStrategy

Truncation strategy. Defaults to SIMPLIFICATION_STRATEGY.

direction{ +1, -1 }

Initial direction for the sweeping algorithm.

guessMPS

A guess for the new state, to ease the optimization.

Returns:
CanonicalMPS

Approximation \(\xi\) to the state.