From d4cbe055e208b3c1d78dee03ca1624f37f83adab Mon Sep 17 00:00:00 2001 From: changsookim <> Date: Tue, 19 Nov 2024 09:27:17 +0400 Subject: [PATCH] fix: reset transpiler when setting a backend --- src/qibo/backends/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/qibo/backends/__init__.py b/src/qibo/backends/__init__.py index 5ba27d63f1..91902da7d5 100644 --- a/src/qibo/backends/__init__.py +++ b/src/qibo/backends/__init__.py @@ -115,6 +115,7 @@ def _create_backend(cls): @classmethod def set_backend(cls, backend, **kwargs): cls._backend = construct_backend(backend, **kwargs) + cls._transpiler = None log.info(f"Using {cls._backend} backend on {cls._backend.device}") @classmethod