MCPcopy Create free account
hub / github.com/NVIDIA/cuda-quantum / CUDAQ_TEST

Function CUDAQ_TEST

unittests/common/MeasureCountsTester.cpp:14–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12using namespace cudaq;
13
14CUDAQ_TEST(sample_resultTester, checkConstruction) {
15 ExecutionResult r{CountsDictionary{{"0", 400}, {"1", 600}}};
16 cudaq::sample_result mc(r);
17 EXPECT_EQ(2, mc.size());
18}
19
20CUDAQ_TEST(MeasureCountsTester, checkProbability) {
21 ExecutionResult r{CountsDictionary{{"0", 400}, {"1", 600}}};

Callers

nothing calls this directly

Calls 7

probabilityMethod · 0.80
sizeMethod · 0.45
countMethod · 0.45
expectationMethod · 0.45
serializeMethod · 0.45
deserializeMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected