Skip to content

Commit e579ada

Browse files
authored
Fix issue in mesolve for nothing c_ops (#276)
2 parents 5820791 + 8bb014e commit e579ada

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/time_evolution/mesolve.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ end
4343

4444
_mesolve_make_L_QobjEvo(H::QuantumObject, c_ops) = QobjEvo(liouvillian(H, c_ops); type = SuperOperator)
4545
function _mesolve_make_L_QobjEvo(H::Tuple, c_ops)
46-
c_ops isa Nothing && return QobjEvo(H)
46+
c_ops isa Nothing && return QobjEvo(H; type = SuperOperator, f = liouvillian)
4747
return QobjEvo((H..., mapreduce(op -> lindblad_dissipator(op), +, c_ops)); type = SuperOperator, f = liouvillian)
4848
end
4949
_mesolve_make_L_QobjEvo(H::QuantumObjectEvolution{DT,OperatorQuantumObject}, c_ops) where {DT<:AbstractSciMLOperator} =

0 commit comments

Comments
 (0)