Skip to content

Commit

Permalink
Use isoper
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Giguere committed Apr 25, 2024
1 parent 477ed28 commit 9e0279b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qutip/solver/solver_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def _restore_state(self, data, *, copy=True):
state = Qobj(data, **self._state_metadata, copy=copy)

if data.shape[1] == 1 and self._options['normalize_output']:
if state._isherm:
if state.isoper:
state = state * (1 / state.tr())
else:
state = state * (1 / state.norm())
Expand Down

0 comments on commit 9e0279b

Please sign in to comment.