Skip to content

Commit

Permalink
make format
Browse files Browse the repository at this point in the history
  • Loading branch information
multiphaseCFD committed Oct 17, 2024
1 parent ad6a179 commit c4b6d85
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,13 @@ TEMPLATE_PRODUCT_TEST_CASE("StateVectorCudaManaged::applyOperations",
state_vector.applyOperations({"PauliX", "PauliY"}, {{0}, {1}},
{false}),
LightningException, "must all be equal"); // invalid inverse
PL_REQUIRE_THROWS_MATCHES(state_vector.applyOperation(
"PauliX", {}, std::vector<bool>{false},
std::vector<std::size_t>{1}, false, {0.0},
std::vector<ComplexT>{}),
LightningException,
"`ctrls` and `ctrls_values` must have the "
"same size."); // invalid controlled_wires
PL_REQUIRE_THROWS_MATCHES(
state_vector.applyOperation("PauliX", {}, std::vector<bool>{false},
std::vector<std::size_t>{1}, false,
{0.0}, std::vector<ComplexT>{}),
LightningException,
"`ctrls` and `ctrls_values` must have the "
"same size."); // invalid controlled_wires
}

SECTION("Test invalid arguments with parameters") {
Expand Down

0 comments on commit c4b6d85

Please sign in to comment.