Open hariseldon99 opened 9 months ago
I believe the problem is that FQE assumes that each FermionOperator
is in the spin-orbital basis. So indices 0, 1, 2, ... refer to (spatial orbital 0, alpha), (spatial orbital 0, beta), (spatial orbital 1, alpha), .... With this convention, the hopping term you wrote does not conserve spin and this causes an (unclear) error because the wfn_fqe
is supposed to have fixed spin. If you instead make the hopping term spin conserving like:
N_op += FermionOperator('0^ 2') + FermionOperator('2^ 0') # alpha part
N_op += FermionOperator('1^ 3') + FermionOperator('3^ 1') # beta part
I think it should work (the beta part may be unnecessary in this case)
If I wanna deal with spinless fermions, do I just ignore the beta part?
Yes, if you create a wavefunction with only alpha fermions (I think you do this in the original post) then it can be used as a representation of spinless fermions
Hi,
Noob here. Tried to time-evolve a TB Hamiltonian for spinless fermions, strting from a half-filled state
Gave the following traceback:
Update: Ballistic evolution works fine:
Yields
Uncomment the hopping term, and the AssertionError is raised again.