Skip to content

Commit

Permalink
Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeyT1994 committed Jul 13, 2023
1 parent 6e9407e commit 0304202
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions src/indextags.jl
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
# Helper functions
vertex_tag(v) = replace("$v", "," => "×", "(" => "", ")" => "")

function vertex_tag(v::Tuple)
t = "$(vertex_tag(first(v)))"
for vn in Base.tail(v)
t *= "×$(vertex_tag(vn))"
end
return t
end

edge_tag(e::Pair) = edge_tag(NamedEdge(e))

function edge_tag(e)
Expand Down
2 changes: 1 addition & 1 deletion src/sitetype.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ function siteind(sitetype::String, v::Tuple; kwargs...)
end

# naming collision of ITensors.addtags and addtags keyword in siteind system
function siteind(d::Integer, v::Tuple; addtags="", kwargs...)
function siteind(d::Integer, v; addtags="", kwargs...)
return ITensors.addtags(
Index(d; tags="Site, $addtags", kwargs...), ITensorNetworks.vertex_tag(v)
)
Expand Down

0 comments on commit 0304202

Please sign in to comment.