Function Pennylane::allocateAlignedArray¶
Defined in File Bindings.hpp
Function Documentation¶
-
auto Pennylane::allocateAlignedArray(size_t size, pybind11::dtype dt) -> pybind11::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_1a6bcebf087c95952302fe4eb9f803d820
Download Python script
Download Notebook
View on GitHub