Skip to content

Commit

Permalink
Use correct backend in test_backend
Browse files Browse the repository at this point in the history
  • Loading branch information
kt474 committed Oct 23, 2024
1 parent 9e3c397 commit 1f26680
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/integration/test_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,12 @@ def setUpClass(cls):
# pylint: disable=no-value-for-parameter
super().setUpClass()
if cls.dependencies.channel == "ibm_cloud":
# TODO use real device when cloud supports it
cls.backend = cls.dependencies.service.least_busy(min_num_qubits=5)
cls.backend = cls.dependencies.service.backend(cls.dependencies.qpu)
if cls.dependencies.channel == "ibm_quantum":
cls.dependencies.service._account.instance = (
None # set instance to none to avoid filtering
)
cls.backend = cls.dependencies.service.least_busy(simulator=False, min_num_qubits=5)
cls.backend = cls.dependencies.service.backend(cls.dependencies.qpu)

def test_backend_service(self):
"""Check if the service property is set."""
Expand Down

0 comments on commit 1f26680

Please sign in to comment.