Template Function Pennylane::alignedNumpyArray¶
Defined in File Bindings.hpp
Function Documentation¶
-
template<typename T>
auto Pennylane::alignedNumpyArray(CPUMemoryModel memory_model, size_t size) -> pybind11::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_1ab9bee044db28b1c4172a54da2b59780d
Download Python script
Download Notebook
View on GitHub