@@ -11,7 +11,7 @@ export isunitary
1111Checks if the [`QuantumObject`](@ref) `A` is a [`BraQuantumObject`](@ref). Default case returns `false` for any other inputs.
1212"""
1313isbra (A:: QuantumObject ) = isbra (typeof (A))
14- isbra (:: Type{QuantumObject{BraQuantumObject,N}} ) where {N} = true
14+ isbra (:: Type{<: QuantumObject{BraQuantumObject,N}} ) where {N} = true
1515isbra (A) = false # default case
1616
1717@doc raw """
@@ -20,7 +20,7 @@ isbra(A) = false # default case
2020Checks if the [`QuantumObject`](@ref) `A` is a [`KetQuantumObject`](@ref). Default case returns `false` for any other inputs.
2121"""
2222isket (A:: QuantumObject ) = isket (typeof (A))
23- isket (:: Type{QuantumObject{KetQuantumObject,N}} ) where {N} = true
23+ isket (:: Type{<: QuantumObject{KetQuantumObject,N}} ) where {N} = true
2424isket (A) = false # default case
2525
2626@doc raw """
@@ -38,7 +38,7 @@ isoper(A) = false # default case
3838Checks if the [`QuantumObject`](@ref) `A` is a [`OperatorBraQuantumObject`](@ref). Default case returns `false` for any other inputs.
3939"""
4040isoperbra (A:: QuantumObject ) = isoperbra (typeof (A))
41- isoperbra (:: Type{QuantumObject{OperatorBraQuantumObject,N}} ) where {N} = true
41+ isoperbra (:: Type{<: QuantumObject{OperatorBraQuantumObject,N}} ) where {N} = true
4242isoperbra (A) = false # default case
4343
4444@doc raw """
@@ -47,7 +47,7 @@ isoperbra(A) = false # default case
4747Checks if the [`QuantumObject`](@ref) `A` is a [`OperatorKetQuantumObject`](@ref). Default case returns `false` for any other inputs.
4848"""
4949isoperket (A:: QuantumObject ) = isoperket (typeof (A))
50- isoperket (:: Type{QuantumObject{OperatorKetQuantumObject,N}} ) where {N} = true
50+ isoperket (:: Type{<: QuantumObject{OperatorKetQuantumObject,N}} ) where {N} = true
5151isoperket (A) = false # default case
5252
5353@doc raw """
0 commit comments