Function Pennylane::Util::alignedAlloc¶
Defined in File Memory.hpp
Function Documentation¶
-
inline auto Pennylane::Util::alignedAlloc(uint32_t alignment, std::size_t bytes, bool zero_init = false) -> void*¶
Custom aligned allocate function.
Note that alignment must be larger than max_align_t. Otherwise, the behavior is undefined.
- Parameters
alignment – Alignment value we want for the data pointer
bytes – Number of bytes to allocate
- Returns
Pointer to the allocated memory
api/function_Memory_8hpp_1a2ca0eb86e3e1424085002717d8d0cdfd
Download Python script
Download Notebook
View on GitHub