From fafc75f05d72cb1c1297b35df9d3c63cd77d67f4 Mon Sep 17 00:00:00 2001 From: Andrea Date: Wed, 13 Mar 2024 12:14:17 -0400 Subject: [PATCH] fix: Fix qibolab backend selection --- src/qibo/backends/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/qibo/backends/__init__.py b/src/qibo/backends/__init__.py index 505a7205b2..c340617a24 100644 --- a/src/qibo/backends/__init__.py +++ b/src/qibo/backends/__init__.py @@ -34,6 +34,8 @@ def construct_backend(backend, **kwargs): elif backend == "qibolab": # pragma: no cover from qibolab.backends import QibolabBackend # pylint: disable=E0401 + return QibolabBackend(**kwargs) + elif backend == "qibotn": # pragma: no cover platform = kwargs.get("platform") @@ -46,7 +48,6 @@ def construct_backend(backend, **kwargs): return QuimbBackend(kwargs["runcard"]) - return QibolabBackend(**kwargs) elif backend == "clifford": return CliffordBackend(kwargs["platform"]) elif backend == "qibo-client": # pragma: no cover