Skip to content

Fermion twist#703

Open
manuschneider wants to merge 21 commits intomasterfrom
fermion_twist
Open

Fermion twist#703
manuschneider wants to merge 21 commits intomasterfrom
fermion_twist

Conversation

@manuschneider
Copy link
Copy Markdown
Collaborator

-Added fermion twists, which corresponds to the P-gates in arXiv:2404.14611
-Cleaned up code and updated documentation
-Made all methods return a pointer to the class to allow for chaining (e.g. UniTensor.contiguous().fermion_twists(). ...)

@codecov
Copy link
Copy Markdown

codecov bot commented Nov 3, 2025

Codecov Report

❌ Patch coverage is 20.12780% with 250 lines in your changes missing coverage. Please review.
✅ Project coverage is 36.03%. Comparing base (fa015d4) to head (79ea299).
⚠️ Report is 44 commits behind head on master.

Files with missing lines Patch % Lines
include/backend/Scalar.hpp 0.00% 108 Missing ⚠️
src/BlockFermionicUniTensor.cpp 35.29% 28 Missing and 5 partials ⚠️
include/UniTensor.hpp 26.19% 28 Missing and 3 partials ⚠️
src/BlockUniTensor.cpp 26.47% 22 Missing and 3 partials ⚠️
src/backend/Storage_base.cpp 13.33% 13 Missing ⚠️
src/UniTensor_base.cpp 0.00% 12 Missing ⚠️
src/backend/StorageImplementation.cpp 0.00% 3 Missing and 2 partials ⚠️
src/utils/vec_range.cpp 0.00% 4 Missing and 1 partial ⚠️
include/tn_algo/MPS.hpp 0.00% 4 Missing ⚠️
src/stat/histogram.cpp 0.00% 3 Missing ⚠️
... and 8 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #703      +/-   ##
==========================================
+ Coverage   35.44%   36.03%   +0.59%     
==========================================
  Files         215      215              
  Lines       33071    33136      +65     
  Branches    13170    13185      +15     
==========================================
+ Hits        11723    11942     +219     
+ Misses      19424    19256     -168     
- Partials     1924     1938      +14     

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@hunghaoti
Copy link
Copy Markdown
Collaborator

Is it possible to add some simple unit test?

@manuschneider
Copy link
Copy Markdown
Collaborator Author

Is it possible to add some simple unit test?

done

@manuschneider manuschneider added the Pending check/approval Issue fixed, and need feedback label Feb 12, 2026
@ianmccul
Copy link
Copy Markdown
Collaborator

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ba15358496

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

1) Transpose sets is_diag correctly after changing rowrank
2) Error messages print unknown labels as strings instead of integers
@manuschneider
Copy link
Copy Markdown
Collaborator Author

All fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Pending check/approval Issue fixed, and need feedback

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants