100
100
mcsolveProblem(H::QuantumObject{<:AbstractArray{T1},OperatorQuantumObject},
101
101
ψ0::QuantumObject{<:AbstractArray{T2},KetQuantumObject},
102
102
tlist::AbstractVector,
103
- c_ops::Union{Nothing,AbstractVector}=nothing;
103
+ c_ops::Union{Nothing,AbstractVector,Tuple }=nothing;
104
104
alg::OrdinaryDiffEqAlgorithm=Tsit5(),
105
- e_ops::Union{Nothing,AbstractVector}=nothing,
105
+ e_ops::Union{Nothing,AbstractVector,Tuple }=nothing,
106
106
H_t::Union{Nothing,Function,TimeDependentOperatorSum}=nothing,
107
107
params::NamedTuple=NamedTuple(),
108
108
jump_callback::TJC=ContinuousLindbladJumpCallback(),
@@ -147,9 +147,9 @@ If the environmental measurements register a quantum jump, the wave function und
147
147
- `H::QuantumObject`: Hamiltonian of the system ``\h at{H}``.
148
148
- `ψ0::QuantumObject`: Initial state of the system ``|\p si(0)\r angle``.
149
149
- `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``.
151
151
- `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.
153
153
- `H_t::Union{Nothing,Function,TimeDependentOperatorSum}`: Time-dependent part of the Hamiltonian.
154
154
- `params::NamedTuple`: Dictionary of parameters to pass to the solver.
155
155
- `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(
172
172
H:: QuantumObject{MT1,OperatorQuantumObject} ,
173
173
ψ0:: QuantumObject{<:AbstractArray,KetQuantumObject} ,
174
174
tlist:: AbstractVector ,
175
- c_ops:: Union{Nothing,AbstractVector} = nothing ;
175
+ c_ops:: Union{Nothing,AbstractVector,Tuple } = nothing ;
176
176
alg:: OrdinaryDiffEqAlgorithm = Tsit5 (),
177
- e_ops:: Union{Nothing,AbstractVector} = nothing ,
177
+ e_ops:: Union{Nothing,AbstractVector,Tuple } = nothing ,
178
178
H_t:: Union{Nothing,Function,TimeDependentOperatorSum} = nothing ,
179
179
params:: NamedTuple = NamedTuple (),
180
180
seeds:: Union{Nothing,Vector{Int}} = nothing ,
286
286
mcsolveEnsembleProblem(H::QuantumObject{<:AbstractArray{T1},OperatorQuantumObject},
287
287
ψ0::QuantumObject{<:AbstractArray{T2},KetQuantumObject},
288
288
tlist::AbstractVector,
289
- c_ops::Union{Nothing,AbstractVector}=nothing;
289
+ c_ops::Union{Nothing,AbstractVector,Tuple }=nothing;
290
290
alg::OrdinaryDiffEqAlgorithm=Tsit5(),
291
- e_ops::Union{Nothing,AbstractVector}=nothing,
291
+ e_ops::Union{Nothing,AbstractVector,Tuple }=nothing,
292
292
H_t::Union{Nothing,Function,TimeDependentOperatorSum}=nothing,
293
293
params::NamedTuple=NamedTuple(),
294
294
jump_callback::TJC=ContinuousLindbladJumpCallback(),
@@ -335,9 +335,9 @@ If the environmental measurements register a quantum jump, the wave function und
335
335
- `H::QuantumObject`: Hamiltonian of the system ``\h at{H}``.
336
336
- `ψ0::QuantumObject`: Initial state of the system ``|\p si(0)\r angle``.
337
337
- `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``.
339
339
- `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.
341
341
- `H_t::Union{Nothing,Function,TimeDependentOperatorSum}`: Time-dependent part of the Hamiltonian.
342
342
- `params::NamedTuple`: Dictionary of parameters to pass to the solver.
343
343
- `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(
362
362
H:: QuantumObject{MT1,OperatorQuantumObject} ,
363
363
ψ0:: QuantumObject{<:AbstractArray{T2},KetQuantumObject} ,
364
364
tlist:: AbstractVector ,
365
- c_ops:: Union{Nothing,AbstractVector} = nothing ;
365
+ c_ops:: Union{Nothing,AbstractVector,Tuple } = nothing ;
366
366
alg:: OrdinaryDiffEqAlgorithm = Tsit5 (),
367
- e_ops:: Union{Nothing,AbstractVector} = nothing ,
367
+ e_ops:: Union{Nothing,AbstractVector,Tuple } = nothing ,
368
368
H_t:: Union{Nothing,Function,TimeDependentOperatorSum} = nothing ,
369
369
params:: NamedTuple = NamedTuple (),
370
370
jump_callback:: TJC = ContinuousLindbladJumpCallback (),
396
396
mcsolve(H::QuantumObject{<:AbstractArray{T1},OperatorQuantumObject},
397
397
ψ0::QuantumObject{<:AbstractArray{T2},KetQuantumObject},
398
398
tlist::AbstractVector,
399
- c_ops::Union{Nothing,AbstractVector}=nothing;
399
+ c_ops::Union{Nothing,AbstractVector,Tuple }=nothing;
400
400
alg::OrdinaryDiffEqAlgorithm=Tsit5(),
401
- e_ops::Union{Nothing,AbstractVector}=nothing,
401
+ e_ops::Union{Nothing,AbstractVector,Tuple }=nothing,
402
402
H_t::Union{Nothing,Function,TimeDependentOperatorSum}=nothing,
403
403
params::NamedTuple=NamedTuple(),
404
404
ntraj::Int=1,
@@ -445,9 +445,9 @@ If the environmental measurements register a quantum jump, the wave function und
445
445
- `H::QuantumObject`: Hamiltonian of the system ``\h at{H}``.
446
446
- `ψ0::QuantumObject`: Initial state of the system ``|\p si(0)\r angle``.
447
447
- `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``.
449
449
- `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.
451
451
- `H_t::Union{Nothing,Function,TimeDependentOperatorSum}`: Time-dependent part of the Hamiltonian.
452
452
- `params::NamedTuple`: Dictionary of parameters to pass to the solver.
453
453
- `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(
475
475
H:: QuantumObject{MT1,OperatorQuantumObject} ,
476
476
ψ0:: QuantumObject{<:AbstractArray{T2},KetQuantumObject} ,
477
477
tlist:: AbstractVector ,
478
- c_ops:: Union{Nothing,AbstractVector} = nothing ;
478
+ c_ops:: Union{Nothing,AbstractVector,Tuple } = nothing ;
479
479
alg:: OrdinaryDiffEqAlgorithm = Tsit5 (),
480
- e_ops:: Union{Nothing,AbstractVector} = nothing ,
480
+ e_ops:: Union{Nothing,AbstractVector,Tuple } = nothing ,
481
481
H_t:: Union{Nothing,Function,TimeDependentOperatorSum} = nothing ,
482
482
params:: NamedTuple = NamedTuple (),
483
483
seeds:: Union{Nothing,Vector{Int}} = nothing ,
0 commit comments