Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

movesite messes the tags on the links of mps #104

Open
jerhoud opened this issue Dec 18, 2024 · 0 comments
Open

movesite messes the tags on the links of mps #104

jerhoud opened this issue Dec 18, 2024 · 0 comments

Comments

@jerhoud
Copy link

jerhoud commented Dec 18, 2024

after calling movesite on a mps all the bonds involved have tags "Link, n=1" instead of the usual "Link, l = bondnumber". This problem also shows when applying multiple sites gates with apply (since it then calls movesite)

using ITensorMPS

s = siteinds("Qubit",3)
st = random_mps(s)
stm = movesite(st, 1=>3)

println(stm)

MPS
[1] ((dim=2|id=834|"Qubit,Site,n=2"), (dim=2|id=590|"Link,n=1"))
[2] ((dim=2|id=590|"Link,n=1"), (dim=2|id=502|"Qubit,Site,n=3"), (dim=2|id=864|"Link,n=1"))
[3] ((dim=2|id=864|"Link,n=1"), (dim=2|id=138|"Qubit,Site,n=1"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant