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

Constructing a Tree Tensor Network Operator doesn't work on integer labelled vertices #51

Closed
JoeyT1994 opened this issue Jan 20, 2023 · 1 comment · Fixed by ITensor/DataGraphs.jl#15

Comments

@JoeyT1994
Copy link
Contributor

The following code:

using ITensors
using ITensorNetworks
using NamedGraphs
using Graphs

n =2
g = NamedGraph(path_graph(n))
s = siteinds("S=1/2", g)

ops = OpSum()
ops += 1.0, "Sz", 1, "Sz", 2

@show TTN(ops, s)

produces the error:

image

Which goes away if one names the vertices of g as tuples instead of Integers.

Is this unexpected? Or is TTN() only defined for IndexNetworks labelled with tuples?

@mtfishman
Copy link
Member

I noticed this issue as well, it should be fixed by ITensor/DataGraphs.jl#15.

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

Successfully merging a pull request may close this issue.

2 participants