CQCL / pytket-qir

Public repo for the pytket-qir package
Apache License 2.0
6 stars 1 forks source link

add a special case handling for eq predicate #52

Closed cqc-melf closed 1 year ago

cqc-melf commented 1 year ago

This PR is adding a special case handling for all Rangepredicates were the two arguments are identical. When the lower and the upper bound of the predicate are identical the op should be translated to one pyqir.IntPredicate.EQ and not to three instructions like it is done for all other cases.