Skip to content

Commit 7a4cc92

Browse files
ytdHuangalbertomercurio
authored andcommitted
format files
1 parent 9fe590a commit 7a4cc92

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

src/qobj/quantum_object_evo.jl

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ end
157157
function QuantumObjectEvolution(
158158
op_func_list::Tuple,
159159
α::Union{Nothing,Number} = nothing;
160-
type::Union{Nothing,QuantumObjectType} = nothing
160+
type::Union{Nothing,QuantumObjectType} = nothing,
161161
)
162162
op, data = _QobjEvo_generate_data(op_func_list, α)
163163
dims = op.dims
@@ -175,7 +175,7 @@ end
175175
function QuantumObjectEvolution(
176176
op::QuantumObject,
177177
α::Union{Nothing,Number} = nothing;
178-
type::Union{Nothing,QuantumObjectType} = nothing
178+
type::Union{Nothing,QuantumObjectType} = nothing,
179179
)
180180
if type isa Nothing
181181
type = op.type
@@ -186,7 +186,7 @@ end
186186
function QuantumObjectEvolution(
187187
op::QuantumObjectEvolution,
188188
α::Union{Nothing,Number} = nothing;
189-
type::Union{Nothing,QuantumObjectType} = nothing
189+
type::Union{Nothing,QuantumObjectType} = nothing,
190190
)
191191
if type isa Nothing
192192
type = op.type
@@ -371,15 +371,11 @@ function (A::QuantumObjectEvolution)(
371371
check_dims(ψout, A)
372372

373373
if isoper(A) && isoperket(ψin)
374-
throw(
375-
ArgumentError(
376-
"The input state must be a KetQuantumObject if the QuantumObjectEvolution object is an Operator.",
377-
),
378-
)
374+
throw(ArgumentError("The input state must be a Ket if the QuantumObjectEvolution object is an Operator."))
379375
elseif issuper(A) && isket(ψin)
380376
throw(
381377
ArgumentError(
382-
"The input state must be an OperatorKetQuantumObject if the QuantumObjectEvolution object is a SuperOperator.",
378+
"The input state must be an OperatorKet if the QuantumObjectEvolution object is a SuperOperator.",
383379
),
384380
)
385381
end

src/qobj/synonyms.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Quantum Object: type=Operator dims=[10, 2] size=(20, 20) ishermitian=fal
103103
QobjEvo(
104104
op_func_list::Union{Tuple,AbstractQuantumObject},
105105
α::Union{Nothing,Number} = nothing;
106-
type::Union{Nothing,QuantumObjectType} = nothing
106+
type::Union{Nothing,QuantumObjectType} = nothing,
107107
) = QuantumObjectEvolution(op_func_list, α; type = type)
108108

109109
QobjEvo(data::AbstractSciMLOperator, type::QuantumObjectType, dims::Integer) =

0 commit comments

Comments
 (0)