fqe.bitstring.gbit_index

Generator for returning integers that associate each bit in sequence with

a corresponding orbital index

str0 (bitstring) - string to process

(int) - integer corresponding to the index of a set bit in str0

.. code-block:: text

starting at 0

bitstring ->  100101
index ->      5  2 0
output ->   0
            2
            5