Skip to content

Commit

Permalink
Update test/cutting/test_cutting_roundtrip.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jim Garrison <[email protected]>
  • Loading branch information
ibrahim-shehzad and garrison authored Oct 9, 2023
1 parent 2853f2c commit 4d28704
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/cutting/test_cutting_roundtrip.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,10 @@ def test_cutting_exact_reconstruction(example_circuit):
assert np.allclose(exact_expvals, simulated_expvals, atol=1e-8)


def test_sampler_fail(example_circuit):
"""This test checks if the sampler throws an error if you pass it a subscircuit with no measurements. Tests temporary workaround to Issue #422.
def test_sampler_with_identity_subobservable(example_circuit):
"""This test ensures that the sampler does not throw an error if you pass it a subcircuit with no observable measurements.
Tests temporary workaround to Issue #422.
This test passes if no exceptions are raised.
Expand Down

0 comments on commit 4d28704

Please sign in to comment.