cuquantum.bindings.cudensitymat.state_compute_accumulation

cuquantum.bindings.cudensitymat.state_compute_accumulation(intptr_t handle, intptr_t state_in, intptr_t state_out, intptr_t scaling_factors, intptr_t stream)[源代码]

计算量子态(或一批量子态)到另一个形状兼容的量子态(或一批量子态)的累积。

参数
  • handle (intptr_t) – 库句柄。

  • state_in (intptr_t) – 累积的量子态(或一批量子态)。

  • state_out (intptr_t) – 正在累积的量子态(或一批量子态)。

  • scaling_factors (intptr_t) – 维度等于 GPU 可访问 RAM 中批大小的缩放因子数组(与状态使用的数据类型相同)。

  • stream (intptr_t) – CUDA 流。