Template Function Pennylane::Util::squaredNorm(const T *, size_t)¶
Defined in File Util.hpp
Function Documentation¶
-
template<class T>
auto Pennylane::Util::squaredNorm(const T *data, size_t data_size) -> remove_complex_t<T>¶ Compute the squared norm of a real/complex vector \(\sum_k |v_k|^2\)
- Parameters
data – Data pointer
data_size – Size of the data
api/function_Util_8hpp_1aac80fa7590cf29e66be3eb22ac3152cd
Download Python script
Download Notebook
View on GitHub