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 11, 2024
1 parent a732a69 commit 5ac12bc
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tket/test/src/test_GreedyPauli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -751,18 +751,18 @@ SCENARIO("Test GreedyPauliSimp pass construction") {
REQUIRE(test_unitary_comparison(c, cu.get_circ_ref(), true));
}
GIVEN("Preserving a circuit with only_reduce set to true.") {
// Circuit c(10);
// c.add_op<unsigned>(OpType::CnX, {0, 1, 2, 3, 4, 5, 6, 7, 8, 9});
// c.add_op<unsigned>(OpType::CnX, {2, 3, 4, 5});
// c.add_op<unsigned>(OpType::CnX, {6, 7, 8, 9});
Circuit c(4);
c.add_op<unsigned>(OpType::CX, {0, 1});
c.add_op<unsigned>(OpType::CX, {1, 2});
c.add_op<unsigned>(OpType::CX, {2, 3});
Circuit c(10);
c.add_op<unsigned>(OpType::CnX, {0, 1, 2, 3, 4, 5, 6, 7, 8, 9});
c.add_op<unsigned>(OpType::CnX, {2, 3, 4, 5});
c.add_op<unsigned>(OpType::CnX, {6, 7, 8, 9});
// Circuit c(4);
// c.add_op<unsigned>(OpType::CX, {0, 1});
// c.add_op<unsigned>(OpType::CX, {1, 2});
// c.add_op<unsigned>(OpType::CX, {2, 3});
CompilationUnit cu(c);
// REQUIRE(DecomposeArbitrarilyControlledGates()->apply(cu));
REQUIRE(DecomposeArbitrarilyControlledGates()->apply(cu));
REQUIRE(!gen_greedy_pauli_simp(0.3, 0.5, 500, 500, 0, false, 100, true)
.apply->(cu));
->apply(cu));
}
}
} // namespace test_GreedyPauliSimp
Expand Down

0 comments on commit 5ac12bc

Please sign in to comment.