Template Function Pennylane::Util::fillLeadingOnes

Function Documentation

template<class IntegerType = std::size_t>
inline constexpr auto 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.