From 1104d08a0ab7da2ae37e4c77969a317934853bf8 Mon Sep 17 00:00:00 2001 From: Skuwar1 <168614969+Skuwar1@users.noreply.github.com> Date: Sun, 27 Oct 2024 11:52:07 +1300 Subject: [PATCH] Update excitations.jl --- src/Hamiltonians/excitations.jl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Hamiltonians/excitations.jl b/src/Hamiltonians/excitations.jl index 613a4136b..b6535c10c 100644 --- a/src/Hamiltonians/excitations.jl +++ b/src/Hamiltonians/excitations.jl @@ -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)