Template Function Pennylane::LightningGPU::Util::cuToComplex

Function Documentation

template<class CFP_t = cuDoubleComplex>
static inline constexpr auto Pennylane::LightningGPU::Util::cuToComplex(CFP_t a) -> std::complex<decltype(a.x)>

Utility to convert cuComplex types to std::complex types.

Template Parameters

CFP_t – cuFloatComplex or cuDoubleComplex types.

Parameters

a – CUDA compatible complex type.

Returns

std::complex converted a