From 18d09124fc831edf84fce83e8d5cca5dd7d18fcd Mon Sep 17 00:00:00 2001 From: HSilveri Date: Fri, 26 Feb 2021 13:05:40 +0100 Subject: [PATCH] Using QuTiP's preferred method for getting an array from QObj --- pulser/simresults.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pulser/simresults.py b/pulser/simresults.py index aa7f521b8..166769548 100644 --- a/pulser/simresults.py +++ b/pulser/simresults.py @@ -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'