Template Function Pennylane::Util::fillLeadingOnes

Function Documentation

template<class IntegerType = size_t>
inline constexpr auto Pennylane::Util::fillLeadingOnes(size_t pos) -> 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.