Template Function Pennylane::LightningGPU::Util::complexToCu(const std::vector<ComplexT>&)

Function Documentation

template<class ComplexT = std::complex<double>>
inline auto Pennylane::LightningGPU::Util::complexToCu(const std::vector<ComplexT> &vec)

Utility to convert a vector of std::complex types to cuComplex types.

Template Parameters

ComplexT – std::complex types.

Parameters

vec – A std::vector<std::complex> type.

Returns

a vector of cuComplex converted vec