Template Function Pennylane::LightningGPU::Util::cuToComplex¶
Defined in File cuda_helpers.hpp
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
api/function_cuda__helpers_8hpp_1a1069da1d7a891852c6f2558952bcddcc
Download Python script
Download Notebook
View on GitHub