Template Function Pennylane::Util::ConstMult(U, std::complex<T>)¶
Defined in File Util.hpp
Function Documentation¶
- template<class T, class U = T> static inline requires std::integral< U > constexpr std::floating_point< U > 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_1a7a4a2fd0693c1ca5ca8942319de0bf7f
Download Python script
Download Notebook
View on GitHub