-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
kind/feature-requestDescribes new functionalityDescribes new functionalitytriage/acceptedA consensus emerged that this bug report, feature request, or other action should be worked onA consensus emerged that this bug report, feature request, or other action should be worked on
Description
Is your feature request related to a use case or problem?
Other quantum SDKs output gphase gates as part of QASM output, and converting those to cirq is a critical step in mitiq's functionality. As of the 0.44.0 release of pennylane, gphase gates are added to qasm output (PennyLaneAI/pennylane#8809), which break mitiq functionality due to the inability to convert to cirq.
Describe the solution you would prefer
circuit_from_qasm supports qasm strings with gphase gates. E.g. to be able to run the following code:
from cirq.contrib.qasm_import import circuit_from_qasm
qasm = """
OPENQASM 2.0;
include "qelib1.inc";
qreg q[1];
x q[0];
gphase(pi/4) q[0];
"""
circuit = circuit_from_qasm(qasm)Currently I get
QasmException: Unknown gate "gphase" at line 7
How urgent is this for you? Is it blocking important work?
P1 – I need this no later than the next release
(this feels very demanding, but P2 was too lax. We will find workarounds if this is feature is not possible or desired.)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/feature-requestDescribes new functionalityDescribes new functionalitytriage/acceptedA consensus emerged that this bug report, feature request, or other action should be worked onA consensus emerged that this bug report, feature request, or other action should be worked on