
'''simple docstring'''
from __future__ import annotations






def  __SCREAMING_SNAKE_CASE				(  _SCREAMING_SNAKE_CASE							, _SCREAMING_SNAKE_CASE				):
							if len(_SCREAMING_SNAKE_CASE				) == 0:
														return False
							_snake_case       =  len(_SCREAMING_SNAKE_CASE				) // 2
							if a_list[midpoint] == item:
														return True
							if item < a_list[midpoint]:
														return binary_search(a_list[:midpoint]							, _SCREAMING_SNAKE_CASE				)
							else:
														return binary_search(a_list[midpoint + 1 :]							, _SCREAMING_SNAKE_CASE				)


if __name__ == "__main__":
				__lowerCAmelCase												=	input('Enter numbers separated by comma:\n').strip()
				__lowerCAmelCase												=	[int(item.strip()) for item in user_input.split(',')]
				__lowerCAmelCase												=	int(input('Enter the number to be found in the list:\n').strip())
				__lowerCAmelCase												=	'' if binary_search(sequence, target) else 'not '
				print(f'''{target} was {not_str}found in {sequence}''')

'''simple docstring'''
import qiskit






def  __SCREAMING_SNAKE_CASE				(  _SCREAMING_SNAKE_CASE							, _SCREAMING_SNAKE_CASE				):
							_snake_case       =  qiskit.Aer.get_backend("""aer_simulator"""				)

							# Create a Quantum Circuit acting on the q register
							_snake_case       =  qiskit.QuantumCircuit(_SCREAMING_SNAKE_CASE							, _SCREAMING_SNAKE_CASE				)

							# Apply X (NOT) Gate to Qubits 0 & 1
							circuit.x(0				)
							circuit.x(1				)

							# Map the quantum measurement to the classical bits
							circuit.measure([0, 1]							, [0, 1]				)

							# Execute the circuit on the qasm simulator
							_snake_case       =  qiskit.execute(_SCREAMING_SNAKE_CASE							, _SCREAMING_SNAKE_CASE							, shots=1000				)

							# Return the histogram data of the results of the experiment.
							return job.result().get_counts(_SCREAMING_SNAKE_CASE				)


if __name__ == "__main__":
				__lowerCAmelCase												=	single_qubit_measure(2, 2)
				print(f'''Total count for various states are: {counts}''')