Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/cuda-quantum
/ SlotsClass
Class
SlotsClass
python/tests/kernel/test_run_kernel.py:1218–1220 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1216
1217
@dataclass(slots=True)
1218
class
SlotsClass:
1219
x: int
1220
y: int
1221
1222
@cudaq.kernel
1223
def
kernel_with_slots_dataclass() -> SlotsClass:
Callers
3
kernel_with_slots_dataclass
Function · 0.85
test_dataclass_slots_success
Function · 0.85
test_dataclasses_dot_dataclass_slots_success
Function · 0.85
Calls
no outgoing calls
Tested by
3
kernel_with_slots_dataclass
Function · 0.68
test_dataclass_slots_success
Function · 0.68
test_dataclasses_dot_dataclass_slots_success
Function · 0.68