Skip to content

Commit

Permalink
Merge branch 'BP_Update_Order' of github.com:JoeyT1994/ITensorNetwork…
Browse files Browse the repository at this point in the history
…s.jl into BP_Update_Order
  • Loading branch information
JoeyT1994 committed Oct 23, 2023
2 parents 6f8d832 + ffa9d5c commit be8c13d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/gauging.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ function vidal_gauge(
bond_tensors::DataGraph;
eigen_message_tensor_cutoff=10 * eps(real(scalartype(ψ))),
regularization=10 * eps(real(scalartype(ψ))),
edges = NamedGraphs.edges(ψ),
svd_kwargs...,
)
ψ_vidal = copy(ψ)

for e in edges(ψ_vidal)
for e in edges
vsrc, vdst = src(e), dst(e)
ψvsrc, ψvdst = ψ_vidal[vsrc], ψ_vidal[vdst]

Expand Down Expand Up @@ -173,10 +174,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(NamedGraphs.edges(ψ), reverse.(NamedGraphs.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 be8c13d

Please sign in to comment.