Function Pennylane::NanoBindings::allocateAlignedArray¶
Defined in File Bindings.hpp
Function Documentation¶
-
auto Pennylane::NanoBindings::allocateAlignedArray(std::size_t size, const nb::object &dtype, bool zeroInit = false) -> nb::object¶
Allocate aligned array with specified dtype.
- Parameters
size – Size of the array to create
dtype – Python dtype object to create the array with
zeroInit – Whether to initialize the array with zeros
- Returns
nb::object a general nanobind object that can assume any of the types in the method.
api/function_Bindings_8hpp_1a9950db2c2ed746ea147675114f0580d4
Download Python script
Download Notebook
View on GitHub