Skip to content

Commit

Permalink
fix: reset transpiler when setting a backend
Browse files Browse the repository at this point in the history
  • Loading branch information
changsookim committed Nov 19, 2024
1 parent faa5a7c commit d4cbe05
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/qibo/backends/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d4cbe05

Please sign in to comment.