




def lowercase    (  SCREAMING_SNAKE_CASE       ,    SCREAMING_SNAKE_CASE )			->							list:


			'''simple docstring'''







			SCREAMING_SNAKE_CASE_								=						len(SCREAMING_SNAKE_CASE )
			SCREAMING_SNAKE_CASE_								=						[]
			for i in range(len(SCREAMING_SNAKE_CASE ) - pat_len + 1 ):
						SCREAMING_SNAKE_CASE_								=						True
						for j in range(SCREAMING_SNAKE_CASE ):
									if s[i + j] != pattern[j]:
												SCREAMING_SNAKE_CASE_								=						False
												break
						if match_found:
									position.append(SCREAMING_SNAKE_CASE )
			return position


if __name__ == "__main__":
				assert naive_pattern_search("ABCDEFG", "DE") == [3]
				print(naive_pattern_search("ABAAABCDBBABCDDEBCABC", "ABC"))






import qiskit

def lowercase    (  SCREAMING_SNAKE_CASE = 2 )			->							qiskit.result.counts.Counts:


			'''simple docstring'''







			SCREAMING_SNAKE_CASE_								=						qubits

			# Using Aer's simulator
			SCREAMING_SNAKE_CASE_								=						qiskit.Aer.get_backend('aer_simulator' )

			# Creating a Quantum Circuit acting on the q register
			SCREAMING_SNAKE_CASE_								=						qiskit.QuantumCircuit(SCREAMING_SNAKE_CASE       ,    SCREAMING_SNAKE_CASE )

			# Adding a H gate on qubit 0 (now q0 in superposition)
			circuit.h(0 )

			for i in range(1       ,    SCREAMING_SNAKE_CASE ):
						# Adding CX (CNOT) gate
						circuit.cx(i - 1       ,    SCREAMING_SNAKE_CASE )

			# Mapping the quantum measurement to the classical bits
			circuit.measure(list(range(SCREAMING_SNAKE_CASE ) )       ,    list(range(SCREAMING_SNAKE_CASE ) ) )

			# Now measuring any one qubit would affect other qubits to collapse
			# their super position and have same state as the measured one.

			# Executing the circuit on the simulator
			SCREAMING_SNAKE_CASE_								=						qiskit.execute(SCREAMING_SNAKE_CASE       ,    SCREAMING_SNAKE_CASE       ,    shots=10_00 )

			return job.result().get_counts(SCREAMING_SNAKE_CASE )


if __name__ == "__main__":
				print(f"""Total count for various states are: {quantum_entanglement(3)}""")
