Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
albi3ro committed Oct 21, 2024
1 parent 2e02d73 commit 13c8c4d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1647,10 +1647,12 @@ def test_diff_meas_circuit(self):
qc1.measure(1, 1)

qtemp, qtemp1 = load(qc), load(qc1)
assert qtemp()[0] == qml.measure(0) and qtemp1()[0] == qml.measure(2)
assert qml.equal(qtemp()[0], qml.measure(0))
assert qml.equal(qtemp1()[0], qml.measure(2))

qtemp2 = load(qc, measurements=[qml.expval(qml.PauliZ(0))])
assert qtemp()[0] != qtemp2()[0] and qtemp2()[0] == qml.expval(qml.PauliZ(0))
assert not qml.equal(qtemp()[0], qtemp2()[0])
qml.assert_equal(qtemp2()[0], qml.expval(qml.PauliZ(0)) )


class TestConverterPennyLaneCircuitToQiskit:
Expand Down

0 comments on commit 13c8c4d

Please sign in to comment.