statements
device_fn
device_fn(
move_fn: ir.Method[Param, None],
x_tones: list[int] | ilist.IList[int, Any],
y_tones: list[int] | ilist.IList[int, Any],
) -> DeviceFunction[Param]
Create a device function from a move function.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
move_fn | Callable | The move function to be wrapped. | required |
x_tones | list[int]| | The x tones to be used in the device function. | required |
y_tones | list[int] | IList[int, Any] | The y tones to be used in the device function. | required |
Source code in src/bloqade/shuttle/dialects/schedule/_interface.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
|
reverse
reverse(
device_fn: DeviceFunction[Param],
) -> ReverseDeviceFunction[Param]
Create a reverse device function from a device function.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
device_fn | DeviceFunction | The device function to be reversed. | required |
Source code in src/bloqade/shuttle/dialects/schedule/_interface.py
36 37 38 39 40 41 42 43 44 45 46 47 |
|