Template Function Pennylane::LightningGPU::Util::complexToCu(const std::vector<ComplexT>&)¶
Defined in File cuda_helpers.hpp
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
api/function_cuda__helpers_8hpp_1ab5558e44d0042f557bb01386b9b9cd4d
Download Python script
Download Notebook
View on GitHub