Skip to content

Commit

Permalink
update exp_val calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
ShellyGarion committed Feb 8, 2023
1 parent d217b1e commit 3b20578
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions qiskit/quantum_info/states/stabilizerstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,8 @@ def equiv(self, other):
# Compute the expected value of each stabilizer from the original set on the stabilizer state
# determined by the other set. The two stabilizer states coincide if and only if the
# expected value is +1 for each stabilizer
stab_gen = other._data.to_labels(mode="S")
for i in range(num_qubits):
op = Pauli(stab_gen[i])
exp_val = self.expectation_value(op)
exp_val = self.expectation_value(pauli_other[i])
if exp_val != 1:
return False

Expand Down

0 comments on commit 3b20578

Please sign in to comment.