Skip to content

Commit

Permalink
Fix comment formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bmhowe23 committed Sep 9, 2023
1 parent b46040f commit 1d9ad42
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions unittests/integration/noise_tester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ CUDAQ_TEST(NoiseTest, checkAmplitudeDamping) {
EXPECT_NEAR(counts.probability("0"), .25, .1);
EXPECT_NEAR(counts.probability("1"), .75, .1);

cudaq::unset_noise(); // clear for subsequent tests
cudaq::unset_noise(); // clear for subsequent tests
}

CUDAQ_TEST(NoiseTest, checkCNOT) {
Expand Down Expand Up @@ -156,7 +156,7 @@ CUDAQ_TEST(NoiseTest, checkCNOT) {
auto counts = cudaq::sample(10000, bell{});
counts.dump();
EXPECT_TRUE(counts.size() > 2);
cudaq::unset_noise(); // clear for subsequent tests
cudaq::unset_noise(); // clear for subsequent tests
}

CUDAQ_TEST(NoiseTest, checkExceptions) {
Expand All @@ -166,7 +166,7 @@ CUDAQ_TEST(NoiseTest, checkExceptions) {
EXPECT_ANY_THROW({
noise->add_channel<cudaq::types::x>({0, 1}, amplitudeDamping);
});
cudaq::unset_noise(); // clear for subsequent tests
cudaq::unset_noise(); // clear for subsequent tests
}

CUDAQ_TEST(NoiseTest, checkDepolType) {
Expand All @@ -178,7 +178,7 @@ CUDAQ_TEST(NoiseTest, checkDepolType) {
auto counts = cudaq::sample(xOp{});
counts.dump();
EXPECT_EQ(2, counts.size());
cudaq::unset_noise(); // clear for subsequent tests
cudaq::unset_noise(); // clear for subsequent tests
}

CUDAQ_TEST(NoiseTest, checkDepolTypeSimple) {
Expand All @@ -192,7 +192,7 @@ CUDAQ_TEST(NoiseTest, checkDepolTypeSimple) {
EXPECT_EQ(2, counts.size());
EXPECT_NEAR(counts.probability("0"), .50, .2);
EXPECT_NEAR(counts.probability("1"), .50, .2);
cudaq::unset_noise(); // clear for subsequent tests
cudaq::unset_noise(); // clear for subsequent tests
}

CUDAQ_TEST(NoiseTest, checkAmpDampType) {
Expand All @@ -205,7 +205,7 @@ CUDAQ_TEST(NoiseTest, checkAmpDampType) {
EXPECT_EQ(2, counts.size());
EXPECT_NEAR(counts.probability("0"), .25, .1);
EXPECT_NEAR(counts.probability("1"), .75, .1);
cudaq::unset_noise(); // clear for subsequent tests
cudaq::unset_noise(); // clear for subsequent tests
}

CUDAQ_TEST(NoiseTest, checkAmpDampTypeSimple) {
Expand All @@ -217,7 +217,7 @@ CUDAQ_TEST(NoiseTest, checkAmpDampTypeSimple) {
counts.dump();
EXPECT_EQ(1, counts.size());
EXPECT_NEAR(counts.probability("0"), 1., .1);
cudaq::unset_noise(); // clear for subsequent tests
cudaq::unset_noise(); // clear for subsequent tests
}

CUDAQ_TEST(NoiseTest, checkBitFlipType) {
Expand All @@ -230,7 +230,7 @@ CUDAQ_TEST(NoiseTest, checkBitFlipType) {
EXPECT_EQ(2, counts.size());
EXPECT_NEAR(counts.probability("0"), .1, .1);
EXPECT_NEAR(counts.probability("1"), .9, .1);
cudaq::unset_noise(); // clear for subsequent tests
cudaq::unset_noise(); // clear for subsequent tests
}

CUDAQ_TEST(NoiseTest, checkBitFlipTypeSimple) {
Expand All @@ -242,7 +242,7 @@ CUDAQ_TEST(NoiseTest, checkBitFlipTypeSimple) {
counts.dump();
EXPECT_EQ(1, counts.size());
EXPECT_NEAR(counts.probability("0"), 1., .1);
cudaq::unset_noise(); // clear for subsequent tests
cudaq::unset_noise(); // clear for subsequent tests
}

CUDAQ_TEST(NoiseTest, checkPhaseFlipType) {
Expand All @@ -263,7 +263,7 @@ CUDAQ_TEST(NoiseTest, checkPhaseFlipType) {
counts.dump();
EXPECT_EQ(1, counts.size());
EXPECT_NEAR(counts.probability("0"), 1., .1);
cudaq::unset_noise(); // clear for subsequent tests
cudaq::unset_noise(); // clear for subsequent tests
}

CUDAQ_TEST(NoiseTest, useNoiseFromOtherStack) {
Expand Down Expand Up @@ -291,7 +291,7 @@ CUDAQ_TEST(NoiseTest, useNoiseFromOtherStack) {
counts.dump();
EXPECT_EQ(1, counts.size());
EXPECT_NEAR(counts.probability("0"), 1., .1);
cudaq::unset_noise(); // clear for subsequent tests
cudaq::unset_noise(); // clear for subsequent tests
}

#endif

0 comments on commit 1d9ad42

Please sign in to comment.