Template Function Pennylane::createStateVectorFromNumpyData¶
Defined in File Bindings.hpp
Function Documentation¶
-
template<class StateVectorT>
auto Pennylane::createStateVectorFromNumpyData(const py::array_t<std::complex<typename StateVectorT::PrecisionT>> &numpyArray) -> StateVectorT¶ Create a State Vector From a 1D Numpy Data object.
- Template Parameters
StateVectorT –
- Parameters
numpyArray – inout data
- Returns
StateVectorT
api/function_Bindings_8hpp_1a3312c26c24e1f89c03090c59b1d9dda8
Download Python script
Download Notebook
View on GitHub