Template Function Pennylane::createManaged¶
Defined in File Bindings.hpp
Function Documentation¶
-
template<class PrecisionT = double>
auto Pennylane::createManaged(const pybind11::array_t<std::complex<PrecisionT>> &numpyArray) -> StateVectorManagedCPU<PrecisionT>¶ Create a StateVectorManagedCPU object from a 1D numpy array by copying the internal data.
- Template Parameters
PrecisionT – Floating point precision type
- Parameters
numpyArray – Numpy array data-type
- Returns
StateVectorManagedCPU object.
api/function_Bindings_8hpp_1ac241ca720b40087e3d174a61cb7b6614
Download Python script
Download Notebook
View on GitHub