You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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?
The text was updated successfully, but these errors were encountered:
The following code:
produces the error:
Which goes away if one names the vertices of
g
as tuples instead of Integers.Is this unexpected? Or is
TTN()
only defined forIndexNetworks
labelled with tuples?The text was updated successfully, but these errors were encountered: