Skip to content

Commit

Permalink
Update excitations.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Skuwar1 authored Oct 26, 2024
1 parent cfdc83c commit 1104d08
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Hamiltonians/excitations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,8 @@ end
The diagonal part of nearest neighbour term [`momentum_transfer_excitation`](@ref) in [`ExtendedHubbardMom1D`](@ref).
Where `step` is the separation of single-particle momenta in the momentum grid.
"""
function extended_momentum_transfer_diagonal(map::FermiOccupiedModeMap,M::Int)
function extended_momentum_transfer_diagonal(map::FermiOccupiedModeMap,step::Float64)
onproduct = 0
step = (2*π)/M
println("ok")
for i in 1:length(map)
occ_i = map[i].occnum
onproduct += occ_i * (occ_i - 1)
Expand Down

0 comments on commit 1104d08

Please sign in to comment.