Skip to content

Commit 2e068bd

Browse files
Fix errors in CUDA tests (qutip#571)
1 parent c204b89 commit 2e068bd

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ QuantumToolboxMakieExt = "Makie"
4343

4444
[compat]
4545
ArrayInterface = "6, 7"
46-
CUDA = "5"
46+
CUDA = "<5.9"
4747
ChainRulesCore = "1"
4848
DiffEqBase = "6"
4949
DiffEqCallbacks = "4.2.1 - 4"
@@ -53,7 +53,7 @@ FFTW = "1.5"
5353
GPUArrays = "10, 11"
5454
Graphs = "1.7"
5555
IncompleteLU = "0.2"
56-
KernelAbstractions = "0.9.2"
56+
KernelAbstractions = "0.9"
5757
LaTeXStrings = "1.2"
5858
LinearAlgebra = "1"
5959
LinearSolve = "2, 3"

src/qobj/superoperators.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,4 @@ liouvillian(H::AbstractQuantumObject{Operator}, Id_cache::Diagonal = I(prod(H.di
179179

180180
liouvillian(H::AbstractQuantumObject{SuperOperator}, Id_cache::Diagonal) = H
181181

182-
function _sum_lindblad_dissipators(c_ops, Id_cache::Diagonal)
183-
return sum(op -> lindblad_dissipator(op, Id_cache), c_ops; init = zero(spre(first(c_ops), Id_cache)))
184-
end
182+
_sum_lindblad_dissipators(c_ops, Id_cache::Diagonal) = sum(op -> lindblad_dissipator(op, Id_cache), c_ops)

0 commit comments

Comments
 (0)