Function Pennylane::Util::log2PerfectPower
Function Documentation
-
inline constexpr auto Pennylane::Util::log2PerfectPower(std::size_t val) -> std::size_t
Faster log2 when the value is a power of 2.
- Parameters
val – Size of the state vector. Expected to be a power of 2.
- Returns
std::size_t Log2(val), or the state vector’s number of qubits.
api/function_BitUtil_8hpp_1adf98e6961ee0df3e7384fd414b356f54