You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Noob here. Tried to time-evolve a TB Hamiltonian for spinless fermions, strting from a half-filled state
importfqefromopenfermionimportFermionOperator,hermitian_conjugatedN=2M=4half_full=fqe.get_wavefunction(N, N, M)
half_full.set_wfn(strategy='hartree-fock')
half_full.print_wfn()
#Periodic boundary conditionsforward_hop=FermionOperator(((M-1,1),(0,0)))
foriinrange(M-1):
forward_hop+=FermionOperator(((i,1),(i+1,0)))
tb_hamilt=forward_hop+hermitian_conjugated(forward_hop)
fqe_ham=tb_hamiltfqe_ham=tb_hamilt#Evolve ballistically in time for t=10.2display(fqe_ham)
psi_t=half_full.time_evolve(10.2, fqe_ham)
psi_t.print_wfn()
Uncomment the hopping term, and the AssertionError is raised again.
The text was updated successfully, but these errors were encountered:
hariseldon99
changed the title
Spinless fermionic tight binding: Time evolution yields assertion error
Spinless fermionic tight binding: Time evolution yields AssertionError
Feb 7, 2024
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)
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.
The text was updated successfully, but these errors were encountered: