qat.core.pipeline module
- class HardwareLoaders(hardware_loaders={})
Bases:
object
- clear_cache()
- classmethod from_descriptions(hardware_loader_descriptions)
- load(loader_name, default=None, allow_cache=True)
Loads a hardware model, using the internal cache unless allow_cache=False.
- class Pipeline(**data)
Bases:
BaseModel
Pipeline that compiles high-level language specific, but target-agnostic, input (QASM, QIR, …) to target-specific instructions that are executed on our hardware. :param _sphinx_paramlinks_qat.core.pipeline.Pipeline.frontend: Compiles a high-level language-specific, but target-agnostic,
input
QatInput
to a target-agnostic intermediate representation (IR)QatIR
.- Parameters:
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.
-
backend:
BaseBackend
- classmethod consistent_model(model, info)
Validates that the hardware model supplied to the Pipeline matches the hardware model embedded in other fields.
- classmethod from_description(desc)
-
frontend:
BaseFrontend
-
middleend:
BaseMiddleend
-
model:
QuantumHardwareModel
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
name:
str
-
runtime:
BaseRuntime
- class PipelineSet(pipelines=[])
Bases:
object
- add(pipeline, default=False)
Adds a pipeline for subsequent use for compilation and execution
- property default: str
Returns the name of the current default pipeline
- classmethod from_descriptions(pipeline_descriptions, available_hardware)
- get(pipeline)
Gets a stored pipeline by name (str) or passes through a pipeline instance
- remove(pipeline)
Remove a pipeline
- set_default(pipeline)