rigetti / pyquil

A Python library for quantum programming using Quil.
http://docs.rigetti.com
Apache License 2.0
1.39k stars 341 forks source link

`ResetQubit` always gets returned as `Reset` from the compatibility layer. #1726

Closed MarquessV closed 5 months ago

MarquessV commented 5 months ago

After adding a ResetQubit to a Program, the same instruction will always be converted to a Reset by the compatibility layer. This can be an unexpected change of types. The compatibility layer should instead return a ResetQubit if the qubit property is set on the instruction.