Template Function Pennylane::toNumpyArray¶
Defined in File Bindings.hpp
Function Documentation¶
-
template<class PrecisionT = double>
auto Pennylane::toNumpyArray(const StateVectorManagedCPU<PrecisionT> &sv) -> pybind11::array_t<std::complex<PrecisionT>>¶ Create numpy array view for the underlying data of
StateVectorManagedCPU
object.- Template Parameters
PrecisionT – Floating point data type
- Parameters
sv –
StateVectorManagedCPU
object- Returns
A numpy array
api/function_Bindings_8hpp_1aa0c75d1673ae71a6a57e104625e8b890
Download Python script
Download Notebook
View on GitHub