

import doctest

import projectq
from projectq.ops import H, Measure




def        _lowercase  (					a_					:       projectq.cengines._main.MainEngine					)					->						int:




					'''simple docstring'''







					__magic_name__				=     quantum_engine.allocate_qubit()
					H | qubit
					Measure | qubit
					return int(a_					)


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

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

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

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

						print("Random numbers", random_numbers_list)







from __future__ import annotations

from collections.abc import Iterator
from typing import Any

class 					__UpperCamelCase					:







	def __init__( self:			Optional[Any]	,			__UpperCamelCase:			Any   ):

						'''simple docstring'''





						__magic_name__				=     data
						__magic_name__				=     None







	def __str__( self:			Optional[int]   ):

						'''simple docstring'''





						return F'{self.data}'




class 					__UpperCamelCase					:







	def __init__( self:			List[Any]   ):

						'''simple docstring'''





						__magic_name__				=     None
						__magic_name__				=     None







	def __iter__( self:			str   ):

						'''simple docstring'''





						__magic_name__				=     self.front
						while node:
											yield node.data
											__magic_name__				=     node.next







	def __len__( self:			Any   ):

						'''simple docstring'''





						return len(tuple(iter(self   )   )   )







	def __str__( self:			List[str]   ):

						'''simple docstring'''





						return " <- ".join(str(__UpperCamelCase   ) for item in self   )







	def 						_SCREAMING_SNAKE_CASE				( self:			Any   ):

						'''simple docstring'''





						return len(self   ) == 0







	def 						_SCREAMING_SNAKE_CASE				( self:			Any	,			__UpperCamelCase:			Any   ):

						'''simple docstring'''





						__magic_name__				=     Node(__UpperCamelCase   )
						if self.is_empty():
											__magic_name__				=     __magic_name__				=     node
						else:
											assert isinstance(self.rear	,			__UpperCamelCase   )
											__magic_name__				=     node
											__magic_name__				=     node







	def 						_SCREAMING_SNAKE_CASE				( self:			Any   ):

						'''simple docstring'''





						if self.is_empty():
											raise IndexError('dequeue from empty queue'   )
						assert isinstance(self.front	,			__UpperCamelCase   )
						__magic_name__				=     self.front
						__magic_name__				=     self.front.next
						if self.front is None:
											__magic_name__				=     None
						return node.data







	def 						_SCREAMING_SNAKE_CASE				( self:			Tuple   ):

						'''simple docstring'''





						__magic_name__				=     __magic_name__				=     None


if __name__ == "__main__":
						from doctest import testmod

						testmod()




