Skip to content

Commit

Permalink
Update test_GreedyPauli.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
sjdilkes committed Nov 12, 2024
1 parent 489e91a commit 4b9a613
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions tket/test/src/test_GreedyPauli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -831,15 +831,18 @@ SCENARIO("Test GreedyPauliSimpMT") {
0.125)),
{0, 1, 2, 3, 4, 5});

Circuit d(circ);
d.decompose_boxes_recursively();
Circuit d0(circ);
d0.decompose_boxes_recursively();
Circuit d1(d0);
REQUIRE(Transforms::multi_thread_greedy_pauli_optimisation(
3, 0.7, 0.3, 500, 500, 0, true, 100)
.apply(d));
.apply(d0));

REQUIRE(Transforms::multi_thread_greedy_pauli_optimisation(
3, 0.7, 0.3, 500, 500, 0, false, 100)
.apply(d));
REQUIRE(test_unitary_comparison(circ, d, true));
.apply(d1));
REQUIRE(test_unitary_comparison(circ, d0, true));
REQUIRE(test_unitary_comparison(circ, d1, true));
}
}

Expand Down

0 comments on commit 4b9a613

Please sign in to comment.