Skip to content

Commit

Permalink
Using QuTiP's preferred method for getting an array from QObj
Browse files Browse the repository at this point in the history
  • Loading branch information
HGSilveri committed Feb 26, 2021
1 parent 1dae70b commit 18d0912
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].data.toarray())**2
probs = np.abs(self._states[-1].full())**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 18d0912

Please sign in to comment.