state_compute_inner_product#

cuquantum.bindings.cudensitymat.state_compute_inner_product(
intptr_t handle,
intptr_t state_left,
intptr_t state_right,
intptr_t inner_product,
intptr_t stream,
)[source]#

Computes the inner product(s) between the left quantum state(s) and the right quantum state(s): < state(s)Left | state(s)Right >.

Parameters:
  • handle (intptr_t) – Library handle.

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

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

  • inner_product (intptr_t) – Pointer to the inner product(s) vector storage in the GPU-accessible RAM (same data type as the one used by the quantum states).

  • stream (intptr_t) – CUDA stream.