Reduced density matrix of nonadjacent sites

Hi @adityab999

Yes. the original is posted here:

I also tried a lot for extending it to 3-site RDM. However:

  1. The final tensor only has the indices the indices of the sites on the very left and the very right, but not for the intermediate one.
  2. There are alwyas leftover links in the resulting tensor object.

Hope somebody will figure it out.

A