Skip to content

Commit 21ea62a

Browse files
committed
remove unused code
1 parent 7006988 commit 21ea62a

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/algorithms/derivatives.jl

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -105,25 +105,6 @@ function ∂AC2(x::Vector, opp1, opp2, leftenv, rightenv)
105105
return circshift(map(∂AC2, x, opp1, opp2, leftenv, rightenv), 1)
106106
end
107107

108-
"""
109-
Zero-site derivative (the C matrix to the right of pos)
110-
"""
111-
function ∂C(x::MPSBondTensor, leftenv::AbstractVector, rightenv::AbstractVector)::typeof(x)
112-
if Defaults.parallelize_derivatives
113-
@floop WorkStealingEx() for (le, re) in zip(leftenv, rightenv)
114-
t = ∂C(x, le, re)
115-
@reduce(y = inplace_add!(nothing, t))
116-
end
117-
else
118-
y = ∂C(x, leftenv[1], rightenv[1])
119-
for (le, re) in zip(leftenv[2:end], rightenv[2:end])
120-
VectorInterface.add!(y, ∂C(x, le, re))
121-
end
122-
end
123-
124-
return y
125-
end
126-
127108
function ∂C(x::MPSBondTensor, leftenv::MPSTensor, rightenv::MPSTensor)
128109
@plansor y[-1; -2] := leftenv[-1 3; 1] * x[1; 2] * rightenv[2 3; -2]
129110
return y isa BlockTensorMap ? only(y) : y

0 commit comments

Comments
 (0)