Skip to content

Commit

Permalink
Update ExtendedHubbardMom1D.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Skuwar1 authored Oct 26, 2024
1 parent cbbb0ce commit cfdc83c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Hamiltonians/ExtendedHubbardMom1D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ end

@inline function diagonal_element(h::ExtendedHubbardMom1D{<:Any,M,A}, address::A) where {M,A<:SingleComponentFockAddress}
map = OccupiedModeMap(address)
return dot(h.kes, map) + (h.u/ 2M) * momentum_transfer_diagonal(map)
+ (h.v/ M) * extended_momentum_transfer_diagonal(map, 2π / M)
return (dot(h.kes, map) + (h.u/ 2M) * momentum_transfer_diagonal(map)
+ (h.v/ M) * extended_momentum_transfer_diagonal(map, 2π / M))
end

@inline function diagonal_element(h::ExtendedHubbardMom1D{<:Any,M,A}, address::A) where {M,A<:FermiFS}
Expand Down

0 comments on commit cfdc83c

Please sign in to comment.