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

Function getInitialType

cudaq/lib/Optimizer/CodeGen/ConvertToQIRAPI.cpp:445–451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443
444template <typename OP>
445Type getInitialType(OP op, unsigned off) {
446 ArrayAttr initialArgs =
447 op->template getAttrOfType<ArrayAttr>(InitialArgTypesAttrName);
448 if (!initialArgs)
449 return {};
450 return cast<TypeAttr>(initialArgs[off]).getValue();
451}
452
453template <typename M>
454struct ApplyNoiseOpRewrite

Callers 7

matchAndRewriteMethod · 0.85
matchAndRewriteMethod · 0.85
matchAndRewriteMethod · 0.85
matchAndRewriteMethod · 0.85
matchAndRewriteMethod · 0.85
matchAndRewriteMethod · 0.85
matchAndRewriteMethod · 0.85

Calls 1

getValueMethod · 0.45

Tested by

no test coverage detected