Skip to content

Commit

Permalink
Add TODO for using planar rules in rrules [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed Jun 3, 2024
1 parent 73992c9 commit 39942c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/TensorKitChainRulesCoreExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ function ChainRulesCore.rrule(::typeof(⊗), A::AbstractTensorMap, B::AbstractTe
projectA = ProjectTo(A)
projectB = ProjectTo(B)
function otimes_pullback(ΔC_)
# TODO: this rule is probably better written in terms of inner products,
# using planarcontract and adjoint tensormaps would remove the twists.
ΔC = unthunk(ΔC_)
pΔC = ((codomainind(A)..., (domainind(A) .+ numout(B))...),
((codomainind(B) .+ numout(A))...,
Expand Down

0 comments on commit 39942c1

Please sign in to comment.