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 20 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 ⚠️
Files with missing lines Coverage Δ
src/pullbacks/eig.jl 0.00% <0.00%> (-96.11%) ⬇️
src/pullbacks/eigh.jl 0.00% <0.00%> (-91.43%) ⬇️

... and 35 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

3 participants