seemps.state.TensorArray#

class seemps.state.TensorArray#

Bases: Sequence[ndarray[tuple[Any, …], dtype[_ScalarT]]]

TensorArray class.

This class provides the basis for all tensor networks. The class abstracts a one-dimensional array of tensors that is freshly copied whenever the object is cloned. Two TensorArray’s can share the same tensors and be destructively modified.

Parameters:
data: Iterable[NDArray]

Any sequence of tensors that can be stored in this object. They are not checked to have the right number of dimensions. This sequence is cloned to avoid nasty side effects when destructively modifying it.