tqec.compile.substitute.SubstitutionRule

class SubstitutionRule(*args, **kwargs)[source]

Protocol for applying the substitution to the two blocks connected by a pipe, based on the SubstitutionKey.

Users can define their own rules for the substitution by implementing this protocol and register the rules during compilation.

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)