qat.pipelines.purr.qblox.execute module

class QbloxExecutePipeline(config, model=None, loader=None, target_data=None, engine=None)

Bases: UpdateablePipeline

A pipeline that executes Executable <qat.executable.Executable>`s with :class:`QbloxProgram <qat.backend.qblox.execution.QbloxProgram>`s packages using the :class:`QbloxLiveEngineAdapter.

Warning

This pipeline is for execution purposes only and does not compile programs. Please select an appropriate compilation pipeline if you wish to compile programs before execution.

Parameters:
  • config (PipelineConfig) – The pipeline configuration with the name of the pipeline, and any additional parameters that can be configured in the pipeline.

  • model (Union[None, QuantumHardwareModel, PhysicalHardwareModel]) – The hardware model to feed into the pipeline. Defaults to None.

  • loader (Optional[BaseModelLoader]) – The hardware loader used to load the hardware model which can be used to later refresh the hardware model. Defaults to None.

  • target_data (Optional[TargetData]) – The data concerning the target device, defaults to None

  • engine (Optional[NativeEngine]) – The engine to use for the pipeline, defaults to None.

Raises:

ValueError – If neither model nor loader is provided.

get_results_pipeline(model)

Factory for creating the default results pipeline.

Parameters:

model (QuantumHardwareModel) – The quantum hardware model to use for the pipeline.

Return type:

PassManager