Skip to content

Commit 2ee3375

Browse files
committed
Bug Fix
1 parent 6c62d6e commit 2ee3375

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/abstractitensornetwork.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ end
642642
function tree_gauge(alg::Algorithm, ψ::AbstractITensorNetwork, cur_region::Vector, new_region::Vector; kwargs...)
643643
path = gauge_path(ψ, cur_region, new_region)
644644
if !isempty(path)
645-
ψ = typeof(ψ)(gauge_walk(alg, ψ, path; kwargs...))
645+
ψ = gauge_walk(alg, ψ, path; kwargs...)
646646
end
647647
return ψ
648648
end

src/treetensornetworks/abstracttreetensornetwork.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function set_ortho_region(tn::AbstractTTN, new_region)
3636
end
3737

3838
function gauge(alg::Algorithm, ttn::AbstractTTN, region::Vector; kwargs...)
39-
ttn = gauge(alg, ttn, ortho_region(ttn), region; kwargs...)
39+
ttn = tree_gauge(alg, ttn, collect(ortho_region(ttn)), region; kwargs...)
4040
return set_ortho_region(ttn, region)
4141
end
4242

0 commit comments

Comments
 (0)