code: def bitlist_to_int(bitlist: Sequence[int]) -> int:
      
      return int(''.join([str(d) for d in bitlist]), 2)
docs: Converts a sequence of bits to an integer.
  
      >>> from quantumflow.utils import bitlist_to_int
      >>> bitlist_to_int([1, 0, 0])
      4