index2bitstring#

discopy.quantum.circuit.index2bitstring(i, length)[source]#

Turns an index into a bitstring of a given length.

Parameters:
  • i (int) –

  • length (int) –

Return type:

tuple[int, …]