seemps.truncate.simplify_mpo.simplify_mpo#
- seemps.truncate.simplify_mpo.simplify_mpo(operator, strategy=<seemps.state.core.Strategy object>, direction=1, guess=None, mpo_strategy=<seemps.state.core.Strategy object>)[source]#
Simplify an MPO state transforming it into another one with a smaller bond dimension, sweeping until convergence is achieved.
- Parameters:
- operator
Union
[MPO
,MPOList
,MPOSum
] MPO to simplify. If given as MPOList or MPOSum, it is joined to MPO before the simplification.
- strategy
Strategy
, default=SIMPLIFICATION_STRATEGY Truncation strategy to use in the simplification routine.
- direction
int
, default=1 Initial direction for the sweeping algorithm.
- guess
MPS
,optional
Guess for the new state, to ease the optimization.
- mpo_strategy
Strategy
, default=DEFAULT_STRATEGY Strategy of the resulting MPO.
- operator
- Returns:
MPO
Approximation O to the operator.