Template Function Pennylane::Util::HALF
Function Documentation
-
template<class T>
static inline constexpr auto Pennylane::Util::HALF() -> std::complex<T>
Return complex value 0.5+0i in the given precision.
- Template Parameters
T – Floating point precision type. Accepts double
and float
.
- Returns
constexpr std::complex<T>{0.5,0}
api/function_Util_8hpp_1a72715e40cbfb04ee5253b3cd46d0a10d