Skip to content

Commit

Permalink
fix: test environment url
Browse files Browse the repository at this point in the history
  • Loading branch information
erichulburd committed Feb 14, 2022
1 parent 95c8bf3 commit 66f3025
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions tests/test_qcs_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,22 @@


def test_get_simulator(monkeypatch):
monkeypatch.delenv("QCS_SETTINGS_APPLICATIONS_PYQUIL_QVM_URL", raising=False)

backend = RigettiQCSProvider().get_simulator(num_qubits=42)

assert backend.name() == "42q-qvm"
assert backend.configuration().num_qubits == 42
assert backend.configuration().local is True
assert backend.configuration().simulator is True
assert backend.configuration().local
assert backend.configuration().simulator
assert backend.configuration().coupling_map


def test_get_simulator__noisy(monkeypatch):
monkeypatch.delenv("QCS_SETTINGS_APPLICATIONS_PYQUIL_QVM_URL", raising=False)

backend = RigettiQCSProvider().get_simulator(num_qubits=42, noisy=True)

assert backend.name() == "42q-noisy-qvm"
assert backend.configuration().num_qubits == 42
assert backend.configuration().local is True
assert backend.configuration().simulator is True

assert backend.configuration().local
assert backend.configuration().simulator
assert backend.configuration().coupling_map


Expand Down

0 comments on commit 66f3025

Please sign in to comment.