- cuquantum.custatevec.sampler_apply_sub_sv_offset(intptr_t handle, intptr_t sampler, int32_t sub_sv_id, uint32_t n_sub_sv, double offset, double sq_norm)[source]¶
Apply the partial norm and norm to the statevector.
handle (intptr_t) – The library handle.
sampler (intptr_t) – The pointer address (as Python
int) to the sampler descriptor.
sub_sv_id (int32_t) – The ordinal of the sub-statevector.
n_sub_sv (uint32_t) – The number of sub-statevectors.
offset (double) – The cumulative sum for the sub-statevector.
sq_norm (double) – The squared norm for all sub-statevectors.