QbloxCompiler
- class qililab.QbloxCompiler
Bases:
objectA class for compiling QProgram to QBlox hardware.
Attributes Summary
Methods Summary
compile(qprogram[, bus_mapping, ...])Compile QProgram to qpysequence.Sequence
traverse_qprogram_acquire(block[, depth])Pre-pass over the QProgram tree to collect acquisition metadata before compilation.
Attributes Documentation
Methods Documentation
- compile(qprogram, bus_mapping=None, calibration=None, times_of_flight=None, delays=None, markers=None, ext_trigger=False, qblox_buses=None, single_channel=None, crosstalk=None)
Compile QProgram to qpysequence.Sequence
- Parameters:
qprogram (
QProgram) – The QProgram to be compiledbus_mapping (
dict[str,str], optional) – Optional mapping of bus names. Defaults to None.times_of_flight (
dict[str,int], optional) – Optional time of flight of bus. Defaults to None.
- Return type:
QbloxCompilationOutput
- traverse_qprogram_acquire(block, depth=0)
Pre-pass over the QProgram tree to collect acquisition metadata before compilation.
Populates
_acquisition_metadata: a mapping of bus → {block_uuid → (count, depth)}, wherecountis the number of acquire operations directly inside that block anddepthis the tree nesting depth of that block. This metadata is consumed bycompile()to detect the exceeds-depth regime and bytraverse()to setcounter_acquireon each bus.