





def  SCREAMING_SNAKE_CASE__							(				UpperCamelCase__:							list			):
		if not isinstance(UpperCamelCase__    ,      UpperCamelCase__			):
				raise ValueError("""Input series is not valid, valid series - [1, 2/3, 2]"""			)
		if len(UpperCamelCase__			) == 0:
				raise ValueError("""Input list must be a non empty list"""			)
		if len(UpperCamelCase__			) == 1 and series[0] != 0:
				return True
		SCREAMING_SNAKE_CASE__								=					[]
		SCREAMING_SNAKE_CASE__								=					len(UpperCamelCase__			)
		for i in range(0    ,      UpperCamelCase__			):
				if series[i] == 0:
						raise ValueError("""Input series cannot have 0 as an element"""			)
				rec_series.append(1 / series[i]			)
		SCREAMING_SNAKE_CASE__								=					rec_series[1] - rec_series[0]
		for index in range(2    ,      UpperCamelCase__			):
				if rec_series[index] - rec_series[index - 1] != common_diff:
						return False
		return True






def  SCREAMING_SNAKE_CASE__							(				UpperCamelCase__:							list			):
		if not isinstance(UpperCamelCase__    ,      UpperCamelCase__			):
				raise ValueError("""Input series is not valid, valid series - [2, 4, 6]"""			)
		if len(UpperCamelCase__			) == 0:
				raise ValueError("""Input list must be a non empty list"""			)
		SCREAMING_SNAKE_CASE__								=					0
		for val in series:
				answer += 1 / val
		return len(UpperCamelCase__			) / answer


if __name__ == "__main__":
	import doctest

	doctest.testmod()


"""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)





