Template Function Pennylane::LightningGPU::Util::ConstSum

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>