Skip to content

Pullbacks for Diagonal inputs#156

Merged
lkdvos merged 3 commits into
mainfrom
ld-diagpullback
Jan 20, 2026
Merged

Pullbacks for Diagonal inputs#156
lkdvos merged 3 commits into
mainfrom
ld-diagpullback

Conversation

@lkdvos

@lkdvos lkdvos commented Jan 16, 2026

Copy link
Copy Markdown
Member

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

kshyatt commented Jan 16, 2026

Copy link
Copy Markdown
Member

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

@kshyatt

kshyatt commented Jan 16, 2026

Copy link
Copy Markdown
Member

So you might be able to cannibalize part of that

@lkdvos

lkdvos commented Jan 16, 2026

Copy link
Copy Markdown
Member Author

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

@kshyatt

kshyatt commented Jan 16, 2026

Copy link
Copy Markdown
Member

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

@codecov

codecov Bot commented Jan 16, 2026

Copy link
Copy Markdown

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.

Comment thread src/pullbacks/eig.jl
@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.

3 participants