qiskit/releasenotes/notes/0.15/transpiler_fails_with_condi...

13 lines
562 B
YAML

---
fixes:
- |
Previously when a :class:`~qiskit.circuit.QuantumCircuit` contained a
:class:`~qiskit.circuit.Gate` with a classical condition the transpiler
would sometimes fail when using ``optimization_level=3`` on
:func:`~qiskit.compiler.transpile` or
:func:`~qiskit.execute.execute` raising an ``UnboundLocalError``. This has
been fixed by updating the
:class:`~qiskit.transpiler.passes.ConsolidateBlocks` pass to account for
the classical condition.
Fixes `#4672 <https://github.com/Qiskit/qiskit-terra/issues/4672>`_.