You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 607fe0c
Browse filesBrowse the repository at this point in the historyBrowse files
Enzyme cannot differentiate through the threaded `taskforeach` in the new trace kernel, so
`planartrace!` now has forward and reverse rules, as for the index manipulations. The pullback
`planartrace_pullback_ΔA!` reuses the cached `TraceTransformer`: it adds `ΔC` to the traced
diagonal of every source subblock with coefficients `conj(α * U[i, j]) * dim(cᵢ) / dim(cⱼ)`,
going through the subblocks such that adjoint tensors are supported, and falls back to
`trace_permute_pullback_ΔA!` for bosonic sectors. `treetracer` is marked inactive.
The Enzyme `planartrace!` test skipped every draw without a remaining leg or traced pair,
which in practice skipped (almost) all of them. It now always draws at least one of each,
retries draws whose multifusion spaces have mismatched units, and also compares the pullback
of adjoint tensors.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/src/Changelog.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,8 @@ When releasing a new version, move the "Unreleased" changes to a new version sec
22
22
23
23
### Added
24
24
25
+
- Enzyme rules for `planartrace!`, with a pullback that also supports adjoint tensors
26
+
25
27
### Changed
26
28
27
29
-`planartrace!` precomputes and caches a `TraceTransformer` with the subblock positions and recoupling coefficients, and executes it with a kernel shared by all sectortypes, analogous to the index manipulations; `planar_trace` is now also defined for `FusionTreeBlock`s, and GPU tensors use a dedicated kernel (internal)
0 commit comments