TemplateEntry

class TemplateEntry(template_qasm: str, parameter_names: tuple[str, ...], parameter_sets: tuple[tuple[str, tuple[float, ...]], ...])[source]

Bases: NamedTuple

One parametric circuit ready for backend-side substitution.

Carries the full QASM 2.0 source (preamble + parametric body + measurement) with named-symbol placeholders, the ordered tuple of placeholder names, and the per-parameter-set values labelled with the pipeline-assigned circuit labels. Produced by the pipeline’s compilation pass and consumed by backends that implement SupportsCircuitTemplates.

The same parameter_sets rows generate one resolved circuit each on the backend, labelled with the supplied label so that pipeline result routing continues to work unchanged.

Create new instance of TemplateEntry(template_qasm, parameter_names, parameter_sets)

Attributes Summary

parameter_names

Alias for field number 1

parameter_sets

Alias for field number 2

template_qasm

Alias for field number 0

Attributes Documentation

parameter_names: tuple[str, ...]

Alias for field number 1

parameter_sets: tuple[tuple[str, tuple[float, ...]], ...]

Alias for field number 2

template_qasm: str

Alias for field number 0