Skip to content

Commit

Permalink
Improve readability by passing arguments to mesolve using keywords.
Browse files Browse the repository at this point in the history
  • Loading branch information
hodgestar committed Jun 29, 2021
1 parent fb3e93f commit f83025c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions qutip/propagator.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ def _parallel_mesolve(n, N, H, tlist, c_op_list, args, options, dims=None):
col_idx, row_idx = np.unravel_index(n, (N, N))
rho0 = Qobj(sp.csr_matrix(([1], ([row_idx], [col_idx])),
shape=(N, N), dtype=complex), dims=dims)
output = mesolve(H, rho0, tlist, c_op_list, [], args, options,
_safe_mode=False)
output = mesolve(
H, rho0, tlist, c_ops=c_op_list, args=args, options=options,
_safe_mode=False)
return output

0 comments on commit f83025c

Please sign in to comment.