Skip to content

Conversation

@lkdvos
Copy link
Member

@lkdvos lkdvos commented Jan 16, 2026

Ran into some issues in QuantumKitHub/TensorKit.jl#350, we are currently not testing pullbacks for Diagonal inputs, and apparently this is not working right now.
The issue is that we want to in-place add to $\Delta A$, but we need an additional projection on the diagonal subspace.

I'm guessing similar issues would appear for other restricted input vector spaces, for now I'd be okay with this simple fix only for diagonal.

I'll try add a similar thing for the other pullbacks as well. In principle we can probably improve the performance a bit more but I'm not sure if this is worth the effort.

@kshyatt
Copy link
Member

kshyatt commented Jan 16, 2026

FWIW there was some work done for this in the testsuite-ad PR

@kshyatt
Copy link
Member

kshyatt commented Jan 16, 2026

So you might be able to cannibalize part of that

@lkdvos
Copy link
Member Author

lkdvos commented Jan 16, 2026

Ahh, thanks! let me first revisit that then :)

@kshyatt
Copy link
Member

kshyatt commented Jan 16, 2026

Just grab whatever you need from there imo and I can rebase on top of this once it's merged

@codecov
Copy link

codecov bot commented Jan 16, 2026

Codecov Report

❌ Patch coverage is 0% with 30 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/pullbacks/eig.jl 0.00% 10 Missing ⚠️
src/pullbacks/eigh.jl 0.00% 10 Missing ⚠️
src/pullbacks/svd.jl 0.00% 10 Missing ⚠️
Files with missing lines Coverage Δ
src/pullbacks/eig.jl 85.05% <0.00%> (-11.05%) ⬇️
src/pullbacks/eigh.jl 80.00% <0.00%> (-11.43%) ⬇️
src/pullbacks/svd.jl 88.33% <0.00%> (-8.04%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lkdvos lkdvos merged commit 0d78d08 into main Jan 20, 2026
14 of 16 checks passed
@lkdvos lkdvos deleted the ld-diagpullback branch January 20, 2026 18:29
@lkdvos lkdvos mentioned this pull request Jan 23, 2026
lkdvos referenced this pull request Jan 23, 2026
* bump v0.6.3

* update changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants