seemps.truncate.simplify#

seemps.truncate.simplify(state, strategy=<seemps.state.core.Strategy object>, direction=1, guess=None)[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.