Skip to content

Conversation

@Yue-Zhengyuan
Copy link
Member

Previously, f_min_f_min was defined to be the same as adjoint(f_plus_f_plus), i.e. it is $(f^\dagger_1 f^\dagger_2)^\dagger = f_2 f_1$. Now I change it to $f_1 f_2$ (the negative of the original), which is the convention we use for other 2-body operators.

@codecov
Copy link

codecov bot commented Aug 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/fermionoperators.jl 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sanderdemeyer
Copy link
Collaborator

Good catch! The only small question I have is what the reason is for changing the sign of f_min_f_min and not of f_plus_f_plus?

@Yue-Zhengyuan
Copy link
Member Author

Well, because f_plus_f_plus is already $f^\dagger_1 f^\dagger_2$ instead of $f^\dagger_2 f^\dagger_1$, so no need to change it. And we define $|1, 1\rangle = f^\dagger_1 f^\dagger_2 |0,0\rangle$, so $f_1 f_2 |1,1\rangle = -|0,0\rangle$.

@sanderdemeyer
Copy link
Collaborator

Maybe we should put this convention in the docs, like we did with Hubbard and tJ. Something similar to those cases, e.g. saying that the basis states are

    |0⟩ (vacuum), |1= (c)†|0⟩,

could be useful. Since this is a bit trivial, I'll let you decide, since it is not strictly necessary to add this for me.

@Yue-Zhengyuan
Copy link
Member Author

For t-J and Hubbard we had those explanations because each fermion operator carries a label, and we have to specify which label is which state. And for Hubbard, one site can have two fermions and we need to specify whether (up, down) or (down, up) is used. For spinless fermion there's no such ambiguity for 1-site basis states. The problem we encounter here is about "many-site" states. So I think we don't need to add this line in the docs.

@Yue-Zhengyuan Yue-Zhengyuan merged commit b6040c3 into main Aug 10, 2025
9 checks passed
@Yue-Zhengyuan Yue-Zhengyuan deleted the zy-fminfmin branch August 10, 2025 12:08
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