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

Method appendResult

runtime/common/SampleResult.cpp:82–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82void ExecutionResult::appendResult(std::string bitString, std::size_t count) {
83 auto [iter, inserted] = counts.emplace(std::move(bitString), count);
84 if (!inserted)
85 iter->second += count;
86
87 sequentialData.insert(sequentialData.end(), count, iter->first);
88}
89
90bool ExecutionResult::operator==(const ExecutionResult &result) const {
91 return registerName == result.registerName && counts == result.counts;

Callers 7

flushAnySamplingTasksMethod · 0.80
sampleMethod · 0.80
sampleMethod · 0.80
sampleMethod · 0.80
get_marginalMethod · 0.80

Calls 2

insertMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected