Template Function Pennylane::LightningGPU::Util::ConstSum¶
Defined in File cuda_helpers.hpp
Function Documentation¶
-
template<class CFP_t_T, class CFP_t_U = CFP_t_T>
static inline constexpr auto Pennylane::LightningGPU::Util::ConstSum(CFP_t_T a, CFP_t_U b) -> CFP_t_T¶ Compile-time scalar complex summation.
- Template Parameters
T – Precision of complex value
a
and result.U – Precision of complex value
b
.
- Parameters
a – Complex scalar value.
b – Complex scalar value.
- Returns
constexpr std::complex<T>
api/function_cuda__helpers_8hpp_1abbaa4d2187beff579939baae368b5db5
Download Python script
Download Notebook
View on GitHub