





"""simple docstring"""
import doctest

import projectq
from projectq.ops import H, Measure



def   __lowerCamelCase     (							a_  :	projectq.cengines._main.MainEngine							)    ->   int:
      __SCREAMING_SNAKE_CASE     :Union[str, Any]	       =						quantum_engine.allocate_qubit()
      H | qubit
      Measure | qubit
      return int(a_							)


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

  # initialises a new quantum backend
  lowerCamelCase_          =	projectq.MainEngine()

  # Generate a list of 10 random numbers
  lowerCamelCase_          =	[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   __lowerCamelCase     (							a_  :	str							)    ->   int:
      __SCREAMING_SNAKE_CASE     :List[Any]	       =						0
      for plain_chr in plain_text:
            __SCREAMING_SNAKE_CASE     :List[str]	       =						(
                ord(a_							) + (hash_value << 6) + (hash_value << 16) - hash_value
            )
      return hash_value