Skip to content

Drop eager permuteddims overloads now that broadcasting lowers through bipermutedimsopadd!#177

Merged
mtfishman merged 2 commits into
mainfrom
mf/drop-sector-permuteddims
Jun 17, 2026
Merged

Drop eager permuteddims overloads now that broadcasting lowers through bipermutedimsopadd!#177
mtfishman merged 2 commits into
mainfrom
mf/drop-sector-permuteddims

Conversation

@mtfishman

@mtfishman mtfishman commented Jun 17, 2026

Copy link
Copy Markdown
Member

Summary

Removes the eager FunctionImplementations.permuteddims overloads on AbstractGradedArray, AbstractSectorArray, and AbstractSectorDelta. These existed only to align graded operands during NamedDimsArrays broadcasting by materializing a permuted copy. NamedDimsArrays now aligns lazily and lowers linear broadcasts through bipermutedimsopadd! (ITensor/TensorAlgebra.jl#178, ITensor/NamedDimsArrays.jl#232), so a permuted graded operand reaches the block-wise bipermutedimsopadd! without the eager copy.

Bumps the TensorAlgebra and NamedDimsArrays compat floors to the versions that introduce that path.

@codecov

codecov Bot commented Jun 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.37%. Comparing base (d151772) to head (157e8d1).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #177      +/-   ##
==========================================
+ Coverage   83.28%   83.37%   +0.08%     
==========================================
  Files          22       22              
  Lines        1777     1774       -3     
==========================================
- Hits         1480     1479       -1     
+ Misses        297      295       -2     
Flag Coverage Δ
docs 0.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

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

…h bipermutedimsopadd!

Removes the eager FunctionImplementations.permuteddims overloads on
AbstractGradedArray, AbstractSectorArray, and AbstractSectorDelta. These
existed only to align graded operands during NamedDimsArrays broadcasting
by materializing a permuted copy. NamedDimsArrays now aligns lazily and
lowers linear broadcasts through bipermutedimsopadd!, so a permuted graded
operand reaches the block-wise bipermutedimsopadd! without the eager copy.

Bumps the TensorAlgebra and NamedDimsArrays compat floors to the versions
that introduce that path.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@mtfishman
mtfishman force-pushed the mf/drop-sector-permuteddims branch from 3d2a009 to 23f44ff Compare June 17, 2026 22:41
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@mtfishman mtfishman changed the title [WIP] Drop eager permuteddims overloads now that broadcasting lowers through bipermutedimsopadd! Drop eager permuteddims overloads now that broadcasting lowers through bipermutedimsopadd! Jun 17, 2026
@mtfishman
mtfishman marked this pull request as ready for review June 17, 2026 23:32
@mtfishman
mtfishman enabled auto-merge (squash) June 17, 2026 23:32
@mtfishman
mtfishman merged commit 42c68ad into main Jun 17, 2026
25 of 28 checks passed
@mtfishman
mtfishman deleted the mf/drop-sector-permuteddims branch June 17, 2026 23:41
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.

1 participant