Skip to content

Commit

Permalink
Rename DAGCircuit::substitue_node to py_substitute_node
Browse files Browse the repository at this point in the history
Co-authored-by: Raynel Sanchez <[email protected]>
  • Loading branch information
ElePT and raynelfss committed Oct 1, 2024
1 parent dda1de0 commit f3c6f62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/accelerate/src/unitary_synthesis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ fn py_run_main_loop(
.instruction
.bind(py)
.call_method1("replace_blocks", (new_blocks,))?;
dag.substitute_node(old_node.bind(py), &new_node, true, false)?;
dag.py_substitute_node(old_node.bind(py), &new_node, true, false)?;
}
let mut out_dag = dag.copy_empty_like(py, "alike")?;

Expand Down
2 changes: 1 addition & 1 deletion crates/circuit/src/dag_circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3363,7 +3363,7 @@ def _format(operand):
/// DAGCircuitError: If replacement operation was incompatible with
/// location of target node.
#[pyo3(signature = (node, op, inplace=false, propagate_condition=true))]
pub fn substitute_node(
pub fn py_substitute_node(
&mut self,
node: &Bound<PyAny>,
op: &Bound<PyAny>,
Expand Down

0 comments on commit f3c6f62

Please sign in to comment.