Skip to content

Commit

Permalink
fix quantum info test
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryoris committed Feb 13, 2025
1 parent 8475c38 commit 1b8c9f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def test_from_sparse_observable(self):
with self.subTest("XrZ"):
obs = SparseObservable("XrZ")
spo = SparsePauliOp.from_sparse_observable(obs)
expected = SparsePauliOp(["XIZ", "XYZ"], coeffs=[0.5, -0.5])
expected = SparsePauliOp(["XIZ", "XYZ"], coeffs=[0.5, 0.5])

# we don't guarantee the order of Paulis, so check equality by comparing
# the matrix representation and that all Pauli strings are present
Expand Down

0 comments on commit 1b8c9f7

Please sign in to comment.