qibolab.instruments package

class qibolab.instruments.DummyInstrument(*, address: str, settings: InstrumentSettings | None = None, channels: dict[str, ~qibolab._core.components.channels.Channel]=<factory>, **extra_data: Any)[source]

Bases: Controller

Dummy instrument that returns random voltage values.

Useful for testing code without requiring access to hardware.

Parameters:
  • name (str) – name of the instrument.

  • address (int) – address to connect to the instrument. Not used since the instrument is dummy, it only exists to keep the same interface with other instruments.

address: str
channels: dict[str, Channel]
property sampling_rate: int

Sampling rate of control electronics.

Expressed in giga samples per second (GSps).

connect()[source]

Establish connection to the physical instrument.

disconnect()[source]

Close connection to the physical instrument.

values(options: ExecutionParameters, shape: tuple[int, ...])[source]
play(configs: dict[str, Config], sequences: list[PulseSequence], options: ExecutionParameters, sweepers: list[list[Sweeper]])[source]

Play a pulse sequence and retrieve feedback.

If qibolab.Sweeper objects are passed as arguments, they are executed in real-time. If not possible, an error is raised.

Returns a mapping with the id of the probe pulses used to acquired data.

model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'frozen': False}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class qibolab.instruments.DummyLocalOscillator(*, address: str, settings: InstrumentSettings | None = <factory>, device: Device | None = None, turn_off_on_disconnect: bool | None = True, **extra_data: Any)[source]

Bases: LocalOscillator

Dummy local oscillator instrument.

Useful for testing the interface defined in qibolab.instruments.oscillator.LocalOscillator.

create()[source]

Create instance of physical device.

model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'frozen': False}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

qibolab.instruments.create_dummy() Platform[source]

Create a dummy platform using the dummy instrument.

Submodules

qibolab.instruments.bluefors module

qibolab.instruments.dummy module

Dummy drivers.

Define instruments mainly used for testing purposes.

class qibolab.instruments.dummy.DummyInstrument(*, address: str, settings: InstrumentSettings | None = None, channels: dict[str, ~qibolab._core.components.channels.Channel]=<factory>, **extra_data: Any)[source]

Bases: Controller

Dummy instrument that returns random voltage values.

Useful for testing code without requiring access to hardware.

Parameters:
  • name (str) – name of the instrument.

  • address (int) – address to connect to the instrument. Not used since the instrument is dummy, it only exists to keep the same interface with other instruments.

address: str
channels: dict[str, Channel]
property sampling_rate: int

Sampling rate of control electronics.

Expressed in giga samples per second (GSps).

connect()[source]

Establish connection to the physical instrument.

disconnect()[source]

Close connection to the physical instrument.

values(options: ExecutionParameters, shape: tuple[int, ...])[source]
play(configs: dict[str, Config], sequences: list[PulseSequence], options: ExecutionParameters, sweepers: list[list[Sweeper]])[source]

Play a pulse sequence and retrieve feedback.

If qibolab.Sweeper objects are passed as arguments, they are executed in real-time. If not possible, an error is raised.

Returns a mapping with the id of the probe pulses used to acquired data.

model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'frozen': False}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class qibolab.instruments.dummy.DummyLocalOscillator(*, address: str, settings: InstrumentSettings | None = <factory>, device: Device | None = None, turn_off_on_disconnect: bool | None = True, **extra_data: Any)[source]

Bases: LocalOscillator

Dummy local oscillator instrument.

Useful for testing the interface defined in qibolab.instruments.oscillator.LocalOscillator.

create()[source]

Create instance of physical device.

model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'frozen': False}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

qibolab.instruments.dummy.create_dummy() Platform[source]

Create a dummy platform using the dummy instrument.

qibolab.instruments.emulator module

qibolab.instruments.era module

qibolab.instruments.keysight_qcs module

qibolab.instruments.qblox module

qibolab.instruments.qibosoq module

qibolab.instruments.qm module

qibolab.instruments.qrng module

qibolab.instruments.rohde_schwarz module