qat.pipelines.purr.qblox.compile module
- class QbloxCompilePipeline1(config, model=None, loader=None, target_data=None, engine=None)
Bases:
UpdateablePipelineA pipeline that compiles programs using the
QbloxBackend1.Warning
This pipeline is for compilation purposes only and does not execute programs. Please select an appropriate execution pipeline if you wish to run the compiled programs.
- 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 Noneengine¶ (
Optional[NativeEngine]) – The engine to use for the pipeline, defaults to None.
- Raises:
ValueError – If neither model nor loader is provided.
- class QbloxCompilePipeline2(config, model=None, loader=None, target_data=None, engine=None)
Bases:
UpdateablePipelineA pipeline that compiles programs using the
QbloxBackend2.Warning
This pipeline is for compilation purposes only and does not execute programs. Please select an appropriate execution pipeline if you wish to run the compiled programs.
- 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 Noneengine¶ (
Optional[NativeEngine]) – The engine to use for the pipeline, defaults to None.
- Raises:
ValueError – If neither model nor loader is provided.
- backend_pipeline1()
- backend_pipeline2()
- middleend_pipeline1(model, target_data)
- Return type:
- middleend_pipeline2(model, target_data)