qiskit/releasenotes/notes/1.3/raise-on-illegal-replace-bl...

8 lines
282 B
YAML

---
fixes:
- |
Previously, :meth:`.DAGCircuit.replace_block_with_op` allowed to place an
``n``-qubit operation onto a block of ``m`` qubits, leaving the DAG in an
invalid state. This behavior has been fixed, and the attempt will raise
a :class:`.DAGCircuitError`.