seemps.operators.MPO.apply#
method
- MPO.apply(state, strategy=None, simplify=None)[source]#
Implement multiplication A @ state between a matrix-product operator A and a matrix-product state state.
- Parameters:
- state
MPS|MPSSum Transformed state.
- strategy
Strategy,optional Truncation strategy, defaults to DEFAULT_STRATEGY
- simplifybool,
optional Whether to simplify the state after the contraction. Defaults to strategy.get_simplify_flag()
- state
- Returns:
CanonicalMPSThe result of the contraction.