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

Method cachedCompiledModule

python/cudaq/kernel/kernel_builder.py:1716–1721  ·  view source on GitHub ↗

Return the kernel's CompiledModule cache slot, creating an empty one on first access.

(self)

Source from the content-addressed store, hash-verified

1714 del self._compiled_module
1715
1716 def cachedCompiledModule(self):
1717 """Return the kernel's CompiledModule cache slot, creating an empty
1718 one on first access."""
1719 if not hasattr(self, '_compiled_module'):
1720 self._compiled_module = cudaq_runtime.CompiledModule()
1721 return self._compiled_module
1722
1723 @trace.traced
1724 def compile(self):

Callers 6

__call__Method · 0.95
runFunction · 0.45
get_unitaryFunction · 0.45
_detail_drawFunction · 0.45
get_stateFunction · 0.45
sampleFunction · 0.45

Calls 1

CompiledModuleMethod · 0.80

Tested by

no test coverage detected