qat.pipelines.echo module

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

Bases: UpdateablePipeline

A pipeline that compiles programs using the WaveformV1Backend and executes them using the EchoEngine.

An engine cannot be provided to the pipeline, as the EchoEngine is used directly.

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 None

  • engine (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.

class EchoPipelineConfig(**data)

Bases: PipelineConfig

Configuration for the EchoPipeline.

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
class ExperimentalEchoPipeline(config, model=None, loader=None, target_data=None, engine=None)

Bases: UpdateablePipeline

A pipeline that compiles programs using the PydWaveformV1Backend and executes them using the EchoEngine.

An engine cannot be provided to the pipeline, as the EchoEngine is used directly.

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 None

  • engine (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.