






"""simple docstring"""



import doctest

import projectq
from projectq.ops import H, Measure
def 						_SCREAMING_SNAKE_CASE			(   __snake_case      :  projectq.cengines._main.MainEngine   ):





     '''simple docstring'''





     lowercase							   =	quantum_engine.allocate_qubit()
     H | qubit
     Measure | qubit
     return int(__snake_case   )


if __name__ == "__main__":
    doctest.testmod()

    # initialises a new quantum backend
    _UpperCamelCase		:  List[str]						=		projectq.MainEngine()

    # Generate a list of 10 random numbers
    _UpperCamelCase		:  Union[str, Any]						=		[get_random_number(quantum_engine) for _ in range(1_0)]

    # Flushes the quantum engine from memory
    quantum_engine.flush()

    print('Random numbers', random_numbers_list)










"""simple docstring"""



def 						_SCREAMING_SNAKE_CASE			(   __snake_case      :  Dict		, __snake_case      :  str   ):





  '''simple docstring'''





  lowercase							   =	1
  while b > 0:
    if b & 1:
      res *= a

    a *= a
    b >>= 1

  return res
def 						_SCREAMING_SNAKE_CASE			(   __snake_case      :  int		, __snake_case      :  List[str]		, __snake_case      :  str   ):





  '''simple docstring'''





  lowercase							   =	1
  while b > 0:
    if b & 1:
      lowercase							   =	((res % c) * (a % c)) % c

    a *= a
    b >>= 1

  return res


