qat.core.pipelines.configurable module

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

Bases: UpdateablePipeline

A pipeline that allows each constituent to be defined in a granular fashion, and updated. The config is provided via the CompilePipelineDescription.

Allows a config to be provided that configures each component of the pipeline via the qatconfig.

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

  • model (QuantumHardwareModel | PhysicalHardwareModel | None) – The hardware model to feed into the pipeline. Defaults to None.

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

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

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

Raises:

ValueError – If neither model nor loader is provided.

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

Bases: UpdateablePipeline

A pipeline that allows each constituent to be defined in a granular fashion, and updated. The config is provided via the ExecutePipelineDescription.

Allows a config to be provided that configures each component of the pipeline via the qatconfig.

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

  • model (QuantumHardwareModel | PhysicalHardwareModel | None) – The hardware model to feed into the pipeline. Defaults to None.

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

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

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

Raises:

ValueError – If neither model nor loader is provided.

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

Bases: UpdateablePipeline

A pipeline that allows each constituent to be defined in a granular fashion, and updated. The config is provided via the PipelineClassDescription.

Allows a config to be provided that configures each component of the pipeline via the qatconfig.

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

  • model (QuantumHardwareModel | PhysicalHardwareModel | None) – The hardware model to feed into the pipeline. Defaults to None.

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

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

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

Raises:

ValueError – If neither model nor loader is provided.