Skip to content

Commit

Permalink
Use correct backend in test_backend (#1991)
Browse files Browse the repository at this point in the history
  • Loading branch information
kt474 authored Oct 23, 2024
1 parent 50d143e commit 2e969ff
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 2e969ff

Please sign in to comment.