From 15cb2c54415f7f2cd9e836a4517d5a211322cbf6 Mon Sep 17 00:00:00 2001 From: lkdvos Date: Mon, 3 Jun 2024 10:18:41 +0200 Subject: [PATCH] Fix deprecation warnings --- src/algorithms/changebonds/svdcut.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/algorithms/changebonds/svdcut.jl b/src/algorithms/changebonds/svdcut.jl index 22995add..95ddff4c 100644 --- a/src/algorithms/changebonds/svdcut.jl +++ b/src/algorithms/changebonds/svdcut.jl @@ -36,11 +36,11 @@ function changebonds!(mpo::FiniteMPO, alg::SvdCut) length(mpo) == 1 && return mpo # left to right - O_left = transpose(mpo.opp[1], (3, 1, 2), (4,)) + O_left = transpose(mpo.opp[1], ((3, 1, 2), (4,))) local O_right for i in 2:length(mpo) U, S, V, = tsvd!(O_left; trunc=alg.trscheme, alg=TensorKit.SVD()) - mpo.opp[i - 1] = transpose(U, (2, 3), (1, 4)) + mpo.opp[i - 1] = transpose(U, ((2, 3), (1, 4))) if i < length(mpo) @plansor O_left[-3 -1 -2; -4] := S[-1; 1] * V[1; 2] * mpo.opp[i][2 -2; -3 -4] else @@ -51,7 +51,7 @@ function changebonds!(mpo::FiniteMPO, alg::SvdCut) # right to left for i in (length(mpo) - 1):-1:1 U, S, V, = tsvd!(O_right; trunc=alg.trscheme, alg=TensorKit.SVD()) - mpo.opp[i + 1] = transpose(V, (1, 4), (2, 3)) + mpo.opp[i + 1] = transpose(V, ((1, 4), (2, 3))) if i > 1 @plansor O_right[-1; -3 -4 -2] := mpo.opp[i][-1 -2; -3 2] * U[2; 1] * S[1; -4] else