qat.pipelines.legacy.qiskit module
- class LegacyQiskitCompilePipeline(config, model=None, loader=None, target_data=None, engine=None)
Bases:
UpdateablePipelineA pipeline that compiles programs for the Qiskit backend.
Warning
This pipeline is for compilation purposes only and does not execute programs. Please use the
LegacyQiskitExecutePipeline <.execute.LegacyQiskitExecutePipelinefor 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 Noneengine¶ (
Optional[NativeEngine]) – The engine to use for the pipeline, defaults to None.
- Raises:
ValueError – If neither model nor loader is provided.
- class LegacyQiskitExecutePipeline(config, model=None, loader=None, target_data=None, engine=None)
Bases:
UpdateablePipelineA pipeline that executes programs using the
QiskitEngineand theLegacyRuntime.Implements a custom pipeline to make instructions suitable for the legacy Qiskit engine, and has a custom post-processing pipeline.
- 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 LegacyQiskitPipeline(config, model=None, loader=None, target_data=None, engine=None)
Bases:
UpdateablePipelineA pipeline that executes programs using the
QiskitEngineand theLegacyRuntime.Implements a custom pipeline to make instructions suitable for the legacy Qiskit engine, and has a custom post-processing pipeline.
- 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 PipelineConfig(**data)
Bases:
BaseModelBase class for configuring updateable pipelines. Subclasses of
UpdateablePipelineshould be paried with their own configuration class which specifies custom configuration parameters, and/or sets custom defaults.Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
name:
str