seemps.analysis.factories.mps_tensor_sum#
- seemps.analysis.factories.mps_tensor_sum(mps_list, mps_order='A', strategy=None, simplify_steps=False)[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
str
, 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