pennylane_calculquebec.utility.debug.label_from

Contents

pennylane_calculquebec.utility.debug.label_from#

pennylane_calculquebec.utility.debug.label_from(number: int, binary_places: int)#

get a bitstring out of a number. ie 27 with binary place 8 would be 00011011

Parameters:
  • number (int) – the number to turn into a bitstring

  • binary_places (int) – the number of bits in the string

Returns:

the bitstring

Return type:

str