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:
ControllerDummy instrument that returns random voltage values.
Useful for testing code without requiring access to hardware.
- Parameters:
- property sampling_rate: int¶
Sampling rate of control electronics.
Expressed in giga samples per second (GSps).
- 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.Sweeperobjects 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:
LocalOscillatorDummy local oscillator instrument.
Useful for testing the interface defined in
qibolab.instruments.oscillator.LocalOscillator.- 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:
ControllerDummy instrument that returns random voltage values.
Useful for testing code without requiring access to hardware.
- Parameters:
- property sampling_rate: int¶
Sampling rate of control electronics.
Expressed in giga samples per second (GSps).
- 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.Sweeperobjects 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:
LocalOscillatorDummy local oscillator instrument.
Useful for testing the interface defined in
qibolab.instruments.oscillator.LocalOscillator.- model_config = {'arbitrary_types_allowed': True, 'extra': 'allow', 'frozen': False}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].