Skip to content

Commit

Permalink
Merge pull request #1526 from qiboteam/fix/global
Browse files Browse the repository at this point in the history
Reset Transpiler When Setting Backends
  • Loading branch information
csookim authored Nov 19, 2024
2 parents faa5a7c + d4cbe05 commit ea6984d
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 ea6984d

Please sign in to comment.