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

Method initialize

python/cudaq/kernel/utils.py:94–98  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

92 # We need static initializers to run in the CAPI `ExecutionEngine`, so here
93 # we run a simple JIT compile at global scope.
94 def initialize(self):
95 self.context = getMLIRContext()
96 self.module = Module.parse("llvm.func @none() { llvm.return }",
97 context=self.context)
98 ExecutionEngine(self.module)
99
100
101try:

Callers 10

utils.pyFile · 0.45
testMPIFunction · 0.45
setup_mpiFunction · 0.45
mpi_init_finalizeFunction · 0.45
dynamics.pyFile · 0.45
executeMethod · 0.45

Calls 3

getMLIRContextFunction · 0.85
ExecutionEngineClass · 0.50
parseMethod · 0.45

Tested by 3

testMPIFunction · 0.36
setup_mpiFunction · 0.36
mpi_init_finalizeFunction · 0.36