Skip to content

Commit 28fe4a9

Browse files
CompatHelper: bump compat for LinearSolve to 3, (keep existing compat) (#387)
1 parent aaaf0d3 commit 28fe4a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Graphs = "1.7"
5151
IncompleteLU = "0.2"
5252
KernelAbstractions = "0.9.2"
5353
LinearAlgebra = "1"
54-
LinearSolve = "2"
54+
LinearSolve = "2, 3"
5555
OrdinaryDiffEqCore = "1"
5656
OrdinaryDiffEqTsit5 = "1"
5757
Pkg = "1"

src/qobj/arithmetic_and_attributes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ LinearAlgebra.exp(
443443
) where {ObjType<:Union{OperatorQuantumObject,SuperOperatorQuantumObject},DimsType} =
444444
QuantumObject(_spexp(A.data), A.type, A.dimensions)
445445

446-
function _spexp(A::SparseMatrixCSC{T,M}; threshold = 1e-14, nonzero_tol = 1e-20) where {T,M}
446+
function _spexp(A::SparseMatrixCSC{T,M}; threshold = 1e-14, nonzero_tol = 1e-20) where {T<:Number,M<:Int}
447447
m = checksquare(A) # Throws exception if not square
448448

449449
mat_norm = norm(A, Inf)

0 commit comments

Comments
 (0)