LocalMPSTensor
- class mpsprep.mpsstatepreparation.LocalMPSTensor(tensor=None, left_bond_dim=None, right_bond_dim=None, physical_dim=None)[source]
Bases:
objectCores of the tensor network. These are the tensors that are multiplied together to form the Matrix Product State (MPS).
- __init__(tensor=None, left_bond_dim=None, right_bond_dim=None, physical_dim=None)[source]
Initialize the tensor.
- Parameters
- tensornp.ndarray
The tensor.
- left_bond_dimint
The left bond dimension.
- right_bond_dimint
The right bond dimension.
- physical_dimint
The physical dimension.
Methods
__init__([tensor, left_bond_dim, ...])Initialize the tensor.
Convert to a left matrix.
to_right_matrix([order])Convert to a right matrix.
Attributes
The dimension of the left bond.
The physical dimension of the tensor.
The dimension of the right bond.
- property left_bond_dim
The dimension of the left bond.
- Type
int
- property physical_dim
The physical dimension of the tensor.
- Type
int
- property right_bond_dim
The dimension of the right bond.
- Type
int