Skip to content

Commit

Permalink
Added custom edge specification on vidal_itn_isometries
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeyT1994 committed Oct 23, 2023
1 parent 8efe301 commit 1cf1daf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gauging.jl
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,10 @@ function symmetric_to_vidal_gauge(
end

"""Function to measure the 'isometries' of a state in the Vidal Gauge"""
function vidal_itn_isometries::ITensorNetwork, bond_tensors::DataGraph)
function vidal_itn_isometries::ITensorNetwork, bond_tensors::DataGraph; edges = vcat(edges(ψ), reverse.(edges(ψ))))
isometries = DataGraph{vertextype(ψ),ITensor,ITensor}(directed_graph(underlying_graph(ψ)))

for e in vcat(edges(ψ), reverse.(edges(ψ)))
for e in edges
vsrc, vdst = src(e), dst(e)
ψv = copy(ψ[vsrc])
for vn in setdiff(neighbors(ψ, vsrc), [vdst])
Expand Down

0 comments on commit 1cf1daf

Please sign in to comment.