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:
- L
int
The new size of the MPS. Must be strictly larger than self.size.
- sites
Iterable
[int
],optional
Sequence of integers describing the sites that occupied by the tensors in this state.
- dimensions
Union
[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.
- L
- Returns:
MPO
Extended MPO.