Template Function Pennylane::alignedNumpyArray¶
Defined in File Bindings.hpp
Function Documentation¶
-
template<typename T>
auto Pennylane::alignedNumpyArray(CPUMemoryModel memory_model, size_t size, bool zeroInit = false) -> py::array¶ Create an aligned numpy array for a given type, memory model and array size.
- Template Parameters
T – Datatype of numpy array to create
- Parameters
memory_model – Memory model to use
size – Size of the array to create
- Returns
Numpy array
api/function_Bindings_8hpp_1a20a0e831c38bf1749e684faeb67e92b1
Download Python script
Download Notebook
View on GitHub