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.