Expand description
Pass to convert a Pauli graph into canonical form.
Structsยง
- Canonical
Form Pass - Transform a Pauli graph into canonical form: non-Clifford gates are rewritten as Pauli
rotations, while Clifford gates are commuted towards the end of the circuit (or the start,
if the
forwardflag is false), merging into a tableau whenever they reach the boundary or an obstruction such as aBlackBox. The resulting graph may therefore contain multiple tableaux, interleaved with any obstructions and the non-Clifford ops (rotations, measures, resets, conditional operations) that are conjugated through and left in place.cliff_evalcontrols whether rotations with a Clifford angle are folded into the tableau (true) or kept as explicit rotations (false). When enabled, it also extracts Clifford corrections from unconditional rotations, leaving their angles strictly between -0.5 and 0.5 half turns.