Skip to content

Commit

Permalink
Replace implicit wire swaps in optimised conditional circuits
Browse files Browse the repository at this point in the history
  • Loading branch information
yao-cqc committed Oct 22, 2024
1 parent 65ee40b commit 38d3c6f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tket/src/Transformations/GreedyPauliOptimisation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,8 @@ static void consume_nodes(
}
greedy_pauli_optimisation(discount_rate, depth_weight)
.apply(cond_circ);
// replace implicit wire swaps
cond_circ.replace_all_implicit_wire_swaps();
Op_ptr cond = std::make_shared<Conditional>(
std::make_shared<CircBox>(cond_circ), (unsigned)cond_bits.size(),
cond_value);
Expand Down

0 comments on commit 38d3c6f

Please sign in to comment.