Skip to content

Conversation

@ogauthe
Copy link
Collaborator

@ogauthe ogauthe commented Sep 27, 2025

This PR defines LinearAlgebra.normalize and LinearAlgebra.normalize! for a FusionTensor. Also removes some filled code.

@codecov
Copy link

codecov bot commented Sep 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.05%. Comparing base (98c5fd9) to head (a493f75).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #79      +/-   ##
==========================================
+ Coverage   91.33%   93.05%   +1.71%     
==========================================
  Files          11       11              
  Lines         612      605       -7     
==========================================
+ Hits          559      563       +4     
+ Misses         53       42      -11     
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 Sentry.
📢 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.

@mtfishman
Copy link
Member

mtfishman commented Sep 29, 2025

Oh I see, I guess only 2-norm of FusionTensor is defined right now. I think p-norm shouldn't be too hard to define, right? I think that would be useful since we might want to truncate according to different norms, say if we are truncating a density matrix using an eigendecomposition and want to use a 1-norm. Then it would be helpful to be able to compute the truncation error using norm(ft - u * d * u', 1).

@mtfishman mtfishman merged commit c81d2e6 into ITensor:main Sep 29, 2025
13 checks passed
@ogauthe ogauthe deleted the normalize branch September 29, 2025 21:05
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