Skip to content

Commit

Permalink
fixed a minor bug that caused the statevector simulator to output a f…
Browse files Browse the repository at this point in the history
…aulty global phase in some situtations
  • Loading branch information
positr0nium committed Feb 22, 2024
1 parent 80a39c1 commit 9502b1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/qrisp/simulator/tensor_factor.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ def multi_measure(self, mes_qubits, return_res_tf = True):
return p_list, tf_list, outcome_index_list

def disentangle(self, qubit):
if len(self.qubits) == 1:
return self, self

# Swap the index that is supposed to be measured to the front
index = self.qubits.index(qubit)
Expand Down

0 comments on commit 9502b1a

Please sign in to comment.