Template Function Pennylane::createManaged

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.