@@ -30,7 +30,7 @@ function changebonds(ψ::InfiniteMPS, H::InfiniteMPOHamiltonian, alg::OptimalExp
3030 # Use the nullspaces and SVD decomposition to determine the optimal expansion space
3131 VL = leftnull (ψ. AL[i])
3232 VR = rightnull! (_transpose_tail (ψ. AR[i + 1 ]))
33- intermediate = adjoint (VL) * AC2 * adjoint (VR)
33+ intermediate = normalize! ( adjoint (VL) * AC2 * adjoint (VR) )
3434 U, _, V, = tsvd! (intermediate; trunc= alg. trscheme, alg= alg. alg_svd)
3535
3636 AL′[i] = VL * U
@@ -56,7 +56,7 @@ function changebonds(ψ::MultilineMPS, H, alg::OptimalExpand, envs=environments(
5656 # Use the nullspaces and SVD decomposition to determine the optimal expansion space
5757 VL = leftnull (ψ. AL[i, j])
5858 VR = rightnull! (_transpose_tail (ψ. AR[i, j + 1 ]))
59- intermediate = adjoint (VL) * AC2 * adjoint (VR)
59+ intermediate = normalize! ( adjoint (VL) * AC2 * adjoint (VR) )
6060 U, _, V, = tsvd! (intermediate; trunc= alg. trscheme, alg= alg. alg_svd)
6161
6262 AL′[i, j] = VL * U
@@ -87,7 +87,7 @@ function changebonds!(ψ::AbstractFiniteMPS, H, alg::OptimalExpand, envs=environ
8787 NR = rightnull! (_transpose_tail (ψ. AR[i + 1 ]))
8888
8989 # Use this nullspaces and SVD decomposition to determine the optimal expansion space
90- intermediate = adjoint (NL) * AC2 * adjoint (NR)
90+ intermediate = normalize! ( adjoint (NL) * AC2 * adjoint (NR) )
9191 _, _, V, = tsvd! (intermediate; trunc= alg. trscheme, alg= alg. alg_svd)
9292
9393 ar_re = V * NR
0 commit comments