state_get_component_info#
-
cuquantum.
bindings. cudensitymat. state_get_component_info( - intptr_t handle,
- intptr_t state,
- int32_t state_component_local_id,
- intptr_t state_component_global_id,
- intptr_t state_component_num_modes,
- intptr_t state_component_mode_extents,
- intptr_t state_component_mode_offsets,
Queries information for a locally stored component tensor which represents either the full component or its slice (on the current process in multi-process runs).
- Parameters:
handle (intptr_t) – Library handle.
state (intptr_t) – Quantum state (or a batch of quantum states).
state_component_local_id (int32_t) – Component local id (on the current parallel process).
state_component_global_id (intptr_t) – Component global id (across all parallel processes).
state_component_num_modes (intptr_t) – Number of modes in the queried component tensor.
state_component_mode_extents (intptr_t) – Component tensor mode extents (the size of the array must be sufficient, see
cudensitymatStateGetComponentNumModes
).state_component_mode_offsets (intptr_t) – Component tensor mode offsets defining the locally stored slice (the size of the array must be sufficient, see
cudensitymatStateGetComponentNumModes
).
See also