Template Function Pennylane::LightningGPU::Util::IMAG

Function Documentation

template<class CFP_t>
static inline constexpr auto Pennylane::LightningGPU::Util::IMAG() -> CFP_t

Return complex value 0+1i in the given precision.

Template Parameters

T – Floating point precision type. Accepts double and float.

Returns

constexpr std::complex<T>{0,1}