schedule#

Qblox backend specific schedule classes and associated utilities.

Module Contents#

Classes#

CompiledInstructions

Create an interactive table that represents the compiled instructions.

class CompiledInstructions(compiled_instructions: dict[Any, Any])[source]#

Bases: collections.UserDict

Create an interactive table that represents the compiled instructions.

When displayed in an interactive environment such as a jupyter notebook, the dictionary is displayed as an interactive table (if supported by the backend), otherwise is displayed as a regular dictionary. Each key from the compiled instructions can be retrieved with the usual [key] and .get(key) syntax. A raw dictionary can also be obtained via the .data attribute.

These values typically contain a combination of sequence files, waveform definitions, and parameters to configure on the instrument.

See examples below as well.

Examples

Example

schedule = Schedule("demo compiled instructions")
schedule.add(Reset("q0", "q4"))
schedule.add(X("q0"))
schedule.add(Y("q4"))
schedule.add(Measure("q0", acq_channel=0, acq_protocol="ThresholdedAcquisition"))
schedule.add(Measure("q4", acq_channel=1, acq_protocol="ThresholdedAcquisition"))

compiled_schedule = compiler.compile(schedule)
compiled_instructions = compiled_schedule.compiled_instructions
compiled_instructions

CompiledInstructions behave like dictionaries

compiled_instructions["cluster0"]["cluster0_module4"]["sequencers"]["seq0"].integration_length_acq
1000
Parameters:

compiled_instructions (dict) – Instructions in a dictionary form that are sent to the hardware.

data[source]#

The raw compiled instructions in a dictionary form.

_ipython_display_() None[source]#

Generate interactive table when running in jupyter notebook.