I am trying to create the AKLT MPS form from given tensors for the AKLT state, check section "Matrix product state representation" of https://en.wikipedia.org/wiki/AKLT_model

The shape of tensor on each site is (3,2,2), where physical dimension is 3 and the bond dimension is 2. The following code shows the implementation:

Code: Select all

```
tensor = aklt_tensors()
nsites = len(model.lat.mps_sites())
Bs = [tensor.copy() for i in range(nsites)]
print(f"nsites = {nsites}")
final_mps = MPS.from_Bflat(model.lat.mps_sites(),Bs,bc=model.lat.bc_MPS)
```

Code: Select all

`aklt_tensors()`

However, I get the error:

Code: Select all

`shape of B incompatible with len of singular values`

Thanks in advance!