seemps.state.mps_tensor_sum#
- seemps.state.mps_tensor_sum(mps_list: list[TypeAliasForwardRef('~seemps.state.MPS')], mps_order: Literal['A', 'B'] = 'A', strategy: TypeAliasForwardRef('~seemps.state.Strategy') | None = None, simplify_steps: bool = False) MPS[source]#
Returns the tensor sum of a list of MPS, with the sites arranged according to the specified MPS order.
- Parameters:
- mps_list
list[MPS] The list of MPS objects to sum.
- mps_order
MPSOrder, default=’A’ The order in which to arrange the resulting MPS (‘A’ or ‘B’).
- strategy
Strategy,optional The strategy to use when summing the MPS. If None, the tensor sum is not simplified.
- simplify_stepsbool, default=False
Whether to simplify the intermediate steps with strategy (if provided) or simplify at the end.
- mps_list
- Returns:
- result
MPS|CanonicalMPS The resulting MPS from the tensor sum of the input list.
- result