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}