From 21c4be33dc66202bd5906be7f7c92f9cfd66bda5 Mon Sep 17 00:00:00 2001 From: yao-cqc <75305462+yao-cqc@users.noreply.github.com> Date: Fri, 25 Feb 2022 13:39:32 +0000 Subject: [PATCH] Remove redundant line in Rebase.cpp (#253) --- tket/src/Transformations/Rebase.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tket/src/Transformations/Rebase.cpp b/tket/src/Transformations/Rebase.cpp index 8c75adc9d8..fedb1903f9 100644 --- a/tket/src/Transformations/Rebase.cpp +++ b/tket/src/Transformations/Rebase.cpp @@ -77,9 +77,7 @@ static bool standard_rebase( success = circ.substitute_all(cx_replacement, cx_op) | success; } BGL_FORALL_VERTICES(v, circ.dag, DAG) { - if (circ.n_in_edges_of_type(v, EdgeType::Quantum) != 1 || - circ.n_in_edges_of_type(v, EdgeType::Quantum) != 1) - continue; + if (circ.n_in_edges_of_type(v, EdgeType::Quantum) != 1) continue; Op_ptr op = circ.get_Op_ptr_from_Vertex(v); bool conditional = op->get_type() == OpType::Conditional; if (conditional) {