state_get_component_num_modes#
-
cuquantum.
bindings. cudensitymat. state_get_component_num_modes( - 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 batch_mode_location,
Queries the number of modes in a local component tensor (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.
batch_mode_location (intptr_t) – Location of the batch mode (or -1 if the batch mode is absent).