generic#

Module containing a Generic InstrumentCoordinator Component.

Module Contents#

Classes#

GenericInstrumentCoordinatorComponent

A Generic class which can be used for interaction with the InstrumentCoordinator.

Attributes#

logger

DEFAULT_NAME

logger[source]#
DEFAULT_NAME = 'generic'[source]#
class GenericInstrumentCoordinatorComponent(instrument_reference: str | qcodes.instrument.base.InstrumentBase = DEFAULT_NAME)[source]#

Bases: quantify_scheduler.instrument_coordinator.components.base.InstrumentCoordinatorComponentBase

A Generic class which can be used for interaction with the InstrumentCoordinator.

The GenericInstrumentCoordinatorComponent should be able to accept any type of qcodes instrument. The component is meant to serve as an interface for simple access to instruments such as the local oscillator, or current source which needs to only set parameters. For now this component is not being used in any of the hardware backends’ compilation step. This will be fixed in the next official release.

abstract property instrument[source]#

Overwrite the instrument method.

There is no instrument for the GenericInstrumentCoordinatorComponent class.

property is_running: bool[source]#

A state whether an instrument is capable of running in a program.

Not to be confused with the on/off state of an instrument.

_no_gc_instances: Dict[str, quantify_scheduler.instrument_coordinator.components.base.InstrumentCoordinatorComponentBase][source]#
start() None[source]#

Start the instrument.

stop() None[source]#

Stop the instrument.

prepare(params_config: Dict[str, Any]) None[source]#

Prepare the instrument.

params_config has keys which should correspond to parameter names of the instrument and the corresponding values to be set. Always ensure that the key to the params_config is in the format ‘instrument_name.parameter_name’ See example below.

params_config = {
                 "lo_mw_q0.frequency": 6e9,
                 "lo_mw_q0.power": 13, "lo_mw_q0.status": True,
                 "lo_ro_q0.frequency": 8.3e9, "lo_ro_q0.power": 16,
                 "lo_ro_q0.status": True,
                 "lo_spec_q0.status": False,
                }
_set_params_to_devices(params_config) None[source]#

Set the parameters in the params_config dict to the generic devices set in the hardware_config.

The bool force_set_parameters is used to change the lazy_set behavior.

retrieve_acquisition() Any[source]#

Retrieve acquisition.

get_hardware_log(compiled_schedule: quantify_scheduler.schedules.schedule.CompiledSchedule) dict | None[source]#

Get the hardware log.

wait_done(timeout_sec: int = 10) None[source]#

Wait till done.