@@ -12,7 +12,8 @@ function approximate!(ψ::MultilineMPS, toapprox::Tuple{<:MultilineMPO,<:Multili
1212 # left to right sweep
1313 for col in 1 : size (ψ, 2 )
1414 for row in 1 : size (ψ, 1 )
15- ψ. AC[row + 1 , col] = ac_proj (row, col, ψ, toapprox, envs)
15+ ψ. AC[row + 1 , col] = AC_projection (CartesianIndex (row, col), ψ,
16+ toapprox, envs)
1617 normalize! (ψ. AC[row + 1 , col])
1718 ψ. AL[row + 1 , col], ψ. C[row + 1 , col] = leftorth! (ψ. AC[row + 1 , col])
1819 end
@@ -22,7 +23,8 @@ function approximate!(ψ::MultilineMPS, toapprox::Tuple{<:MultilineMPO,<:Multili
2223 # right to left sweep
2324 for col in size (ψ, 2 ): - 1 : 1
2425 for row in 1 : size (ψ, 1 )
25- ψ. AC[row + 1 , col] = ac_proj (row, col, ψ, toapprox, envs)
26+ ψ. AC[row + 1 , col] = AC_projection (CartesianIndex (row, col),
27+ ψ, toapprox, envs)
2628 normalize! (ψ. AC[row + 1 , col])
2729 ψ. C[row + 1 , col - 1 ], temp = rightorth! (_transpose_tail (ψ. AC[row + 1 ,
2830 col]))
@@ -71,7 +73,7 @@ function approximate!(ψ::MultilineMPS, toapprox::Tuple{<:MultilineMPO,<:Multili
7173 # sweep from left to right
7274 for col in 1 : size (ψ, 2 )
7375 for row in 1 : size (ψ, 1 )
74- AC2′ = ac2_proj ( row, col, ψ, toapprox, envs)
76+ AC2′ = AC2_projection ( CartesianIndex ( row, col) , ψ, toapprox, envs)
7577 al, c, ar, = tsvd! (AC2′; trunc= alg. trscheme, alg= alg. alg_svd)
7678 normalize! (c)
7779
@@ -88,9 +90,9 @@ function approximate!(ψ::MultilineMPS, toapprox::Tuple{<:MultilineMPO,<:Multili
8890 # sweep from right to left
8991 for col in (size (ψ, 2 ) - 1 ): - 1 : 0
9092 for row in 1 : size (ψ, 1 )
91- # TODO : also write this as ac2_proj ?
93+ # TODO : also write this as AC2_projection ?
9294 AC2 = ϕ. AL[row, col] * _transpose_tail (ϕ. AC[row, col + 1 ])
93- AC2′ = ∂∂AC2 ( row, col, ψ, O, envs) * AC2
95+ AC2′ = AC2_hamiltonian ( CartesianIndex ( row, col) , ψ, O, ϕ , envs) * AC2
9496 al, c, ar, = tsvd! (AC2′; trunc= alg. trscheme, alg= alg. alg_svd)
9597 normalize! (c)
9698
0 commit comments