Skip to content

Delete AbelianGradedArray, leaving FusionArray as the sole graded array - #245

Merged
mtfishman merged 4 commits into
mainfrom
mf/delete-abeliangradedarray
Aug 7, 2026
Merged

Delete AbelianGradedArray, leaving FusionArray as the sole graded array#245
mtfishman merged 4 commits into
mainfrom
mf/delete-abeliangradedarray

Conversation

@mtfishman

@mtfishman mtfishman commented Aug 6, 2026

Copy link
Copy Markdown
Member

Summary

Removes AbelianGradedArray so FusionArray is the single graded array for both abelian and non-abelian sectors, moving the shared construction and project methods into gradedconstructors.jl. Matrix operations are now defined only on the matrix storage types and error on the array types.

Removes `AbelianGradedArray` so `FusionArray` is the single graded array for both abelian and non-abelian sectors, re-homing the shared construction and `project` surface to `gradedconstructors.jl`.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
mtfishman and others added 2 commits August 6, 2026 17:57
Matrix operations (`*`, `adjoint`, `tr`, `one!`, factorizations, matrix functions) are defined only on the matrix storage types (`FusedGradedMatrix`, `FusedSectorMatrix`, `SectorIdentity`) and error on the array types, instead of scalar-indexing through generic fallbacks.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Removes the `tr(::AbstractGradedMatrix)` method so `tr` on a graded array errors through the matrix-op guard instead of the block path. `tr` stays defined on the matrix storage types.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@mtfishman mtfishman closed this Aug 6, 2026
@mtfishman mtfishman reopened this Aug 6, 2026
@mtfishman
mtfishman enabled auto-merge (squash) August 6, 2026 23:43
@codecov

codecov Bot commented Aug 6, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 65.51724% with 20 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.27%. Comparing base (f3a39e8) to head (05d261c).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/abstractsectorarray.jl 27.27% 8 Missing ⚠️
src/abstractgradedarray.jl 42.85% 4 Missing ⚠️
src/abstractsectordelta.jl 50.00% 4 Missing ⚠️
src/matrixalgebrakit.jl 66.66% 3 Missing ⚠️
src/gradedconstructors.jl 90.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #245      +/-   ##
==========================================
+ Coverage   81.36%   82.27%   +0.90%     
==========================================
  Files          30       30              
  Lines        2555     2279     -276     
==========================================
- Hits         2079     1875     -204     
+ Misses        476      404      -72     
Flag Coverage Δ
docs 0.00% <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.

`contraction_twist!`'s docstring linked `twist!` with `@ref`, but `twist!` has no docstring, so Documenter could not resolve the cross-reference and the docs build failed. Use a plain code span instead.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@mtfishman
mtfishman merged commit b45710d into main Aug 7, 2026
17 of 18 checks passed
@mtfishman
mtfishman deleted the mf/delete-abeliangradedarray branch August 7, 2026 00:24
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