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

Method size

runtime/common/SampleResult.cpp:317–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315}
316
317std::size_t
318sample_result::size(const std::string_view registerName) const noexcept {
319 auto [found, result] = try_retrieve_result(registerName.data());
320 if (found)
321 return result.counts.size();
322 else
323 return 0;
324}
325
326double sample_result::probability(std::string_view bitStr,
327 const std::string_view registerName) const {

Callers 7

serializeMethod · 0.45
deserializeMethod · 0.45
appendMethod · 0.45
get_marginalMethod · 0.45
sortByKeysFunction · 0.45
dumpMethod · 0.45
reorderMethod · 0.45

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected