@@ -104,9 +104,8 @@ function ∂AC(x::MPSTensor{S}, opp::Number, leftenv::MPSTensor{S},
104104end
105105
106106# mpo multiline
107- function ∂AC (x:: RecursiveVec , opp, leftenv, rightenv)
108- return RecursiveVec (circshift (map (t -> ∂AC (t... ), zip (x. vecs, opp, leftenv, rightenv)),
109- 1 ))
107+ function ∂AC (x:: Vector , opp, leftenv, rightenv)
108+ return circshift (map (t -> ∂AC (t... ), zip (x, opp, leftenv, rightenv)), 1 )
110109end
111110
112111function ∂AC (x:: MPSTensor , :: Nothing , leftenv, rightenv)
@@ -160,9 +159,8 @@ function ∂AC2(x::MPOTensor, ::Nothing, ::Nothing, leftenv, rightenv)
160159 @plansor y[- 1 - 2 ; - 3 - 4 ] := x[1 - 2 ; 2 - 4 ] * leftenv[- 1 ; 1 ] * rightenv[2 ; - 3 ]
161160end
162161
163- function ∂AC2 (x:: RecursiveVec , opp1, opp2, leftenv, rightenv)
164- return RecursiveVec (circshift (map (t -> ∂AC2 (t... ),
165- zip (x. vecs, opp1, opp2, leftenv, rightenv)), 1 ))
162+ function ∂AC2 (x:: Vector , opp1, opp2, leftenv, rightenv)
163+ return circshift (map (t -> ∂AC2 (t... ), zip (x, opp1, opp2, leftenv, rightenv)), 1 )
166164end
167165
168166"""
@@ -192,8 +190,8 @@ function ∂C(x::MPSBondTensor, leftenv::MPSBondTensor, rightenv::MPSBondTensor)
192190 @plansor toret[- 1 ; - 2 ] := leftenv[- 1 ; 1 ] * x[1 ; 2 ] * rightenv[2 ; - 2 ]
193191end
194192
195- function ∂C (x:: RecursiveVec , leftenv, rightenv)
196- return RecursiveVec ( circshift (map (t -> ∂C (t... ), zip (x. vecs , leftenv, rightenv)), 1 ) )
193+ function ∂C (x:: Vector , leftenv, rightenv)
194+ return circshift (map (t -> ∂C (t... ), zip (x, leftenv, rightenv)), 1 )
197195end
198196
199197# downproject for approximate
0 commit comments