cirq.big_endian_bits_to_int

Returns the big-endian integer specified by the given bits.

bits Descending bits of the integer, with the 1s bit at the end.

The integer.

>>> cirq.big_endian_bits_to_int([0, 1])
1
cirq.big_endian_bits_to_int([1, 0])
2
cirq.big_endian_bits_to_int([0, 1, 0])
2
cirq.big_endian_bits_to_int([1, 0, 0, 1, 0])
18