

'''simple docstring'''





import doctest

import projectq
from projectq.ops import H, Measure



def  _A  (			SCREAMING_SNAKE_CASE			):
	UpperCAmelCase__:  Optional[int]		       =   quantum_engine.allocate_qubit()
	H | qubit
	Measure | qubit
	return int(SCREAMING_SNAKE_CASE			)


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

					# initialises a new quantum backend
					_lowerCAmelCase     :			Any    =projectq.MainEngine()

					# Generate a list of 10 random numbers
					_lowerCAmelCase     :			List[str]    =[get_random_number(quantum_engine) for _ in range(10)]

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

					print("""Random numbers""", random_numbers_list)


import numpy as np



def  _A  (			SCREAMING_SNAKE_CASE			):
	UpperCAmelCase__:  List[Any]		       =   np.exp(SCREAMING_SNAKE_CASE			)

	# Add up the all the exponentials
	UpperCAmelCase__:  str		       =   np.sum(SCREAMING_SNAKE_CASE			)

	# Divide every exponent by the sum of all exponents
	UpperCAmelCase__:  Tuple		       =   exponent_vector / sum_of_exponents

	return softmax_vector


if __name__ == "__main__":
					print(softmax((0,)))