undress_box¶
- samplomatic.utils.undress_box(box: BoxOp) BoxOp[source]¶
Return a box equivalent to
box, stripped of the single-qubit gates on the dressing side.This function removes all the single-qubit gates that can be pushed to the side indicated by its dressing (left or right) without encountering any other operation. If the input box contains no
Twirlannotation, an unmodified copy of it is returned.The returned box owns a copy of all the annotations present in the given
box.- Parameters:
box – The box to remove the single-qubit gates from.