diff --git a/src/qibo/backends/__init__.py b/src/qibo/backends/__init__.py index 5ba27d63f..91902da7d 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