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