cuquantum.custatevec.sampler_get_squared_norm

cuquantum.custatevec.sampler_get_squared_norm(intptr_t handle, intptr_t sampler) double[source]

Get the squared norm of the statevetor.

Parameters
  • handle (intptr_t) – The library handle.

  • sampler (intptr_t) – The pointer address (as Python int) to the sampler descriptor.

Returns

The squared norm of the statevector.

Return type

double