Skip to content

Commit

Permalink
Merge pull request #92 from pasqal-io/qutip-fix
Browse files Browse the repository at this point in the history
Fixing compatibility issue with latest version of QuTiP
  • Loading branch information
HGSilveri authored Feb 26, 2021
2 parents 748a9b8 + 845a12f commit 1dae70b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pulser/simresults.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def sample_final_state(self, meas_basis=None, N_samples=1000):

N = self._size
self.N_samples = N_samples
probs = np.abs(self._states[-1])**2
probs = np.abs(self._states[-1].data.toarray())**2
if self._dim == 2:
if meas_basis == self._basis_name:
# State vector ordered with r first for 'ground_rydberg'
Expand Down

0 comments on commit 1dae70b

Please sign in to comment.