Template Function Pennylane::Util::ConstMult(U, std::complex<T>)¶
Defined in File Util.hpp
Function Documentation¶
-
template<class T, class U = T>
static inline constexpr auto Pennylane::Util::ConstMult(U a, std::complex<T> b) -> std::complex<T>¶ Compile-time scalar real times complex number.
- Template Parameters
U – Precision of real value
a
.T – Precision of complex value
b
and result.
- Parameters
a – Real scalar value.
b – Complex scalar value.
- Returns
constexpr std::complex<T>
api/function_Util_8hpp_1aefafd68b7fdea3bcaed2d4b29063e814
Download Python script
Download Notebook
View on GitHub