|
157 | 157 | function QuantumObjectEvolution( |
158 | 158 | op_func_list::Tuple, |
159 | 159 | α::Union{Nothing,Number} = nothing; |
160 | | - type::Union{Nothing,QuantumObjectType} = nothing |
| 160 | + type::Union{Nothing,QuantumObjectType} = nothing, |
161 | 161 | ) |
162 | 162 | op, data = _QobjEvo_generate_data(op_func_list, α) |
163 | 163 | dims = op.dims |
|
175 | 175 | function QuantumObjectEvolution( |
176 | 176 | op::QuantumObject, |
177 | 177 | α::Union{Nothing,Number} = nothing; |
178 | | - type::Union{Nothing,QuantumObjectType} = nothing |
| 178 | + type::Union{Nothing,QuantumObjectType} = nothing, |
179 | 179 | ) |
180 | 180 | if type isa Nothing |
181 | 181 | type = op.type |
|
186 | 186 | function QuantumObjectEvolution( |
187 | 187 | op::QuantumObjectEvolution, |
188 | 188 | α::Union{Nothing,Number} = nothing; |
189 | | - type::Union{Nothing,QuantumObjectType} = nothing |
| 189 | + type::Union{Nothing,QuantumObjectType} = nothing, |
190 | 190 | ) |
191 | 191 | if type isa Nothing |
192 | 192 | type = op.type |
@@ -371,15 +371,11 @@ function (A::QuantumObjectEvolution)( |
371 | 371 | check_dims(ψout, A) |
372 | 372 |
|
373 | 373 | 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.")) |
379 | 375 | elseif issuper(A) && isket(ψin) |
380 | 376 | throw( |
381 | 377 | 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.", |
383 | 379 | ), |
384 | 380 | ) |
385 | 381 | end |
|
0 commit comments