View source on GitHub |
Count the number of bits between position1 and position2
fqe.bitstring.count_bits_between(
string: int,
pos1: int,
pos2: int
) -> int
Args | |
---|---|
string (int) - bit string
pos1 (int) - one of the positions in the bit string pos2 (int) - the other position in the bit string |