seemps.state.CanonicalMPS.bond_dimensions#
method
- CanonicalMPS.bond_dimensions()#
List of bond dimensions for the matrix product state.
Returns a list or vector of N+1 integers, for an MPS of size N. The integers 1 to N-1 are the bond dimensions between the respective pairs of tensors. The first and last index are 1, as it corresponds to a matrix product state with open boundary conditions.
Examples
>>> A = np.ones(1,2,3) >>> B = np.ones(3,2,1) >>> mps = MPS([A, B]) >>> mps.bond_dimensions() [1, 3, 1]