LocalTensorLayout#
-
class cuquantum.
tensornet. experimental. distributed. LocalTensorLayout( - rank: int,
- process_coords: tuple[int, ...],
- global_shape: tuple[int, ...],
- local_shape: tuple[int, ...],
- element_strides: tuple[int, ...],
- storage_size_elements: int,
- _process_grid_shape: tuple[int, ...],
- _block_sizes: tuple[int | None, ...],
- _first_process: tuple[int, ...],
Compact rank-local layout for a block-cyclic distribution.
Methods
- __init__(
- rank: int,
- process_coords: tuple[int, ...],
- global_shape: tuple[int, ...],
- local_shape: tuple[int, ...],
- element_strides: tuple[int, ...],
- storage_size_elements: int,
- _process_grid_shape: tuple[int, ...],
- _block_sizes: tuple[int | None, ...],
- _first_process: tuple[int, ...],
- global_to_local( ) tuple[int, ...] | None[source]#
Map a global coordinate to this rank’s local coordinate, if owned.
- local_to_global( ) tuple[int, ...][source]#
Map a local coordinate owned by this rank to a global coordinate.
Attributes
- owned_global_segments#
Per-mode owned global index segments as
(start, extent)pairs.Element ownership is the Cartesian product of these mode-wise segments. Cyclic modes may contribute multiple disjoint segments; slab and replicated modes contribute at most one.