tqec.compile.substitute

Functions

default_substitution_rule(key, block1, block2)

The default substitution rule for the block graph compilation.

Classes

SubstitutionKey(spec1, spec2, pipe_type)

The key for selecting the substitution rule.

SubstitutionRule(*args, **kwargs)

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