

"""simple docstring"""




from __future__ import annotations
def    __SCREAMING_SNAKE_CASE						(						lowercase__			,							lowercase__			,							lowercase__			,							):
					"""simple docstring"""
					if not all((nth_term, start_term_a, common_ratio_r)      ):
										return []
					A			=					[]
					A			=					1
					A			=					common_ratio_r
					for _ in range(int(lowercase__      )      ):
										if not series:
															series.append(lowercase__      )
										else:
															power += 1
															series.append(float(start_term_a * multiple      )      )
															A			=					pow(float(lowercase__      )			,							lowercase__      )
					return series


if __name__ == "__main__":
	import doctest

	doctest.testmod()

	__A     :    Any    =		float(input('Enter the last number (n term) of the Geometric Series'))
	__A     :    Any    =		float(input('Enter the starting term (a) of the Geometric Series'))
	__A     :    int    =		float(
	    input('Enter the common ratio between two terms (r) of the Geometric Series')
	)
	print('Formula of Geometric Series => a + ar + ar^2 ... +ar^n')
	print(geometric_series(nth_term, start_term_a, common_ratio_r))








"""simple docstring"""




import doctest

import projectq
from projectq.ops import H, Measure
def    __SCREAMING_SNAKE_CASE						(						lowercase__      ):
					"""simple docstring"""
					A			=					quantum_engine.allocate_qubit()
					H | qubit
					Measure | qubit
					return int(lowercase__      )


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

	# initialises a new quantum backend
	__A     :    Dict    =		projectq.MainEngine()

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

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

	print('Random numbers', random_numbers_list)





