Template Function Pennylane::Util::fillTrailingOnes¶
Defined in File BitUtil.hpp
Function Documentation¶
-
template<class IntegerType = std::size_t>
inline constexpr auto Pennylane::Util::fillTrailingOnes(std::size_t nbits) -> IntegerType¶ Fill ones from LSB to nbits. Runnable in a compile-time and for any integer type.
- Template Parameters
IntegerType – Integer type to use
- Parameters
nbits – Number of bits to fill
api/function_BitUtil_8hpp_1ae61936253cbf560c2a7212713a34b868
Download Python script
Download Notebook
View on GitHub