qir-alliance / qir-runner

QIR bytecode runner to assist with QIR development and validation
https://qir-alliance.github.io/qir-runner
MIT License
24 stars 4 forks source link

Fix phase for rotations by 0.0 #186

Closed swernli closed 3 months ago

swernli commented 3 months ago

This follows up on the fix from #173, which inadvertantly introduced a global phase on Rx/Ry rotations by 0.0 (and odd increments of Pi). This avoids the problem by checking the other part of the matrix to determine if the phase is required rather than applying it unconditionally.