Skip to content

Fermions: apply signflips and efficient negation of blocks#719

Merged
manuschneider merged 9 commits intomasterfrom
fermionic_efficient_neg
Nov 29, 2025
Merged

Fermions: apply signflips and efficient negation of blocks#719
manuschneider merged 9 commits intomasterfrom
fermionic_efficient_neg

Conversation

@manuschneider
Copy link
Collaborator

The new methods apply() and apply_() exectute the signflips on the blocks.

Elsewhere, taking the negative of a block is replaced where possible by flipping the signflip metadata. This avoids overhead, since the sign is likely to be changed later anyways again.

…nflip in metadata instead for BlockFermionicUniTensor
…erations like dagger can also be stored as a tag in the future instead of applying it directly. apply(_) would apply all such operations
@codecov
Copy link

codecov bot commented Nov 27, 2025

Codecov Report

❌ Patch coverage is 49.01961% with 26 lines in your changes missing coverage. Please review.
✅ Project coverage is 32.35%. Comparing base (e839fa8) to head (e87c3a2).
⚠️ Report is 18 commits behind head on master.

Files with missing lines Patch % Lines
include/UniTensor.hpp 41.17% 10 Missing ⚠️
src/BlockFermionicUniTensor.cpp 69.23% 7 Missing and 1 partial ⚠️
src/UniTensor_base.cpp 0.00% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #719      +/-   ##
==========================================
+ Coverage   32.16%   32.35%   +0.18%     
==========================================
  Files         215      215              
  Lines       36316    36363      +47     
  Branches    14583    14597      +14     
==========================================
+ Hits        11680    11764      +84     
+ Misses      22700    22659      -41     
- Partials     1936     1940       +4     

☔ 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.

@manuschneider manuschneider merged commit c5e79bf into master Nov 29, 2025
7 checks passed
@manuschneider manuschneider deleted the fermionic_efficient_neg branch November 29, 2025 03:54
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