Skip to content

Commit 5565f28

Browse files
committed
Add copying version
1 parent e89a521 commit 5565f28

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/algorithms/changebonds/svdcut.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ function changebonds(ψ, H, alg::SvdCut, envs = environments(ψ, H))
106106
return changebonds(ψ, alg), envs
107107
end
108108

109+
changebonds(mpo::FiniteMPOHamiltonian, alg::SvdCut) = changebonds!(copy(mpo), alg)
109110
function changebonds!(H::FiniteMPOHamiltonian, alg::SvdCut)
110111
# orthogonality center to the left
111112
for i in length(H):-1:2

0 commit comments

Comments
 (0)