Template Function Pennylane::LightningGPU::Util::INVSQRT2

Function Documentation

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

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

Template Parameters

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

Returns

constexpr T 1/sqrt(2)