Template Function Pennylane::LightningQubit::Util::matrixVecProd(const std::vector<std::complex<T>>&, const std::vector<std::complex<T>>&, std::size_t, std::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, std::size_t m, std::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, std::size_t m, std::size_t n, std::size_t nthreads = 1, bool transpose = false)
api/function_LinearAlgebra_8hpp_1ac1458e5685fc4b13c857fc27d898aaac
Download Python script
Download Notebook
View on GitHub