Skip to content

[WIP] Operand-driven diagonal algebra for the dense path - #224

Draft
mtfishman wants to merge 1 commit into
mainfrom
mf/diagonal-algebra
Draft

[WIP] Operand-driven diagonal algebra for the dense path#224
mtfishman wants to merge 1 commit into
mainfrom
mf/diagonal-algebra

Conversation

@mtfishman

@mtfishman mtfishman commented Aug 20, 2026

Copy link
Copy Markdown
Member

Summary

Make diagonal algebra operand-driven on the dense path: an operation keeps the Diagonal type when its result is genuinely diagonal and densifies otherwise. Companion to ITensor/GradedArrays.jl#264.

TODO

  • Verify against downstream consumers.
  • Confirm the version (0.20.1, or supersede 0.20.0).

Preserve the Diagonal type through the operations whose result is genuinely diagonal: factorizations return the spectrum bare, unmatricize keeps the (1,1) endomorphism split, and single-contracted-leg Diagonal times Diagonal stays Diagonal. Densify only where the result is not representable as a Diagonal.
@codecov

codecov Bot commented Aug 20, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.85714% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 76.12%. Comparing base (4360ee3) to head (d35f74d).

Files with missing lines Patch % Lines
src/diagonal.jl 92.30% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #224      +/-   ##
==========================================
- Coverage   80.05%   76.12%   -3.94%     
==========================================
  Files          28       27       -1     
  Lines        1038     1043       +5     
==========================================
- Hits          831      794      -37     
- Misses        207      249      +42     
Flag Coverage Δ
docs 21.49% <0.00%> (-0.40%) ⬇️

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.

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