Skip to content

Commit

Permalink
Add comments on missing liouvillian check
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Giguere committed Apr 25, 2024
1 parent f8ae77d commit 477ed28
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qutip/solver/solver_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ def _prepare_state(self, state):

self._state_metadata = {
'dims': state._dims,
# This is herm flag take for granted that the liouvillian keep
# hermiticity. But we do not check user passed super operator for
# anything other than dimensions.
'isherm': state.isherm and not (self.rhs.dims == state.dims)
}
if self.rhs.dims[1] == state.dims:
Expand Down

0 comments on commit 477ed28

Please sign in to comment.