Skip to content

Commit

Permalink
Additional changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mudit2812 committed Aug 30, 2023
1 parent c8b0d0b commit 676811e
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions tests/test_qiskit_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,28 +140,6 @@ def test_calls_to_reset(self, n_tapes, mocker, device):

assert spy.call_count == n_tapes

def test_result_legacy(self, device, tol):
"""Tests that the result has the correct shape and entry types."""
# TODO: remove once the legacy return system is removed.
dev = device(2)
tapes = [self.tape1, self.tape2]
res = dev.batch_execute(tapes)

# We're calling device methods directly, need to reset before the next
# execution
dev.reset()
tape1_expected = dev.execute(self.tape1)

dev.reset()
tape2_expected = dev.execute(self.tape2)

assert len(res) == 2
assert isinstance(res[0], np.ndarray)
assert np.allclose(res[0], tape1_expected, atol=0)

assert isinstance(res[1], np.ndarray)
assert np.allclose(res[1], tape2_expected, atol=0)

def test_result(self, device, tol):
"""Tests that the result has the correct shape and entry types."""
dev = device(2)
Expand Down

0 comments on commit 676811e

Please sign in to comment.