Template Function Pennylane::Util::ConstMult(U, std::complex<T>)

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>