Template Function Pennylane::LightningGPU::Util::SQRT2

Function Documentation

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

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

Template Parameters

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

Returns

constexpr T sqrt(2)