View source on GitHub |
Generator for returning integers that associate each bit in sequence with
fqe.bitstring.gbit_index(
str0: int
) -> Generator[int, None, None]
a corresponding orbital index
Args | |
---|---|
str0 (bitstring) - string to process |
Returns | |
---|---|
(int) - integer corresponding to the index of a set bit in str0
.. code-block:: text
|