Skip to content

Commit 6c62d6e

Browse files
committed
Bug fix
1 parent 3bef286 commit 6c62d6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/abstractitensornetwork.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ end
640640
# Gauge a ITensorNetwork from cur_region towards new_region, treating
641641
# the network as a tree spanned by a spanning tree.
642642
function tree_gauge(alg::Algorithm, ψ::AbstractITensorNetwork, cur_region::Vector, new_region::Vector; kwargs...)
643-
path = gauge_path(cur_region, new_region)
643+
path = gauge_path(ψ, cur_region, new_region)
644644
if !isempty(path)
645645
ψ = typeof(ψ)(gauge_walk(alg, ψ, path; kwargs...))
646646
end

0 commit comments

Comments
 (0)