Skip to content

Commit

Permalink
refactor: Make test_metabackend_list_available run on gpu as well
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-pasquale committed Jan 31, 2025
1 parent 8302937 commit df3bdcc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/qibojit/tests/test_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

from qibojit.backends import MetaBackend

from .conftest import AVAILABLE_BACKENDS


def test_device_setter(backend):
if backend.platform == "numba":
Expand Down Expand Up @@ -120,5 +122,5 @@ def test_backend_eigh_sparse(backend, sparse_type, k):


def test_metabackend_list_available():
available_backends = dict(zip(("numba", "cupy", "cuquantum"), (True, False, False)))
available_backends = {backend: True for backend in AVAILABLE_BACKENDS}
assert MetaBackend().list_available() == available_backends

0 comments on commit df3bdcc

Please sign in to comment.