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_listlist[MPS]

The list of MPS objects to sum.

mps_orderstr, default=’A’

The order in which to arrange the resulting MPS (‘A’ or ‘B’).

strategyStrategy, 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.

Returns:
resultMPS | CanonicalMPS

The resulting MPS from the tensor sum of the input list.