100100 mcsolveProblem(H::QuantumObject{<:AbstractArray{T1},OperatorQuantumObject},
101101 ψ0::QuantumObject{<:AbstractArray{T2},KetQuantumObject},
102102 tlist::AbstractVector,
103- c_ops::Union{Nothing,AbstractVector}=nothing;
103+ c_ops::Union{Nothing,AbstractVector,Tuple }=nothing;
104104 alg::OrdinaryDiffEqAlgorithm=Tsit5(),
105- e_ops::Union{Nothing,AbstractVector}=nothing,
105+ e_ops::Union{Nothing,AbstractVector,Tuple }=nothing,
106106 H_t::Union{Nothing,Function,TimeDependentOperatorSum}=nothing,
107107 params::NamedTuple=NamedTuple(),
108108 jump_callback::TJC=ContinuousLindbladJumpCallback(),
@@ -147,9 +147,9 @@ If the environmental measurements register a quantum jump, the wave function und
147147- `H::QuantumObject`: Hamiltonian of the system ``\h at{H}``.
148148- `ψ0::QuantumObject`: Initial state of the system ``|\p si(0)\r angle``.
149149- `tlist::AbstractVector`: List of times at which to save the state of the system.
150- - `c_ops::Union{Nothing,AbstractVector}`: List of collapse operators ``\{\h at{C}_n\} _n``.
150+ - `c_ops::Union{Nothing,AbstractVector,Tuple }`: List of collapse operators ``\{\h at{C}_n\} _n``.
151151- `alg::OrdinaryDiffEqAlgorithm`: Algorithm to use for the time evolution.
152- - `e_ops::Union{Nothing,AbstractVector}`: List of operators for which to calculate expectation values.
152+ - `e_ops::Union{Nothing,AbstractVector,Tuple }`: List of operators for which to calculate expectation values.
153153- `H_t::Union{Nothing,Function,TimeDependentOperatorSum}`: Time-dependent part of the Hamiltonian.
154154- `params::NamedTuple`: Dictionary of parameters to pass to the solver.
155155- `seeds::Union{Nothing, Vector{Int}}`: List of seeds for the random number generator. Length must be equal to the number of trajectories provided.
@@ -172,9 +172,9 @@ function mcsolveProblem(
172172 H:: QuantumObject{MT1,OperatorQuantumObject} ,
173173 ψ0:: QuantumObject{<:AbstractArray,KetQuantumObject} ,
174174 tlist:: AbstractVector ,
175- c_ops:: Union{Nothing,AbstractVector} = nothing ;
175+ c_ops:: Union{Nothing,AbstractVector,Tuple } = nothing ;
176176 alg:: OrdinaryDiffEqAlgorithm = Tsit5 (),
177- e_ops:: Union{Nothing,AbstractVector} = nothing ,
177+ e_ops:: Union{Nothing,AbstractVector,Tuple } = nothing ,
178178 H_t:: Union{Nothing,Function,TimeDependentOperatorSum} = nothing ,
179179 params:: NamedTuple = NamedTuple (),
180180 seeds:: Union{Nothing,Vector{Int}} = nothing ,
286286 mcsolveEnsembleProblem(H::QuantumObject{<:AbstractArray{T1},OperatorQuantumObject},
287287 ψ0::QuantumObject{<:AbstractArray{T2},KetQuantumObject},
288288 tlist::AbstractVector,
289- c_ops::Union{Nothing,AbstractVector}=nothing;
289+ c_ops::Union{Nothing,AbstractVector,Tuple }=nothing;
290290 alg::OrdinaryDiffEqAlgorithm=Tsit5(),
291- e_ops::Union{Nothing,AbstractVector}=nothing,
291+ e_ops::Union{Nothing,AbstractVector,Tuple }=nothing,
292292 H_t::Union{Nothing,Function,TimeDependentOperatorSum}=nothing,
293293 params::NamedTuple=NamedTuple(),
294294 jump_callback::TJC=ContinuousLindbladJumpCallback(),
@@ -335,9 +335,9 @@ If the environmental measurements register a quantum jump, the wave function und
335335- `H::QuantumObject`: Hamiltonian of the system ``\h at{H}``.
336336- `ψ0::QuantumObject`: Initial state of the system ``|\p si(0)\r angle``.
337337- `tlist::AbstractVector`: List of times at which to save the state of the system.
338- - `c_ops::Union{Nothing,AbstractVector}`: List of collapse operators ``\{\h at{C}_n\} _n``.
338+ - `c_ops::Union{Nothing,AbstractVector,Tuple }`: List of collapse operators ``\{\h at{C}_n\} _n``.
339339- `alg::OrdinaryDiffEqAlgorithm`: Algorithm to use for the time evolution.
340- - `e_ops::Union{Nothing,AbstractVector}`: List of operators for which to calculate expectation values.
340+ - `e_ops::Union{Nothing,AbstractVector,Tuple }`: List of operators for which to calculate expectation values.
341341- `H_t::Union{Nothing,Function,TimeDependentOperatorSum}`: Time-dependent part of the Hamiltonian.
342342- `params::NamedTuple`: Dictionary of parameters to pass to the solver.
343343- `seeds::Union{Nothing, Vector{Int}}`: List of seeds for the random number generator. Length must be equal to the number of trajectories provided.
@@ -362,9 +362,9 @@ function mcsolveEnsembleProblem(
362362 H:: QuantumObject{MT1,OperatorQuantumObject} ,
363363 ψ0:: QuantumObject{<:AbstractArray{T2},KetQuantumObject} ,
364364 tlist:: AbstractVector ,
365- c_ops:: Union{Nothing,AbstractVector} = nothing ;
365+ c_ops:: Union{Nothing,AbstractVector,Tuple } = nothing ;
366366 alg:: OrdinaryDiffEqAlgorithm = Tsit5 (),
367- e_ops:: Union{Nothing,AbstractVector} = nothing ,
367+ e_ops:: Union{Nothing,AbstractVector,Tuple } = nothing ,
368368 H_t:: Union{Nothing,Function,TimeDependentOperatorSum} = nothing ,
369369 params:: NamedTuple = NamedTuple (),
370370 jump_callback:: TJC = ContinuousLindbladJumpCallback (),
396396 mcsolve(H::QuantumObject{<:AbstractArray{T1},OperatorQuantumObject},
397397 ψ0::QuantumObject{<:AbstractArray{T2},KetQuantumObject},
398398 tlist::AbstractVector,
399- c_ops::Union{Nothing,AbstractVector}=nothing;
399+ c_ops::Union{Nothing,AbstractVector,Tuple }=nothing;
400400 alg::OrdinaryDiffEqAlgorithm=Tsit5(),
401- e_ops::Union{Nothing,AbstractVector}=nothing,
401+ e_ops::Union{Nothing,AbstractVector,Tuple }=nothing,
402402 H_t::Union{Nothing,Function,TimeDependentOperatorSum}=nothing,
403403 params::NamedTuple=NamedTuple(),
404404 ntraj::Int=1,
@@ -445,9 +445,9 @@ If the environmental measurements register a quantum jump, the wave function und
445445- `H::QuantumObject`: Hamiltonian of the system ``\h at{H}``.
446446- `ψ0::QuantumObject`: Initial state of the system ``|\p si(0)\r angle``.
447447- `tlist::AbstractVector`: List of times at which to save the state of the system.
448- - `c_ops::Union{Nothing,AbstractVector}`: List of collapse operators ``\{\h at{C}_n\} _n``.
448+ - `c_ops::Union{Nothing,AbstractVector,Tuple }`: List of collapse operators ``\{\h at{C}_n\} _n``.
449449- `alg::OrdinaryDiffEqAlgorithm`: Algorithm to use for the time evolution.
450- - `e_ops::Union{Nothing,AbstractVector}`: List of operators for which to calculate expectation values.
450+ - `e_ops::Union{Nothing,AbstractVector,Tuple }`: List of operators for which to calculate expectation values.
451451- `H_t::Union{Nothing,Function,TimeDependentOperatorSum}`: Time-dependent part of the Hamiltonian.
452452- `params::NamedTuple`: Dictionary of parameters to pass to the solver.
453453- `seeds::Union{Nothing, Vector{Int}}`: List of seeds for the random number generator. Length must be equal to the number of trajectories provided.
@@ -475,9 +475,9 @@ function mcsolve(
475475 H:: QuantumObject{MT1,OperatorQuantumObject} ,
476476 ψ0:: QuantumObject{<:AbstractArray{T2},KetQuantumObject} ,
477477 tlist:: AbstractVector ,
478- c_ops:: Union{Nothing,AbstractVector} = nothing ;
478+ c_ops:: Union{Nothing,AbstractVector,Tuple } = nothing ;
479479 alg:: OrdinaryDiffEqAlgorithm = Tsit5 (),
480- e_ops:: Union{Nothing,AbstractVector} = nothing ,
480+ e_ops:: Union{Nothing,AbstractVector,Tuple } = nothing ,
481481 H_t:: Union{Nothing,Function,TimeDependentOperatorSum} = nothing ,
482482 params:: NamedTuple = NamedTuple (),
483483 seeds:: Union{Nothing,Vector{Int}} = nothing ,
0 commit comments