samplomatic.utils¶
Utility functions.
Functions¶
|
Return a decorator to indicate an argument has been deprecated in some way. |
|
Return a new circuit with the given annotations appended to every box. |
|
Return a new circuit keeping only annotations of the given type(s) on each box. |
|
Return instructions that contains unique boxes. |
|
Return a box's first annotation of the given type(s). |
|
Return a new circuit where each box's annotations are replaced by |
|
Return a new circuit with annotations replaced according to a callable. |
|
Return a new circuit with all annotations removed from every box. |
|
Return a circuit with all box operations inlined. |
|
Return a box equivalent to |
|
Return a decorator to validate function arguments against literal type annotations. |
Classes¶
|
An immutable snapshot of an instruction that owns a box, suitable for comparison and hashing. |
|
An immutable and hashable dictionary-like mapping. |