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

Class Initializer

python/cudaq/kernel/utils.py:91–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89
90
91class Initializer:
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 1

utils.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected