cuquantum.bindings.cudensitymat.state_compute_inner_product¶
- cuquantum.bindings.cudensitymat.state_compute_inner_product(intptr_t handle, intptr_t state_left, intptr_t state_right, intptr_t inner_product, intptr_t stream)[源代码]¶
计算左量子态和右量子态之间的内积:< state(s)Left | state(s)Right >。
- 参数
handle (intptr_t) – 库句柄。
state_left (intptr_t) – 左量子态(或一批量子态)。
state_right (intptr_t) – 右量子态(或一批量子态)。
inner_product (intptr_t) – 指向 GPU 可访问 RAM 中内积向量存储的指针(与量子态使用的数据类型相同)。
stream (intptr_t) – CUDA 流。