Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
cqc-melf committed Nov 6, 2023
1 parent 2eaaaf6 commit fb468b2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
~~~~~~~~~

0.31.0 (unreleased)
-------------------

* add pyquil.gates.XY to the native gateset

0.30.0 (October 2023)
---------------------

Expand Down
19 changes: 19 additions & 0 deletions tests/qvm_backend_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,25 @@ def test_shots_bits_edgecases(qvm: None, quilc: None) -> None:
assert res.get_counts() == correct_counts


@pytest.mark.skipif(
skip_qvm_tests, reason="Can only run Rigetti QVM if docker is installed"
)
def test_gateset(qvm: None, quilc: None) -> None:
qc = get_qc("9q-square", as_qvm=True)
forest_backend = ForestBackend(qc)

for n_bits in range(1, 9): # Getting runtime error if n_qubit > 9.
for n_shots in range(1, 11):
c = Circuit(n_bits, n_bits)
c.ISWAP(0.1, 0, 2)
c.measure_all()

c = forest_backend.get_compiled_circuit(c)
h = forest_backend.process_circuit(c, n_shots)
# h = forest_backend.process_circuit(c, n_shots, valid_check=False)
forest_backend.get_result(h)


@pytest.mark.skipif(
skip_qvm_tests, reason="Can only run Rigetti QVM if docker is installed"
)
Expand Down

0 comments on commit fb468b2

Please sign in to comment.