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

Method getTarget

python/utils/LinkedLibraryHolder.cpp:396–404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

394}
395
396RuntimeTarget LinkedLibraryHolder::getTarget(const std::string &name) {
397 if (!targetInitialized)
398 resetTarget();
399 auto iter = targets.find(name);
400 if (iter == targets.end())
401 throw std::runtime_error("Invalid target name (" + name + ").");
402
403 return iter->second;
404}
405
406RuntimeTarget LinkedLibraryHolder::getTarget() {
407 if (!targetInitialized)

Callers 15

getTransportLayerMethod · 0.80
createStateFromPyBufferFunction · 0.80
bindPyStateMethod · 0.80
matchAndRewriteMethod · 0.80
matchAndRewriteMethod · 0.80
matchAndRewriteMethod · 0.80
matchAndRewriteMethod · 0.80
matchAndRewriteMethod · 0.80
matchAndRewriteMethod · 0.80
matchAndRewriteMethod · 0.80
matchAndRewriteMethod · 0.80
matchAndRewriteMethod · 0.80

Calls 1

endMethod · 0.45

Tested by

no test coverage detected