


'''simple docstring'''






import doctest

import projectq
from projectq.ops import H, Measure


def 					_snake_case   (     A       )						->    int:
							lowerCAmelCase__          =	quantum_engine.allocate_qubit()
							H | qubit
							Measure | qubit
							return int(A       )


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

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

		# Generate a list of 10 random numbers
		__UpperCAmelCase    				=							[get_random_number(quantum_engine) for _ in range(10)]

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

		print('''Random numbers''', random_numbers_list)



'''simple docstring'''






from __future__ import annotations


def 					_snake_case   (     A ,    A       )						->    list[int]:
							lowerCAmelCase__          =	{}
							for index, val in enumerate(A       ):
														lowerCAmelCase__          =	target - val
														if compl in chk_map:
																					return [chk_map[compl], index]
														lowerCAmelCase__          =	index
							return []


if __name__ == "__main__":
		import doctest

		doctest.testmod()
		print(f"""{two_sum([2, 7, 11, 15], 9) = }""")