Template Function Pennylane::LightningGPU::Util::complexToCu(ComplexT)

Function Documentation

template<class ComplexT = std::complex<double>>
static inline constexpr auto Pennylane::LightningGPU::Util::complexToCu(ComplexT a)

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

Template Parameters

ComplexT – std::complex types.

Parameters

a – A std::complex type.

Returns

cuComplex converted a