Template Function Pennylane::LightningGPU::Util::ConstMultSC

Function Documentation

template<class Real_t, class CFP_t = cuDoubleComplex>
static inline constexpr auto Pennylane::LightningGPU::Util::ConstMultSC(Real_t a, CFP_t b) -> CFP_t

Compile-time scalar real times complex number.

Template Parameters
  • U – Precision of real value a.

  • T – Precision of complex value b and result.

Parameters
  • a – Real scalar value.

  • b – Complex scalar value.

Returns

constexpr std::complex<T>