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

Method initSubClass

python/cudaq/kernel/kernel_builder.py:1594–1595  ·  view source on GitHub ↗
(self, *args)

Source from the content-addressed store, hash-verified

1592 class_name = "cudaq_gen_kraus_channel_" + str(uuid.uuid4())
1593
1594 def initSubClass(self, *args):
1595 cudaq_runtime.KrausChannel.__init__(self, kraus_channel.get_ops())
1596
1597 new_class = type(class_name, (cudaq_runtime.KrausChannel,), {
1598 "__init__": initSubClass,

Callers

nothing calls this directly

Calls 2

get_opsMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected