rigetti / quil-rs

Quil Parser & Program Builder
https://rigetti.github.io/quil-rs/
Apache License 2.0
20 stars 9 forks source link

CalibrationSet equality should be sensitive to ordering. #356

Closed MarquessV closed 6 months ago

MarquessV commented 6 months ago

352 made CalibrationSet equality insensitive to ordering. Per Kalan's follow-up, calibration order should be taken into account, as ordering determines precedence when multiple calibrations match the same instruction. The example:

DEFCAL A(%x, pi):
   ...

DEFCAL A(pi, %x):
   ...

A(pi, pi) # expands into one or the other based on ordering