qecx.RegisterTemplateEntry¶
- class qecx.RegisterTemplateEntry(name, size, purpose=None, purpose_description=None)¶
Bases:
objectOne named register declaration with size and purpose metadata.
An entry carries its name, size, and purpose metadata alone: whether it declares a per-block or a global register, and a quantum or a classical one, is determined by its structural location inside the containing
RegisterTemplate.- Variables:
name (str) – Register name. Matches the key under which the entry sits in its containing mapping, so a free-floating entry retains the name without the mapping context.
size (int) – Number of qubits or classical bits; at least 1.
purpose (RegisterPurpose | None) – Purpose classification of the declared register.
Noneleaves the purpose unset.purpose_description (str | None) – Free-form purpose description; consumers ignore it unless
purposeisRegisterPurpose.CUSTOM.