undress_box
samplomatic.utils.undress_box(box: BoxOp) → BoxOp
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 Twirl annotation, 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.
이 페이지가 도움이 되었습니까?
GitHub에서 버그, 오타를 보고하거나 컨텐츠를 요청하십시오.