Skip to content

Commit

Permalink
ruff updates III
Browse files Browse the repository at this point in the history
  • Loading branch information
cqc-melf committed Oct 4, 2024
1 parent 7c09755 commit 8e9cd44
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pytket/extensions/qulacs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@
"""Module for conversion from tket primitives to Qulacs primitives."""

# _metadata.py is copied to the folder after installation.
from contextlib import suppress

from ._metadata import __extension_name__, __extension_version__
from .backends import QulacsBackend

try:
with suppress(ImportError):
from .backends import QulacsGPUBackend
except ImportError:
# warning was already raised
pass

from .qulacs_convert import tk_to_qulacs

0 comments on commit 8e9cd44

Please sign in to comment.