Skip to content

Commit cef9c0e

Browse files
AFeuerpfeillkdvos
authored andcommitted
format
1 parent 1bfac78 commit cef9c0e

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/algorithms/groundstate/idmrg.jl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,7 @@ function find_groundstate(mps, operator, alg::alg_type, envs = environments(mps,
102102
end
103103

104104
alg_gauge = updatetol(alg.alg_gauge, it.state.iter, it.state.ϵ)
105-
V = _firstspace(it.state.mps.AR[1])
106-
C₀ = isomorphism(storagetype(eltype(it.state.mps.AR)), V, V)
107-
ψ′ = gaugefix!(
108-
copy(it.state.mps), copy(it.state.mps.AR), C₀;
109-
tol = alg_gauge.tol, maxiter = alg_gauge.maxiter
110-
)
105+
ψ′ = InfiniteMPS(it.state.mps.AR; alg_gauge.tol, alg_gauge.maxiter)
111106
envs = recalculate!(it.state.envs, ψ′, it.state.operator, ψ′)
112107
return ψ′, envs, it.state.ϵ
113108
end

0 commit comments

Comments
 (0)