Skip to content

Commit 6389f6f

Browse files
Use DMRG2 SVD alg in finite approximate DMRG2 implementation (#308)
* use user-defined SVD alg in finite `approximate` DMRG2 implementation * typo * another typo
1 parent 72820fb commit 6389f6f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/algorithms/approximate/fvomps.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function approximate!(ψ::AbstractFiniteMPS, Oϕ, alg::DMRG2, envs = environment
88
ϵ = 0.0
99
for pos in [1:(length(ψ) - 1); (length(ψ) - 2):-1:1]
1010
AC2′ = AC2_projection(pos, ψ, Oϕ, envs)
11-
al, c, ar, = tsvd!(AC2′; trunc = alg.trscheme)
11+
al, c, ar, = tsvd!(AC2′; trunc = alg.trscheme, alg = alg.alg_svd)
1212

1313
AC2 = ψ.AC[pos] * _transpose_tail.AR[pos + 1])
1414
ϵ = max(ϵ, norm(al * c * ar - AC2) / norm(AC2))

0 commit comments

Comments
 (0)