state_compute_norm#

cuquantum.bindings.cudensitymat.state_compute_norm(
intptr_t handle,
intptr_t state,
intptr_t norm,
intptr_t stream,
)[source]#

Computes the squared Frobenius norm(s) of the quantum state(s).

Parameters:
  • handle (intptr_t) – Library handle.

  • state (intptr_t) – Quantum state (or a batch of quantum states).

  • norm (intptr_t) – Pointer to the squared Frobenius norm(s) vector storage in the GPU-accessible RAM (float or double real data type).

  • stream (intptr_t) – CUDA stream.