Skip to content

Commit 36c1988

Browse files
authored
fix code quality
1 parent cc58868 commit 36c1988

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)