rigetti / quil-rs

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

Program equality is sensitive to calibration ordering #351

Closed MarquessV closed 5 months ago

MarquessV commented 5 months ago

When checking if two programs are equal, calibrations should be compared as orderless sets. Calibrations are global state, so the order of them should not matter.

quil-rs current Program equality logic respects the order of calibrations (and possibly waveforms), which is incorrect.