Skip to content

Commit

Permalink
Fix tab error
Browse files Browse the repository at this point in the history
  • Loading branch information
mtreinish committed Aug 4, 2021
1 parent fdfc2b9 commit bc99512
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/terra/backends/qasm_simulator/qasm_snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@ def stabilizes_statevector(stabilizer, statevector):
pauli_mat = -1 * Pauli(stab[1:]).to_matrix()
else:
pauli_mat = Pauli(stab).to_matrix()
val = statevector.conj().dot(pauli_mat.dot(statevector))
if not np.isclose(val, 1):
return False
val = statevector.conj().dot(pauli_mat.dot(statevector))
if not np.isclose(val, 1):
return False
return True

def test_snapshot_stabilizer_pre_measure_det(self):
Expand Down

0 comments on commit bc99512

Please sign in to comment.