Skip to content

Commit

Permalink
fix: fix circular import in clifford.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoLiegiBastonLiegi committed Feb 19, 2024
1 parent b2f5673 commit 5f6e614
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/qibo/backends/clifford.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import numpy as np

from qibo import gates
from qibo.backends import _check_backend, _clifford_operations
from qibo.backends import _clifford_operations
from qibo.backends.numpy import NumpyBackend
from qibo.config import raise_error

Expand All @@ -34,6 +34,8 @@ def __init__(self, engine=None):
super().__init__()

if engine is None:
from qibo.backends import _check_backend

engine = _check_backend(engine)
engine = engine.name if engine.platform is None else engine.platform

Expand Down

0 comments on commit 5f6e614

Please sign in to comment.