seemps.operators.MPO.extend#

method

MPO.extend(L, sites=None, dimensions=2)[source]#

Enlarge an MPO so that it acts on a larger Hilbert space with ‘L’ sites.

Parameters:
Lint

The new size of the MPS. Must be strictly larger than self.size.

sitesIterable[int], optional

Sequence of integers describing the sites that occupied by the tensors in this state.

dimensionsUnion[int, list[int]], default = 2

Dimension of the added sites. It can be the same integer or a list of integers with the same length as sites.

Returns:
MPO

Extended MPO.