Skip to content

Commit

Permalink
Remove redundant line in Rebase.cpp (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
yao-cqc authored Feb 25, 2022
1 parent 021c6f0 commit 21c4be3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tket/src/Transformations/Rebase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 21c4be3

Please sign in to comment.