Skip to main content
IBM Quantum Platform
Informations sur la traduction

D'autres traductions de cette page seront bientôt disponibles.

undress_box

samplomatic.utils.undress_box(box: BoxOp) → BoxOp

GitHub

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.

Cette page a-t-elle été utile ?
Signaler un bogue, une coquille ou proposer du contenu sur GitHub.