qir-alliance / pyqir

PyQIR is a set of APIs for generating, parsing, and evaluating Quantum Intermediate Representation (QIR).
https://qir-alliance.github.io/pyqir
MIT License
54 stars 24 forks source link

Update attr fallback order to support legacy processing. #257

Closed idavis closed 9 months ago

idavis commented 9 months ago

Legacy processing updated required(Qubits|Results) but left the originals unchanged. This sets the order to look for the legacy values (which are the most correct until processing is updated) followed by the correct attr, and then the bugged attr values.