Template Function Pennylane::LightningGPU::Util::INVSQRT2IMAG

Function Documentation

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

Returns inverse sqrt(2)*i as a compile-time constant.

Template Parameters

T – Precision of result. double, float are accepted values.

Returns

constexpr T 1/sqrt(2)i