Support reset operation in QASM importer #6704
Labels
area/interop
area/qasm
kind/feature-request
Describes new functionality
triage/accepted
there is consensus amongst maintainers that this is a real bug or a reasonable feature to add
Milestone
Is your feature request related to a use case or problem? Please describe.
We’ve encountered at least two cases where Mitiq users were unable to apply an error mitigation technique because their Qiskit circuits could not be converted to Cirq. Mitiq internally represents circuits as
cirq.Circuit
objects and relies on Cirq’s QASM importer for this conversion.While I recognize that this might not be directly the responsibility of Cirq developers, I wanted to raise this issue for consideration. The QASM importer (#1548) was developed before the reset operation was introduced (#1774), so it’s possible that the reset operation was unintentionally omitted from the importer. It would be helpful to understand whether this is an area Cirq plans to address or if we should explore alternative workarounds.
Describe the solution you’d like
When converting a QASM circuit containing a reset operation, the resulting
cirq.Circuit
should include an instance ofcirq.R
to represent the reset operation.[Optional] Additional context
Here’s a minimal reproducible example:
The text was updated successfully, but these errors were encountered: