Closed VolodyaCO closed 11 months ago
Hi @VolodyaCO, the problem I think is just that you are creating the new MPS with different ordering of the indices - you will see if you put it a bond_dim != phys_dim
then the indices are not aligned.
You can see from the constructor of MatrixProductState
that it is created with ordering ='lrp'
, i.e. left right physical rather than left physical right, your example works if you label your new tensors the same way.
However, in general I would say that the ethos of quimb is that one shouldn't write things depending on a specific order, instead using the labelled indices and tags! E.g.
Though of course no problem if you are just learning how things are structured in quimb
.
What happened?
I am trying to compute the norm of an MPS that has an identity node in-between each physical node. When I try to compare the norm of this modified MPS versus its original version, the norms differ.
What did you expect to happen?
Since both MPSs have the same tensors apart from some interleaving identity tensors, I'd expect the norm to be the same.
Minimal Complete Verifiable Example
Relevant log output
No response
Anything else we need to know?
No response
Environment
Version: 1.5.0