Skip to content

Commit c1aa38c

Browse files
committed
fix dmrg2
1 parent 32299e7 commit c1aa38c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/algorithms/groundstate/dmrg.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ function find_groundstate!(::FiniteChainStyle, ψ, H, alg::DMRG2, envs = environ
154154
log = IterLog("DMRG2")
155155
timeroutput = TimerOutput("DMRG2")
156156
alg.verbosity > 3 || disable_timer!(timeroutput)
157+
prepare = alg.prepare
157158

158159
E = 0.0
159160

@@ -176,7 +177,7 @@ function find_groundstate!(::FiniteChainStyle, ψ, H, alg::DMRG2, envs = environ
176177
@timeit timeroutput "svd_trunc" begin
177178
al, c, ar = svd_trunc!(newA2center; trunc = trscheme, alg = alg.alg_svd)
178179
al, c = changebonds_left(al, c, expscheme; ac2 = ac2)
179-
normalize!(c)
180+
normalize!(c)
180181
v = @plansor backend=backend allocator=allocator ac2[1 2; 3 4] * conj(al[1 2; 5]) * conj(c[5; 6]) * conj(ar[6; 3 4])
181182
ϵs[pos] = max(ϵs[pos], abs(1 - abs(v)))
182183
end

0 commit comments

Comments
 (0)