diff --git a/src/qibo/backends/__init__.py b/src/qibo/backends/__init__.py index 75fd502479..eb743a50d6 100644 --- a/src/qibo/backends/__init__.py +++ b/src/qibo/backends/__init__.py @@ -111,6 +111,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