From 5a4a4176729ee02c9e7d6171334f65b268aaa695 Mon Sep 17 00:00:00 2001 From: Aniket Patil <128228805+AniketP04@users.noreply.github.com> Date: Sat, 21 Oct 2023 13:12:21 +0530 Subject: [PATCH] Update dagcircuit.py --- qiskit/dagcircuit/dagcircuit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qiskit/dagcircuit/dagcircuit.py b/qiskit/dagcircuit/dagcircuit.py index 4233144c86fe..891fcf6a76c2 100644 --- a/qiskit/dagcircuit/dagcircuit.py +++ b/qiskit/dagcircuit/dagcircuit.py @@ -821,7 +821,7 @@ def compose(self, other, qubits=None, clbits=None, front=False, inplace=True): for gate, cals in other.calibrations.items(): dag._calibrations[gate].update(cals) - # Ensure that the error raised here is a `DAGCircuitError` for backwards compatiblity. + # Ensure that the error raised here is a `DAGCircuitError` for backwards compatibility. def _reject_new_register(reg): raise DAGCircuitError(f"No register with '{reg.bits}' to map this expression onto.") @@ -1204,7 +1204,7 @@ def substitute_node_with_dag(self, node, input_dag, wires=None, propagate_condit the operation within ``node`` is propagated to each node in the ``input_dag``. If ``False``, then the ``input_dag`` is assumed to faithfully implement suitable conditional logic already. This is ignored for :class:`.ControlFlowOp`\\ s (i.e. - treated as if it is ``False``); replacements of those must already fulfil the same + treated as if it is ``False``); replacements of those must already fulfill the same conditional logic or this function would be close to useless for them. Returns: