


from __future__ import annotations

from typing import Any
class 		__magic_name__						(snake_case_				):





     '''simple docstring'''



     pass




class 		__magic_name__						:





     '''simple docstring'''



     def __init__(					self:int     ,		_a:Any   ):
       snake_case__						= data
       snake_case__						= None

     def __iter__(					self:Any   ):
       snake_case__						= self
       snake_case__						= []
       while node:
         if node in visited:
           raise ContainsLoopError
         visited.append(_a   )
         yield node.data
         snake_case__						= node.next_node







     @property
     def 	SCREAMING_SNAKE_CASE__						(					self:Optional[Any]   ):
       try:
         list(self   )
         return False
       except ContainsLoopError:
         return True


if __name__ == "__main__":
   lowerCamelCase__							:						Optional[Any]							     =   Node(1)
   lowerCamelCase__							:						Union[str, Any]							     =   Node(2)
   lowerCamelCase__							:						Union[str, Any]							     =   Node(3)
   lowerCamelCase__							:						Dict							     =   Node(4)
   print(root_node.has_loop)  # False
   lowerCamelCase__							:						List[str]							     =   root_node.next_node
   print(root_node.has_loop)  # True

   lowerCamelCase__							:						int							     =   Node(5)
   lowerCamelCase__							:						List[Any]							     =   Node(6)
   lowerCamelCase__							:						Dict							     =   Node(5)
   lowerCamelCase__							:						Optional[int]							     =   Node(6)
   print(root_node.has_loop)  # False

   lowerCamelCase__							:						Optional[int]							     =   Node(1)
   print(root_node.has_loop)  # False









"""simple docstring"""


import qiskit


def        UpperCAmelCase      (					a__     ,      a__ ):





						'''simple docstring'''






						lowerCAmelCase   :List[Any]						=			qiskit.Aer.get_backend('aer_simulator' )

						# Create a Quantum Circuit acting on the q register
						lowerCAmelCase   :Optional[int]						=			qiskit.QuantumCircuit(a__     ,      a__ )

						# 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
						lowerCAmelCase   :Dict						=			qiskit.execute(a__     ,      a__     ,      shots=10_00 )

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


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