Template Function Pennylane::LightningGPU::Util::innerProdC_CUDA

Function Documentation

template<class T = cuDoubleComplex, class DevTypeID = int>
inline auto Pennylane::LightningGPU::Util::innerProdC_CUDA(const T *v1, const T *v2, const int data_size, int dev_id, cudaStream_t stream_id, const CublasCaller &cublas) -> T

cuBLAS backed inner product for GPU data.

Template Parameters

T – Complex data-type. Accepts cuFloatComplex and cuDoubleComplex

Parameters
  • v1 – Device data pointer 1

  • v2 – Device data pointer 2

  • data_size – Length of device data.

  • dev_id – the device on which the function should be executed.

  • stream_id – the CUDA stream on which the operation should be executed.

  • cublas – the CublasCaller object that manages the cuBLAS handle.

Returns

T Inner-product result