Skip to content

Commit

Permalink
Update method for Quantum Master Equation (#434)
Browse files Browse the repository at this point in the history
Co-authored-by: Henrique Silvério <[email protected]>
Co-authored-by: Seb Grijalva <[email protected]>
  • Loading branch information
3 people authored Dec 27, 2022
1 parent c2c6409 commit 890a7e8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pulser-simulation/pulser_simulation/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -876,14 +876,11 @@ def _run_solver() -> CoherentResults:
raise ValueError("`progress_bar` must be a bool.")

if "dephasing" in self.config.noise:
# temporary workaround due to a qutip bug when using mesolve
liouvillian = qutip.liouvillian(
self._hamiltonian, self._collapse_ops
)
result = qutip.mesolve(
liouvillian,
self._hamiltonian,
self.initial_state,
self._eval_times_array,
self._collapse_ops,
progress_bar=p_bar,
options=solv_ops,
)
Expand Down

0 comments on commit 890a7e8

Please sign in to comment.