Skip to content

Unpack and materialize decomposition cotangents consistently - #499

Merged
Yue-Zhengyuan merged 1 commit into
QuantumKitHub:mainfrom
Yue-Zhengyuan:pullback-unpack
Nov 20, 2026
Merged

Yue-Zhengyuan merged 1 commit into
QuantumKitHub:mainfrom
Yue-Zhengyuan:pullback-unpack

Conversation

@Yue-Zhengyuan

Copy link
Copy Markdown
Member

Follow up of #495. Instead of using ChainRulesCore.backing, it is more readable to unpack and materialize cotangents consistently in SVD, eigen, and QR/LQ pullbacks.

This also fixes eigen pullbacks receiving component thunks and ensures QR/LQ gauge-tolerance calculations use the materialized (instead of still thunked) cotangents.

Would appreciate help in checking if the tests make sense.

@Yue-Zhengyuan
Yue-Zhengyuan requested a review from lkdvos November 19, 2026 23:28

@lkdvos lkdvos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this is really something to test that easily, the whole zygote interaction with type stability tends to be a mess and we're on borrowed time anyways because of the lack of support for the new versions anyways

@Yue-Zhengyuan
Yue-Zhengyuan merged commit 3d6215b into QuantumKitHub:main Nov 20, 2026
31 of 32 checks passed
@Yue-Zhengyuan
Yue-Zhengyuan deleted the pullback-unpack branch November 20, 2026 02:34
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.

2 participants