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

Function runCase

targettests/execution/dem_from_kernel_emulate.cpp:85–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83
84template <typename Kernel>
85static void runCase(const char *label, Kernel &&kernel) {
86 try {
87 std::string demText =
88 cudaq::dem_from_kernel(std::forward<Kernel>(kernel), &g_emptyNoise);
89 std::printf("%s detectors=%zu observables=%zu\n", label,
90 maxIndexAfter(demText, 'D'), maxIndexAfter(demText, 'L'));
91 } catch (const std::exception &e) {
92 std::printf("%s THREW: %s\n", label, e.what());
93 }
94}
95
96int main() {
97 runCase("SINGLE", singleDetector{});

Callers 1

mainFunction · 0.70

Calls 2

maxIndexAfterFunction · 0.70
dem_from_kernelFunction · 0.50

Tested by

no test coverage detected