all_bitstrings

pyquil.unitary_tools.all_bitstrings(n_bits)[source]

All bitstrings in lexicographical order as a 2d np.ndarray.

This should be the same as np.array(list(itertools.product([0,1], repeat=n_bits))) but faster.