Function Pennylane::allocateAlignedArray¶
Defined in File Bindings.hpp
Function Documentation¶
-
auto Pennylane::allocateAlignedArray(std::size_t size, const py::dtype &dt, bool zeroInit = false) -> py::array¶
Create a numpy array whose underlying data is allocated by lightning.
See https://github.com/pybind/pybind11/issues/1042#issuecomment-325941022 for capsule usage.
- Parameters
size – Size of the array to create
dt – Pybind11’s datatype object
api/function_Bindings_8hpp_1a926777bdec9df104457dedaf833deae8
Download Python script
Download Notebook
View on GitHub