From 4f227cd0b0d612c3db0ee5a8fcea2305ab0a9206 Mon Sep 17 00:00:00 2001 From: quantshah Date: Wed, 28 Jul 2021 10:46:51 +0200 Subject: [PATCH] changed outer to np.outer --- qutomo/states.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qutomo/states.py b/qutomo/states.py index 9195373..31237fd 100644 --- a/qutomo/states.py +++ b/qutomo/states.py @@ -6,7 +6,7 @@ import qiskit -from qiskit.tools import outer + import methods import measurements @@ -66,7 +66,7 @@ def get_state_matrix(self): Obtain density matrix by taking an outer product of state vector ''' state_vector = self.get_state_vector() - state_matrix = outer(state_vector) + state_matrix = np.outer(state_vector, state_vector.T.conj()) return state_matrix