cuquantum.bindings.cudensitymat.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)[源代码]¶
- 查询本地组件张量中的模式数量(在多进程运行的当前进程上)。 - 参数
- handle (intptr_t) – 库句柄。 
- state (intptr_t) – 量子态(或一批量子态)。 
- state_component_local_id (int32_t) – 组件本地 ID(在当前并行进程上)。 
- state_component_global_id (intptr_t) – 组件全局 ID(跨所有并行进程)。 
- state_component_num_modes (intptr_t) – 组件张量阶数(模式数量)。 
- batch_mode_location (intptr_t) – 批处理模式的位置(如果批处理模式不存在,则为 -1)。