Function Pennylane::Util::isPerfectPowerOf2
Function Documentation
-
inline constexpr auto 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_1acf45c67c919e6e85bea00747c8dc0f6f