qtt.instrument_drivers.adapters package¶
Submodules¶
qtt.instrument_drivers.adapters.constants module¶
qtt.instrument_drivers.adapters.time_stamp_instrument_adapter module¶
qtt.instrument_drivers.adapters.virtual_awg_instrument_adapter module¶
-
class
qtt.instrument_drivers.adapters.virtual_awg_instrument_adapter.VirtualAwgInstrumentAdapter(address: str, instrument_name: Optional[str] = None)[source]¶ Bases:
qilib.configuration_helper.instrument_adapter.InstrumentAdapter-
add_adapter_to_instrument_adapter(instrument_adapter_class_name: str, address: str, instrument_name: Optional[str] = None) → None[source]¶ Adds an instrument to the Virtual AWG instrument
- Parameters
instrument_adapter_class_name – Name of the InstrumentAdapter subclass.
address – Address of the physical instrument.
instrument_name – An optional name for the underlying instrument.
-
add_settings(gates: dict, markers: dict) → None[source]¶ Adds a setting instrument to the Virtual AWG instrument
- Parameters
gates – Gates
markers – Markers
-
apply(config: qilib.utils.python_json_structure.PythonJsonStructure) → None[source]¶ An abstract method that should be implemented in subclasses.
Writes a full set of configuration to the adapters instrument.
- Parameters
config – Containing the instrument configuration.
-
read(update: bool = False) → qilib.utils.python_json_structure.PythonJsonStructure[source]¶ Obtains a full set of settings from the instrument.
- Returns
Part of the instrument snapshot, i.e., parameter values, without the instrument’s parameters which are explicitly filtered out, and the instrument name.
-
qtt.instrument_drivers.adapters.virtual_dac_instrument_adapter module¶
-
class
qtt.instrument_drivers.adapters.virtual_dac_instrument_adapter.VirtualDACInstrumentAdapter(address: str, instrument_name: Optional[str] = None)[source]¶ Bases:
qilib.configuration_helper.instrument_adapter.InstrumentAdapterAdapter for the qtt VirtualDAC.
-
add_adapter_to_instrument_adapter(instrument_adapter_class_name: str, address: str, instrument_name: Optional[str] = None) → None[source]¶ Adds a DAC to the virtual DAC and cache a corresponding instrument adapter.
- Parameters
instrument_adapter_class_name – Name of the InstrumentAdapter subclass.
address – Address of the physical instrument.
instrument_name – An optional name for the underlying instrument.
-