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