Function Pennylane::Util::isPerfectPowerOf2¶
Defined in File BitUtil.hpp
Function Documentation¶
-
inline auto constexpr Pennylane::Util::isPerfectPowerOf2(std::size_t value) -> bool¶
Verify if the value provided is a power of 2.
- Parameters:
value – state vector size.
- Returns:
true
- Returns:
false
api/function_BitUtil_8hpp_1ae23fd2b74257338c621ec34e10d20585
Download Python script
Download Notebook
View on GitHub