Template Function Pennylane::Util::ConstMult(std::complex<U>, std::complex<T>)¶
Defined in File Util.hpp
Function Documentation¶
-
template<class T, class U = T>
static inline constexpr auto Pennylane::Util::ConstMult(std::complex<U> a, std::complex<T> b) -> std::complex<T>¶ Compile-time scalar complex times complex.
- Template Parameters
U – Precision of complex value
a
.T – Precision of complex value
b
and result.
- Parameters
a – Complex scalar value.
b – Complex scalar value.
- Returns
constexpr std::complex<T>