Skip to content

Commit ae2b543

Browse files
fixup
1 parent 44fb4da commit ae2b543

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/operators/epg.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ size/type as Ω s.t. later on the decay can be applied by element-wise multiplic
289289
- `Ω`: The configuration state matrix
290290
- `D`: The diffusion coefficient
291291
"""
292-
@inline function diffusion_decay_matrix::AbstractConfigurationStates{Complex{T}}, D::T) where {T}
292+
@inline function diffusion_decay_matrix::AbstractConfigurationStates, D::Real)
293293
expbD = similar(Ω)
294294
for state in 0:size(Ω, 2)-1
295295
bᵀD = T(((state + 0.5)^2 + 1.0 / 12.0) * D)
@@ -308,7 +308,7 @@ On GPU, when each thread only holds parts of the configuration state matrix, eac
308308
computes the corresponding columns of the diffusion decay matrix. This is the reason why
309309
the `ConfigurationStatesSubset` has a field `orders`.
310310
"""
311-
@inline function diffusion_decay_matrix::ConfigurationStatesSubset{Complex{T}}, D::T) where {T}
311+
@inline function diffusion_decay_matrix::ConfigurationStatesSubset, D::Real)
312312
expbD = similar(Ω)
313313
idx = 0
314314
for state in Ω.orders
@@ -331,7 +331,7 @@ the pre-computed diffusion decay matrix.
331331
- `Ω`: The configuration state matrix
332332
- `diffusion_decay_matrix`: The pre-calculated diffusion decay terms
333333
"""
334-
@inline function diffuse!::AbstractConfigurationStates{Complex{T}}, diffusion_decay_matrix::T) where {T}
334+
@inline function diffuse!::AbstractConfigurationStates, diffusion_decay_matrix::AbstractConfigurationStates)
335335
Ω .*= diffusion_decay_matrix
336336
return nothing
337337
end

0 commit comments

Comments
 (0)