cuquantum.custatevec.sampler_apply_sub_sv_offset

cuquantum.custatevec.sampler_apply_sub_sv_offset(intptr_t handle, intptr_t sampler, int32_t sub_sv_ord, uint32_t n_sub_svs, double offset, double norm)[源代码]

将部分范数和范数应用于状态向量到采样器描述符。

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

  • sampler (intptr_t) – 采样器描述符。

  • sub_sv_ord (int32_t) – 子状态向量序号。

  • n_sub_svs (uint32_t) – 子状态向量的数量。

  • offset (double) – 子状态向量的累积和偏移量。

  • norm (double) – 所有子向量的范数。