Skip to content

Commit 5c7445f

Browse files
authored
simplify definition of svdvals
1 parent 679e1b6 commit 5c7445f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/qobj/arithmetic_and_attributes.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -298,10 +298,7 @@ LinearAlgebra.tr(
298298
299299
Return the singular values of a [`QuantumObject`](@ref) in descending order
300300
"""
301-
LinearAlgebra.svdvals(A::QuantumObject{OpType,DimsType,<:AbstractVector}) where {OpType,DimsType} = svdvals(A.data)
302-
LinearAlgebra.svdvals(A::QuantumObject{OpType,DimsType,<:AbstractMatrix}) where {OpType,DimsType} = svdvals(A.data)
303-
LinearAlgebra.svdvals(A::QuantumObject{OpType,DimsType,<:AbstractSparseMatrix}) where {OpType,DimsType} =
304-
svdvals(sparse_to_dense(A.data))
301+
LinearAlgebra.svdvals(A::QuantumObject) = svdvals(sparse_to_dense(A.data))
305302

306303
@doc raw"""
307304
norm(A::QuantumObject, p::Real)

0 commit comments

Comments
 (0)