



import sys



def  _lowerCAmelCase     (_lowerCAmelCase ,						_lowerCAmelCase):
					if not numbers:
										return 0
					if target == 0 and target in numbers:
										return 0
					if not isinstance(_lowerCAmelCase ,						(list, tuple)) or not all(
					    isinstance(_lowerCAmelCase ,						_lowerCAmelCase) for number in numbers):
										raise ValueError("numbers must be an iterable of integers")

					UpperCamelCase_			= UpperCamelCase_			= UpperCamelCase_			= 0
					UpperCamelCase_			= sys.maxsize

					while right < len(_lowerCAmelCase):
										curr_sum += numbers[right]
										while curr_sum >= target and left <= right:
															UpperCamelCase_			= min(_lowerCAmelCase ,						right - left + 1)
															curr_sum -= numbers[left]
															left += 1
										right += 1

					return 0 if min_len == sys.maxsize else min_len




import doctest

import projectq
from projectq.ops import H, Measure



def       lowerCAmelCase			(		lowerCAmelCase_			)->			int:
				lowerCAmelCase_			:   List[Any]     					=					quantum_engine.allocate_qubit()
				H | qubit
				Measure | qubit
				return int(lowerCAmelCase_			)


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

						# initialises a new quantum backend
						_UpperCAmelCase      :	str  =projectq.MainEngine()

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

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

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