Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
cqc-melf committed Nov 7, 2023
1 parent d66f8fb commit a835103
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions tests/qvm_backend_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,21 +429,18 @@ def test_gateset_ii(qvm: None, quilc: None) -> None:
c = Circuit(0, 6)
for q in a:
c.add_qubit(q)
c.ISWAP(0.1, a[5], a[4])
c.Rx(0.5, a[5])
c.Rz(0.1, a[4])
c.ISWAP(0.2, a[5], a[4])
c.Rx(0.5, a[5])
c.Rz(0.1, a[4])
c.ISWAP(0.3, a[5], a[4])
c.Rx(1.0, a[5])
c.ISWAP(1.0, a[5], a[4])
c.Rx(1.0, a[4])
c.ISWAP(1.0, a[5], a[4])

c.measure_all()

h = forest_backend.process_circuit(c, 10)
res = forest_backend.get_result(h)

assert res.get_shots().shape == (10, 6)
assert res.get_counts()[(0, 0, 0, 0, 0, 1)] > 5
assert res.get_counts()[(1, 0, 0, 0, 0, 0)] == 10


@pytest.mark.skipif(
Expand Down

0 comments on commit a835103

Please sign in to comment.