Template Function Pennylane::Util::INVSQRT2

Function Documentation

template<class T>
static inline constexpr auto Pennylane::Util::INVSQRT2() -> 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)