state_compute_scaling#

cuquantum.bindings.cudensitymat.state_compute_scaling(
intptr_t handle,
intptr_t state,
intptr_t scaling_factors,
intptr_t stream,
)[source]#

Multiplies the quantum state(s) by a scalar factor(s).

Parameters:
  • handle (intptr_t) – Library handle.

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

  • scaling_factors (intptr_t) – Array of scaling factor(s) of dimension equal to the batch size in the GPU-accessible RAM (same data type as used by the quantum state).

  • stream (intptr_t) – CUDA stream.