Regression in PyQuil CPHASE00
conversions
#6714
Labels
kind/bug-report
Something doesn't seem to work.
triage/accepted
there is consensus amongst maintainers that this is a real bug or a reasonable feature to add
Description of the issue
When converting a PyQuil program to a Cirq circuit using the
cirq_rigetti.circuit_from_quil
function the output differs betweencirq
versions 1.4.1 and 1.3.0. Specifically, incirq==1.4.1
, theCPHASE00
gate is converted into a customUSERGATE
gate with complex matrix elements, while incirq==1.3.0
, the gate is correctly recognized and output asCPHASE00
.How to reproduce the issue
Create a file
pyquil_conv.py
with the following script.Run the script with
cirq==1.4.1
Run the script with
cirq==1.3.0
Related
When adding support for pyquil v4 a similar example was found in #6281 (comment).
The text was updated successfully, but these errors were encountered: