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>
api/function_Util_8hpp_1afcbccfd5957fd8c13ddf15c19050e59d
Download Python script
Download Notebook
View on GitHub