Template Function Pennylane::LightningQubit::Util::matrixVecProd(const std::vector<std::complex<T>>&, const std::vector<std::complex<T>>&, size_t, size_t, Trans)¶
Defined in File LinearAlgebra.hpp
Function Documentation¶
-
template<class T>
inline auto Pennylane::LightningQubit::Util::matrixVecProd(const std::vector<std::complex<T>> &mat, const std::vector<std::complex<T>> &v_in, size_t m, size_t n, Trans transpose = Trans::NoTranspose) -> std::vector<std::complex<T>>¶ Calculates the matrix-vector product using the best available method.
See also
void matrixVecProd(const std::complex<T> *mat, const std::complex<T> *v_in, std::complex<T> *v_out, size_t m, size_t n, size_t nthreads = 1, bool transpose = false)
api/function_LinearAlgebra_8hpp_1a4c86908cb436d2d7c1ed2c3491c6da72
Download Python script
Download Notebook
View on GitHub