Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce commutator, fcreate, and fdestroy #156

Merged
merged 4 commits into from
Jun 4, 2024

Conversation

ytdHuang
Copy link
Member

@ytdHuang ytdHuang commented Jun 4, 2024

This PR introduces three functions that is list supported in Python qutip:

  • commutator(A, B; anti=false): calculate the commutator (or anti-commutator) for A and B
  • fcreate: the fermionic creation operator (using Jordan-Wigner transformation)
  • fdestroy: the fermionic annihilation operator (using Jordan-Wigner transformation)

Copy link

codecov bot commented Jun 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.47%. Comparing base (6f28a5d) to head (ed3a809).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #156      +/-   ##
==========================================
+ Coverage   92.42%   92.47%   +0.04%     
==========================================
  Files          26       26              
  Lines        1835     1847      +12     
==========================================
+ Hits         1696     1708      +12     
  Misses        139      139              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ytdHuang
Copy link
Member Author

ytdHuang commented Jun 4, 2024

All of the runtests fail at the stage of codecov...

@ytdHuang
Copy link
Member Author

ytdHuang commented Jun 4, 2024

Okay...
everything works again

@ytdHuang ytdHuang merged commit c6e8b56 into qutip:main Jun 4, 2024
14 checks passed
@ytdHuang ytdHuang deleted the dev/operator branch June 4, 2024 13:23
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