Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions src/time_evolution/mesolve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,16 @@ function _mesolve_make_L_QobjEvo(H::Tuple, c_ops)
c_ops isa Nothing && return QobjEvo(H)
return QobjEvo((H..., mapreduce(op -> lindblad_dissipator(op), +, c_ops)); type = SuperOperator, f = liouvillian)
end
# TODO: Add support for Operator type QobEvo
function _mesolve_make_L_QobjEvo(H::QuantumObjectEvolution, c_ops)
issuper(H) || throw(ArgumentError("The time-dependent Hamiltonian must be a SuperOperator."))
_mesolve_make_L_QobjEvo(H::QuantumObjectEvolution{DT,OperatorQuantumObject}, c_ops) where {DT<:AbstractSciMLOperator} =
throw(
ArgumentError(
"This function does not support the data type of time-dependent Operator `H` currently. Try to provide `H` as a time-dependent SuperOperator or Tuple instead.",
),
)
function _mesolve_make_L_QobjEvo(
H::QuantumObjectEvolution{DT,SuperOperatorQuantumObject},
c_ops,
) where {DT<:AbstractSciMLOperator}
c_ops isa Nothing && return H
return H + QobjEvo((mapreduce(op -> lindblad_dissipator(op), +, c_ops)))
end
Expand Down