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

Function runTrivial

targettests/execution/dem_from_kernel.cpp:238–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238static void runTrivial() {
239 try {
240 std::string demText = cudaq::dem_from_kernel(trivialKernel{});
241 std::printf("TRIVIAL errors=%zu detectors=%zu observables=%zu\n",
242 countOccurrences(demText, "error("),
243 maxIndexAfter(demText, 'D'), maxIndexAfter(demText, 'L'));
244 } catch (const std::exception &e) {
245 std::printf("TRIVIAL THREW: %s\n", e.what());
246 }
247}
248
249template <typename Kernel, typename... Args>
250static void runNoNoiseCase(const char *label, Kernel &&kernel, Args &&...args) {

Callers 1

mainFunction · 0.85

Calls 3

countOccurrencesFunction · 0.70
maxIndexAfterFunction · 0.70
dem_from_kernelFunction · 0.50

Tested by

no test coverage detected