Skip to content

Commit

Permalink
fix: Fix dummy interface
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-pasquale committed Jan 26, 2024
1 parent c13a8a7 commit 5e46e6f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/qibolab/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def create_platform(name, path: Path = None) -> Platform:
The plaform class.
"""
if name == "dummy" or name == "dummy_couplers":
from qibolab.dummy.platform import create_dummy
from qibolab.dummy import create_dummy

return create_dummy(with_couplers=name == "dummy_couplers")

Expand Down
1 change: 1 addition & 0 deletions src/qibolab/dummy/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .platform import create_dummy
2 changes: 1 addition & 1 deletion src/qibolab/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def sweep(
.. testcode::
import numpy as np
from qibolab.dummy.platform import create_dummy
from qibolab.dummy import create_dummy
from qibolab.sweeper import Sweeper, Parameter
from qibolab.pulses import PulseSequence
from qibolab.execution_parameters import ExecutionParameters
Expand Down
2 changes: 1 addition & 1 deletion src/qibolab/sweeper.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Sweeper:
.. testcode::
import numpy as np
from qibolab.dummy.platform import create_dummy
from qibolab.dummy import create_dummy
from qibolab.sweeper import Sweeper, Parameter
from qibolab.pulses import PulseSequence
from qibolab import ExecutionParameters
Expand Down

0 comments on commit 5e46e6f

Please sign in to comment.