-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add dummy_qrc/platform.py & fix import
- Loading branch information
changsookim
committed
Nov 12, 2024
1 parent
0723cba
commit 7d7aab3
Showing
5 changed files
with
80 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
"""RFSoC module driver for qibosoq.""" | ||
|
||
from .driver import RFSoC | ||
from . import driver | ||
from .driver import * | ||
|
||
__all__ = [] | ||
__all__ += driver.__all__ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
"""RFSoC module driver for qibosoq.""" | ||
|
||
from qibolab._core.instruments import rfsoc | ||
from qibolab._core.instruments.rfsoc import * # noqa: F403 | ||
|
||
__all__ = [] | ||
__all__ += rfsoc.__all__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import pathlib | ||
|
||
from qibolab import AcquisitionChannel, DcChannel, IqChannel, Qubit | ||
from qibolab.instruments.era import ERASynth | ||
from qibolab.instruments.rfsoc import RFSoC | ||
from qibolab.instruments.rohde_schwarz import SGS100A | ||
from qibolab.platform import Platform | ||
|
||
FOLDER = pathlib.Path(__file__).parent | ||
|
||
|
||
def create(): | ||
"""Dummy platform using QICK project on the RFSoC4x2 board. | ||
Used in ``test_instruments_rfsoc.py``. | ||
""" | ||
|
||
qubit = Qubit.default("q0") | ||
|
||
# offset? | ||
|
||
channels = {} | ||
|
||
# Readout | ||
assert qubit.probe is not None | ||
channels[qubit.probe] = IqChannel( | ||
device="L3-18_ro", path="0", mixer=None, lo="ErasynthLO" | ||
) | ||
|
||
# Acquire (feedback) | ||
assert qubit.acquisition is not None | ||
channels[qubit.acquisition] = AcquisitionChannel( | ||
device="L2-RO", | ||
path="0", | ||
probe=qubit.probe, # twpa_pump="twpa_a" ? | ||
) | ||
|
||
# Drive | ||
assert qubit.drive is not None | ||
channels[qubit.drive] = IqChannel( | ||
device="L3-18_qd", | ||
path="1", | ||
mixer=None, # lo="ErasynthLO" ? | ||
) | ||
|
||
# Flux | ||
assert qubit.flux is not None | ||
channels[qubit.flux] = DcChannel(device="L2-22_qf", path="2") | ||
|
||
lo_twpa = SGS100A(address="192.168.0.32") | ||
lo_era = ERASynth(address="192.168.0.212", ethernet=True) | ||
controller = RFSoC( | ||
address="0.0.0.0", | ||
channels=channels, | ||
port=0, | ||
) | ||
|
||
instruments = {"tii_rfsoc4x2": controller, "twpa_a": lo_twpa, "ErasynthLO": lo_era} | ||
return Platform.load(path=FOLDER, instruments=instruments, qubits={"q0": qubit}) |