Enhance Rot
gates merging in merge_rotations
transform
#7010
Labels
enhancement ✨
New feature or request
Rot
gates merging in merge_rotations
transform
#7010
Feature details
We currently have,
But it should simplify this to an empty tape.
Implementation
Requires modifying how we check if the
cumulative_angles
are close to zero,As it doesn't catch the case where if the
Rot
cumulative angles are(X, 0, -X)
when it is equivalent to the identity operator.How important would you say this feature is?
1: Not important. Would be nice to have.
Additional information
It is important to note that
single_qubit_fusion
transform handles this case correctly.The text was updated successfully, but these errors were encountered: