Skip to content

Commit eafeb59

Browse files
Introduce abstract SuperOperatorType
1 parent cd5cfc8 commit eafeb59

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/qobj/quantum_object_base.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This file defines the AbstractQuantumObject structure, all the type structures f
44
=#
55

66
export AbstractQuantumObject
7-
export QuantumObjectType, Bra, Ket, Operator, OperatorBra, OperatorKet, SuperOperator
7+
export QuantumObjectType, SuperOperatorType, Bra, Ket, Operator, OperatorBra, OperatorKet, SuperOperator
88

99
@doc raw"""
1010
abstract type AbstractQuantumObject{ObjType,DimType,DataType}
@@ -21,6 +21,8 @@ abstract type AbstractQuantumObject{ObjType,DimType,DataType} end
2121

2222
abstract type QuantumObjectType end
2323

24+
abstract type SuperOperatorType <: QuantumObjectType end
25+
2426
@doc raw"""
2527
Bra <: QuantumObjectType
2628
@@ -46,11 +48,11 @@ struct Operator <: QuantumObjectType end
4648
Base.show(io::IO, ::Operator) = print(io, "Operator")
4749

4850
@doc raw"""
49-
SuperOperator <: QuantumObjectType
51+
SuperOperator <: SuperOperatorType
5052
5153
Constructor representing a super-operator ``\hat{\mathcal{O}}`` acting on vectorized density operator matrices.
5254
"""
53-
struct SuperOperator <: QuantumObjectType end
55+
struct SuperOperator <: SuperOperatorType end
5456
Base.show(io::IO, ::SuperOperator) = print(io, "SuperOperator")
5557

5658
@doc raw"""

0 commit comments

Comments
 (0)