qat.core.pipelines.factory module
- class PipelineFactory(config, model=None, loader=None, target_data=None, engine=None)
Bases:
UpdateablePipeline
An updateable pipeline that allows a pipeline factory (function) to be called. This will use the factory as a proxy for the _build_pipeline method, allowing the pipeline to be refreshed with a new hardware model and/or config.
- 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
[QuantumHardwareModel
,PhysicalHardwareModel
,None
]) – The hardware model to feed into the pipeline, cannot be used simultaneously with loader, 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. Cannot be used simultaneously with the 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, or if both are provided.