Skip to content

Commit 9422cd5

Browse files
kshyattJutho
andauthored
Update indexmanipulations.jl (#379)
* Update indexmanipulations.jl Remove unneeded unit op (I think?) * Update ext/TensorKitMooncakeExt/indexmanipulations.jl Co-authored-by: Jutho <Jutho@users.noreply.github.com> --------- Co-authored-by: Jutho <Jutho@users.noreply.github.com>
1 parent 05772bf commit 9422cd5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/TensorKitMooncakeExt/indexmanipulations.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,9 @@ for insertunit in (:insertleftunit, :insertrightunit)
281281
# sharing address spaces
282282
if tsrc isa TensorMap && !get(kwargs, :copy, false)
283283
tsrc_cache = copy(tsrc)
284-
tdst = $insertunit(tsrc, ival; kwargs...)
285284
tdst_Δtdst = CoDual(
286285
$insertunit(tsrc, ival; kwargs...),
287-
$insertunit(Mooncake.tangent(tsrc_Δtsrc), ival; kwargs...)
286+
$insertunit(Δtsrc, ival; kwargs...)
288287
)
289288
else
290289
tsrc_cache = nothing

0 commit comments

Comments
 (0)