We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnitaryOverlap circuit breaks when input circuits contain barriers
from qiskit.circuit import QuantumCircuit from qiskit.circuit.library import UnitaryOverlap qc1 = QuantumCircuit(2) qc1.ry(np.pi/2, qc1.qubits) qc1.cx(0, 1) qc1.barrier() qc1.rz(np.pi/2, qc1.qubits) # Create the overlap circuit overlap = UnitaryOverlap(qc1, qc1)
results in: CircuitError: 'One or more instructions cannot be converted to a gate. "barrier" is not a gate instruction
CircuitError: 'One or more instructions cannot be converted to a gate. "barrier" is not a gate instruction
UnitaryOverlap should be able to handle circuits with barriers as if they weren't there.
No response
The text was updated successfully, but these errors were encountered:
Yeah ok, this one is probably on me for letting it through review: #10734 (review).
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Environment
What is happening?
UnitaryOverlap circuit breaks when input circuits contain barriers
How can we reproduce the issue?
results in:
CircuitError: 'One or more instructions cannot be converted to a gate. "barrier" is not a gate instruction
What should happen?
UnitaryOverlap should be able to handle circuits with barriers as if they weren't there.
Any suggestions?
No response
The text was updated successfully, but these errors were encountered: