Skip to content

Commit

Permalink
fix: Take just the platform argument
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido committed Feb 29, 2024
1 parent 74b3858 commit cbc1220
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/qibo/backends/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,7 @@ def construct_backend(backend, **kwargs):

return QibolabBackend(**kwargs)
elif backend == "clifford":
platform = kwargs.get("platform")
if platform in ("cupy", "numba", "cuquantum"):
platform = construct_backend("qibojit", platform=platform)
elif platform == "numpy":
platform = construct_backend(platform)
return CliffordBackend(platform)
return CliffordBackend(kwargs["platform"])
elif backend == "qibo-cloud": # pragma: no cover
from qibo_cloud_backends.qibo_client import ( # pylint: disable=E0401
QiboClientBackend,
Expand Down

0 comments on commit cbc1220

Please sign in to comment.