





"""simple docstring"""


import numpy as np
import qiskit
from qiskit import Aer, ClassicalRegister, QuantumCircuit, QuantumRegister, execute





def SCREAMING_SNAKE_CASE_   (       snake_case   :					int = np.pi / 2						,  snake_case   :					int = np.pi / 2						,  snake_case   :					Tuple = np.pi / 2		)->		str:
       _lowerCamelCase    	=					QuantumRegister(3						,  'qr'		)  # Define the number of quantum bits
       _lowerCamelCase    	=					ClassicalRegister(1						,  'cr'		)  # Define the number of classical bits

       _lowerCamelCase    	=					QuantumCircuit(__lowerCamelCase						,  __lowerCamelCase		)  # Define the quantum circuit.

       # Build the circuit
       quantum_circuit.u(__lowerCamelCase						,  __lowerCamelCase						,  __lowerCamelCase						,  0		)  # Quantum State to teleport
       quantum_circuit.h(1		)  # add hadamard gate
       quantum_circuit.cx(
           1						,  2		)  # add control gate with qubit 1 as control and 2 as target.
       quantum_circuit.cx(0						,  1		)
       quantum_circuit.h(0		)
       quantum_circuit.cz(0						,  2		)  # add control z gate.
       quantum_circuit.cx(1						,  2		)

       quantum_circuit.measure([2]						,  [0]		)  # measure the qubit.

       # Simulate the circuit using qasm simulator
       _lowerCamelCase    	=					Aer.get_backend('aer_simulator'		)
       _lowerCamelCase    	=					execute(__lowerCamelCase						,  __lowerCamelCase						,  shots=1_000		)

       return job.result().get_counts(__lowerCamelCase		)


if __name__ == "__main__":
      print(
          """Total count for teleported state is: """
          f'{quantum_teleportation(np.pi/2, np.pi/2, np.pi/2)}'
      )







def 							lowerCAmelCase(	__lowerCamelCase      ,				__lowerCamelCase						):
					sequence.append(__lowerCamelCase						)

					__a							=   0
					while sequence[index] != target:
										index += 1

					sequence.pop()

					if index == len(__lowerCamelCase						):
										return None

					return index


if __name__ == "__main__":
	lowerCamelCase_				:		List[str]       						=       input("""Enter numbers separated by comma:\n""").strip()
	lowerCamelCase_				:		str       						=       [int(item) for item in user_input.split(""",""")]

	lowerCamelCase_				:		Tuple       						=       input("""Enter a single number to be found in the list:\n""")
	lowerCamelCase_				:		Optional[int]       						=       int(target_input)
	lowerCamelCase_				:		List[Any]       						=       sentinel_linear_search(sequence, target)
	if result is not None:
		print(F'''{target} found at positions: {result}''')
	else:
		print("""Not found""")




