From 1d9ad428414b9525d6b59ae2be6765dc900aac21 Mon Sep 17 00:00:00 2001 From: Ben Howe Date: Sat, 9 Sep 2023 13:43:59 +0000 Subject: [PATCH] Fix comment formatting --- unittests/integration/noise_tester.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/unittests/integration/noise_tester.cpp b/unittests/integration/noise_tester.cpp index 4d47db6bca..fa1d607dcb 100644 --- a/unittests/integration/noise_tester.cpp +++ b/unittests/integration/noise_tester.cpp @@ -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) { @@ -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) { @@ -166,7 +166,7 @@ CUDAQ_TEST(NoiseTest, checkExceptions) { EXPECT_ANY_THROW({ noise->add_channel({0, 1}, amplitudeDamping); }); - cudaq::unset_noise(); // clear for subsequent tests + cudaq::unset_noise(); // clear for subsequent tests } CUDAQ_TEST(NoiseTest, checkDepolType) { @@ -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) { @@ -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) { @@ -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) { @@ -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) { @@ -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) { @@ -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) { @@ -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) { @@ -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