Template Function Pennylane::Util::NEGONE

Function Documentation

template<class T>
static inline constexpr auto Pennylane::Util::NEGONE() -> std::complex<T>

Return complex value -1+0i in the given precision.

Template Parameters

T – Floating point precision type. Accepts double and float.

Returns

constexpr std::complex<T>{-1,0}