qecx.RegisterDecl

class qecx.RegisterDecl(scope)

Bases: object

Base class for register declarations attached to operation variant bodies.

A declaration describes a register requirement by scope. Whether a declaration is quantum or classical is determined by which mapping on the owning variant body carries it, not by the declaration itself.

Variables:

scope (RegisterScope) – Lifetime / location classification of the declared register.