


"""simple docstring"""



lowercase_							 =       {
    '+': lambda x, y: x + y,
    '-': lambda x, y: x - y,
    '*': lambda x, y: x * y,
    '/': lambda x, y: x / y,
}
def     UpperCAmelCase    (					_lowercase   :      List[str]  )	->   List[str]:


	"""simple docstring"""




	return c.isdigit()
def     UpperCAmelCase    (					_lowercase   :      Any  )	->   Optional[int]:


	"""simple docstring"""




	lowerCAmelCase_			       = []

	# iterate over the string in reverse order
	for c in expression.split()[::-1]:
		# push operand to stack
		if is_operand(_lowercase  ):
			stack.append(int(_lowercase  )  )

		else:
			# pop values from stack can calculate the result
			# push the result onto the stack again
			lowerCAmelCase_			       = stack.pop()
			lowerCAmelCase_			       = stack.pop()
			stack.append(calc[c](_lowercase ,      _lowercase  )  )

	return stack.pop()


# Driver code
if __name__ == "__main__":
		lowercase_							 =       '+ 9 * 2 6'
		print(evaluate(test_expression))

		lowercase_							 =       '/ * 10 2 + 4 1 '
		print(evaluate(test_expression))



"""simple docstring"""



import doctest

import projectq
from projectq.ops import H, Measure
def     UpperCAmelCase    (					_lowercase   :      projectq.cengines._main.MainEngine  )	->   int:


	"""simple docstring"""




	lowerCAmelCase_			       = quantum_engine.allocate_qubit()
	H | qubit
	Measure | qubit
	return int(_lowercase  )


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

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

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

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

		print('Random numbers', random_numbers_list)