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

Class DecoratorCapture

python/cudaq/kernel/kernel_decorator.py:82–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80
81
82class DecoratorCapture:
83
84 def __init__(self, decorator):
85 self.decorator = decorator
86 self.resolved = decorator.resolve_captured_arguments()
87
88 def __str__(self):
89 self.decorator.name + " -> " + str(self.resolved)
90
91 def __repr__(self):
92 "name: " + self.decorator.name + ", resolved: " + str(self.resolved)
93
94
95class LinkedKernelCapture:

Callers 2

apply_callMethod · 0.85
process_argumentMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected