Skip to content

Conversation

@emstoudenmire
Copy link
Collaborator

This PR fixes the check inside the exp function so it is restricted to fermionic ITensors (and when the fermion system is on) only.

Choosing Linds and Rinds to all have the same arrows within each set may be advisable for most cases, but we decided to allow mixed-arrow exp for now.

This PR also wraps selected tests in generated modules. Previously the test_qnitensors.jl file would error if run standalone, due to a missing import.

@codecov
Copy link

codecov bot commented Aug 6, 2025

Codecov Report

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

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1664   +/-   ##
=======================================
  Coverage   81.02%   81.02%           
=======================================
  Files          59       59           
  Lines        4638     4638           
=======================================
  Hits         3758     3758           
  Misses        880      880           

☔ 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

Looks good, can you add a test of calling exp on a bosonic and/or non-QN ITensor with auto fermion enabled?

@emstoudenmire
Copy link
Collaborator Author

Good suggestion – just added it

@mtfishman mtfishman merged commit d500b08 into main Aug 6, 2025
15 checks passed
@mtfishman mtfishman deleted the exp_fix branch August 6, 2025 23:13
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.

3 participants