Skip to content

Commit 9a01466

Browse files
Fix dissipator init error
1 parent e7f8bec commit 9a01466

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qobj/superoperators.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,4 +178,4 @@ liouvillian(H::AbstractQuantumObject{Operator}, Id_cache::Diagonal = I(prod(H.di
178178

179179
liouvillian(H::AbstractQuantumObject{SuperOperator}, Id_cache::Diagonal) = H
180180

181-
_sum_lindblad_dissipators(c_ops, Id_cache::Diagonal) = sum(op -> lindblad_dissipator(op, Id_cache), c_ops)
181+
_sum_lindblad_dissipators(c_ops, Id_cache::Diagonal) = sum(op -> lindblad_dissipator(op, Id_cache), c_ops; init = 0)

0 commit comments

Comments
 (0)