cuquantum.bindings.cudensitymat.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)[源代码]¶
查询本地存储的组件张量的信息,该张量表示完整组件或其切片(在多进程运行中的当前进程上)。
- 参数
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) – 组件张量阶数(模数)。
state_component_mode_extents (intptr_t) – 组件张量模数范围(数组的大小必须足够,请参阅
cudensitymatStateGetComponentNumModes
)。state_component_mode_offsets (intptr_t) – 组件张量模数偏移量(数组的大小必须足够,请参阅
cudensitymatStateGetComponentNumModes
)。