Template Function Pennylane::Util::fillTrailingOnes¶
Defined in File BitUtil.hpp
Function Documentation¶
-
template<class IntegerType = size_t>
inline constexpr auto Pennylane::Util::fillTrailingOnes(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_1a480d7cb4cd390d9c35203ac1a7279095
Download Python script
Download Notebook
View on GitHub