-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: ♻️ Create generic settings
- Loading branch information
Showing
13 changed files
with
76 additions
and
32 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
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
Empty file.
10 changes: 7 additions & 3 deletions
10
.../settings/instruments/qblox_pulsar_qcm.py → ...ngs/instruments/qblox/qblox_pulsar_qcm.py
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,20 +1,24 @@ | ||
"""Qblox pulsar QCM settings class""" | ||
from dataclasses import dataclass | ||
|
||
from qililab.settings.instruments.qblox_pulsar import QbloxPulsarSettings | ||
from qililab.settings.instruments.qubit_control import QubitControlSettings | ||
|
||
|
||
@dataclass | ||
class QbloxPulsarQCMSettings(QbloxPulsarSettings): | ||
class QbloxPulsarQCMSettings(QubitControlSettings): | ||
"""Contains the settings of a specific pulsar. | ||
Args: | ||
name (str): Name of the settings. | ||
category (str): Name of the category. Options are "platform", "instrument", "qubit" and "resonator". | ||
location (str): Path to location of settings file. | ||
ip (str): IP address of the instrument. | ||
gain (float): Gain step used by the sequencer. | ||
reference_clock (str): Clock to use for reference. Options are 'internal' or 'external'. | ||
sequencer (int): Index of the sequencer to use. | ||
sync_enabled (bool): Enable synchronization over multiple instruments. | ||
gain (float): Gain step used by the sequencer. | ||
""" | ||
|
||
reference_clock: str | ||
sequencer: int | ||
sync_enabled: bool |
11 changes: 7 additions & 4 deletions
11
.../settings/instruments/qblox_pulsar_qrm.py → ...ngs/instruments/qblox/qblox_pulsar_qrm.py
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
10 changes: 2 additions & 8 deletions
10
...ilab/settings/instruments/qblox_pulsar.py → ...lab/settings/instruments/qubit_control.py
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,25 +1,19 @@ | ||
"""Qblox pulsar settings class""" | ||
"""Qubit control settings class""" | ||
from dataclasses import dataclass | ||
|
||
from qililab.settings.instruments.instrument import InstrumentSettings | ||
|
||
|
||
@dataclass | ||
class QbloxPulsarSettings(InstrumentSettings): | ||
class QubitControlSettings(InstrumentSettings): | ||
"""Contains the settings of a specific pulsar. | ||
Args: | ||
name (str): Name of the settings. | ||
category (str): Name of the category. Options are "platform", "instrument", "qubit" and "resonator". | ||
location (str): Path to location of settings file. | ||
ip (str): IP address of the instrument. | ||
reference_clock (str): Clock to use for reference. Options are 'internal' or 'external'. | ||
sequencer (int): Index of the sequencer to use. | ||
sync_enabled (bool): Enable synchronization over multiple instruments. | ||
gain (float): Gain step used by the sequencer. | ||
""" | ||
|
||
reference_clock: str | ||
sequencer: int | ||
sync_enabled: bool | ||
gain: float |
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,22 @@ | ||
"""Qblox pulsar QRM settings class.""" | ||
from dataclasses import dataclass | ||
|
||
from qililab.settings.instruments.instrument import InstrumentSettings | ||
from qililab.settings.pulse import PulseSettings | ||
|
||
|
||
@dataclass | ||
class QubitReadoutSettings(InstrumentSettings): | ||
"""Contains the settings of a specific pulsar. | ||
Args: | ||
name (str): Name of the settings. | ||
category (str): Name of the category. Options are "platform", "instrument", "qubit" and "resonator". | ||
location (str): Path to location of settings file. | ||
ip (str): IP address of the instrument. | ||
gain (float): Gain step used by the sequencer. | ||
readout_pulse (PulseSettings): Pulse used for readout. | ||
""" | ||
|
||
gain: float | ||
readout_pulse: PulseSettings |
Empty file.
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,21 @@ | ||
"""Signal generator settings class""" | ||
from dataclasses import dataclass | ||
|
||
from qililab.settings.instruments.instrument import InstrumentSettings | ||
|
||
|
||
@dataclass | ||
class SignalGeneratorSettings(InstrumentSettings): | ||
"""Contains the settings of a specific signal generator. | ||
Args: | ||
name (str): Name of the settings. | ||
category (str): Name of the category. Options are "platform", "instrument", "qubit" and "resonator". | ||
location (str): Path to location of settings file. | ||
ip (str): IP address of the instrument. | ||
power (float): Power of the instrument. Value range is (-120, 25). | ||
frequency (float): Frequency of the instrument. Value range is (1e6, 20e9). | ||
""" | ||
|
||
power: float | ||
frequency: float |
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