Template Function Pennylane::createStateVectorFromNumpyData

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