@@ -181,11 +181,18 @@ function QuantumObjectEvolution(
181181end
182182
183183# this is a extra method if user accidentally specify `QuantumObjectEvolution( (op, func) )` or `QuantumObjectEvolution( ((op, func)) )`
184- QuantumObjectEvolution (op_func:: Tuple{QuantumObject,Function} , α:: Union{Nothing,Number} = nothing ; type:: Union{Nothing,QuantumObjectType} = nothing ) =
185- QuantumObjectEvolution ((op_func,), α; type = type)
184+ QuantumObjectEvolution (
185+ op_func:: Tuple{QuantumObject,Function} ,
186+ α:: Union{Nothing,Number} = nothing ;
187+ type:: Union{Nothing,QuantumObjectType} = nothing ,
188+ ) = QuantumObjectEvolution ((op_func,), α; type = type)
186189
187- QuantumObjectEvolution (op:: QuantumObject , f:: Function , α:: Union{Nothing,Number} = nothing ; type:: Union{Nothing,QuantumObjectType} = nothing ) =
188- QuantumObjectEvolution (((op, f),), α; type = type)
190+ QuantumObjectEvolution (
191+ op:: QuantumObject ,
192+ f:: Function ,
193+ α:: Union{Nothing,Number} = nothing ;
194+ type:: Union{Nothing,QuantumObjectType} = nothing ,
195+ ) = QuantumObjectEvolution (((op, f),), α; type = type)
189196
190197function QuantumObjectEvolution (
191198 op:: QuantumObject ,
@@ -281,7 +288,11 @@ Parse the `op_func_list` and generate the data for the `QuantumObjectEvolution`
281288 # check if each func accepts 2 arguments
282289 func_methods = tuple ($ (func_methods_expr... ))
283290 for f_method in func_methods
284- length (f_method. ms) == 0 && throw (ArgumentError (" The following function must accept two arguments: `$(f_method. mt. name) (p, t)` with t<:Real" ))
291+ length (f_method. ms) == 0 && throw (
292+ ArgumentError (
293+ " The following function must accept two arguments: `$(f_method. mt. name) (p, t)` with t<:Real" ,
294+ ),
295+ )
285296 end
286297
287298 data_expr_const = $ qobj_expr_const isa Integer ? $ qobj_expr_const : _make_SciMLOperator ($ qobj_expr_const, α)
0 commit comments