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

Function countOps

unittests/Optimizer/DecompositionPatternsTest.cpp:258–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256
257template <typename OpTy>
258std::size_t countOps(ModuleOp module) {
259 std::size_t count = 0;
260 module.walk([&](OpTy op) { ++count; });
261 return count;
262}
263
264inline std::pair<std::string, size_t>
265splitGateAndControls(llvm::StringRef gate) {

Callers

nothing calls this directly

Calls 1

walkMethod · 0.80

Tested by

no test coverage detected