samplomatic.utils

Utility functions.

Functions

find_unique_box_instructions(instructions[, ...])

Return instructions that contains unique boxes.

get_annotation(box, annotation_type)

Return a box's first annotation of the given type.

undress_box(box)

Return a box equivalent to box, stripped of the single-qubit gates on the dressing side.

Classes

BoxKey(instruction)

An immutable snapshot of an instruction that owns a box, suitable for comparison and hashing.