Skip to content

Commit

Permalink
Fix bug with merge_terms
Browse files Browse the repository at this point in the history
  • Loading branch information
corbett5 committed Jun 11, 2024
1 parent 03f1077 commit 060f98f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OpIDSum.jl
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ end
end
end

@timeit function merge_terms!(os::OpIDSum)::Nothing
@timeit function merge_terms!(os::OpIDSum{C})::Nothing where {C}
uniqueTermLocations = Dict{
SubArray{OpID,1,Vector{OpID},Tuple{UnitRange{Int64}},true},Int
}()
Expand All @@ -155,7 +155,7 @@ end
loc == i && continue

add_to_scalar!(os, loc, scalar)
set_scalar!(os, i, 0.0)
set_scalar!(os, i, zero(C))
end

return nothing
Expand Down

0 comments on commit 060f98f

Please sign in to comment.