Function Pennylane::Util::exp2¶
Defined in File Util.hpp
Function Documentation¶
-
inline auto Pennylane::Util::exp2(const std::size_t &n) -> std::size_t¶
Calculates 2^n for some integer n > 0 using bitshifts.
- Parameters:
n – the exponent
- Returns:
value of 2^n
api/function_Util_8hpp_1afd75b90ccf7145d8c9a1992b8b05a87f
Download Python script
Download Notebook
View on GitHub