Template Function Pennylane::Util::fillLeadingOnes¶
Defined in File BitUtil.hpp
Function Documentation¶
-
template<class IntegerType = std::size_t>
inline auto constexpr Pennylane::Util::fillLeadingOnes(std::size_t pos) -> std::size_t¶ Fill ones from MSB to pos.
- Template Parameters:
IntegerType – Integer type to use
- Parameters:
pos – Position up to which bit one is filled.
api/function_BitUtil_8hpp_1a7fb53b76197813c27b0617da1313e1ab
Download Python script
Download Notebook
View on GitHub