Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions qutomo/states.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


import qiskit
from qiskit.tools import outer


import methods
import measurements
Expand Down Expand Up @@ -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


Expand Down