Template Function Pennylane::Util::scaleVector(std::vector<std::complex<Data_t>, Alloc>&, Data_t)¶
Defined in File TestHelpers.hpp
Function Documentation¶
-
template<class Data_t, class Alloc>
void Pennylane::Util::scaleVector(std::vector<std::complex<Data_t>, Alloc> &data, Data_t scalar)¶ Multiplies every value in a dataset by a given complex scalar value.
- Template Parameters
Data_t – Precision of complex data type. Supports float and double data.
- Parameters
data – Data to be scaled.
scalar – Scalar value.
api/function_TestHelpers_8hpp_1a30bb46382426622a7d9312eeb440e043
Download Python script
Download Notebook
View on GitHub