Skip to content

Commit

Permalink
Rename filter_labelled_op to filter_labeled_op
Browse files Browse the repository at this point in the history
  • Loading branch information
mtreinish committed Sep 4, 2024
1 parent 5e00d3c commit 1a99b80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/accelerate/src/filter_op_nodes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub fn py_filter_op_nodes(
/// dag (DAGCircuit): The dag circuit to filter the ops from
/// label (str): The label to filter nodes on
#[pyfunction]
pub fn filter_labelled_op(dag: &mut DAGCircuit, label: String) {
pub fn filter_labeled_op(dag: &mut DAGCircuit, label: String) {
let predicate = |node: &PackedInstruction| -> bool {
match node.label() {
Some(inst_label) => inst_label != label,
Expand All @@ -58,6 +58,6 @@ pub fn filter_labelled_op(dag: &mut DAGCircuit, label: String) {

pub fn filter_op_nodes_mod(m: &Bound<PyModule>) -> PyResult<()> {
m.add_wrapped(wrap_pyfunction!(py_filter_op_nodes))?;
m.add_wrapped(wrap_pyfunction!(filter_labelled_op))?;
m.add_wrapped(wrap_pyfunction!(filter_labeled_op))?;
Ok(())
}

0 comments on commit 1a99b80

Please sign in to comment.