You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When transpiling a dynamic circuit without any backend, it fails with The control-flow construct 'if_else' is not supported by the backend.
This seems to be the backendless version of Qiskit/qiskit-ibm-runtime#1253
How can we reproduce the issue?
fromqiskitimportQuantumCircuit, QuantumRegister, ClassicalRegister, transpileq=QuantumRegister(1)
c=ClassicalRegister(1)
circuit=QuantumCircuit(q, c)
circuit.h(q)
circuit.measure(q, c)
withcircuit.if_test((c, 1)):
circuit.x(q)
transpile(circuit)
TranspilerError: "The control-flow construct 'if_else' is not supported by the backend."
What should happen?
transpilation should work with dynamic circuits, just like the non-dynamic circuits:
fromqiskitimportQuantumCircuit, QuantumRegister, ClassicalRegister, transpileq=QuantumRegister(1)
c=ClassicalRegister(1)
circuit=QuantumCircuit(q, c)
circuit.h(q)
circuit.measure(q, c)
transpiled=transpile(circuit)
transpiled.draw('mpl')
Any suggestions?
No response
The text was updated successfully, but these errors were encountered:
Fwiw, the linked issue doesn't appear to be a problem with Terra (though could be related via #11877) - it seems like there are/were some backends in the IBM Runtime that weren't reporting their support for control-flow operations.
Environment
1.1.0.dev0+afdd1b7
3.11.7
What is happening?
When transpiling a dynamic circuit without any backend, it fails with
The control-flow construct 'if_else' is not supported by the backend.
This seems to be the backendless version of Qiskit/qiskit-ibm-runtime#1253
How can we reproduce the issue?
What should happen?
transpilation should work with dynamic circuits, just like the non-dynamic circuits:
Any suggestions?
No response
The text was updated successfully, but these errors were encountered: