'''simple docstring'''

from typing import Any



class       UpperCAmelCase  :





       '''simple docstring'''



       def __init__(						self     ,       __lowerCAmelCase			)  ->  int:
        lowercase__    :   Tuple						= data
        lowercase__    :   Optional[int]						= None



class       UpperCAmelCase  :





       '''simple docstring'''



       def __init__(						self			)  ->  Optional[Any]:
        lowercase__    :   List[str]						= None

       def _lowerCAmelCase(						self			)  ->  List[Any]:
        lowercase__    :   List[Any]						= self.head
        while temp is not None:
         print(temp.data     ,       end=''' '''			)
         lowercase__    :   Tuple						= temp.next
        print()

       def _lowerCAmelCase(						self     ,       __lowerCAmelCase			)  ->  int:
        lowercase__    :   Optional[int]						= Node(__lowerCAmelCase			)
        lowercase__    :   str						= self.head
        lowercase__    :   List[str]						= new_node


       def _lowerCAmelCase(						self     ,       __lowerCAmelCase     ,       __lowerCAmelCase			)  ->  int:
        if node_data_a == node_data_a:
         return
        else:
         lowercase__    :   Tuple						= self.head
         while node_a is not None and node_a.data != node_data_a:
          lowercase__    :   Any						= node_a.next

         lowercase__    :   Tuple						= self.head
         while node_a is not None and node_a.data != node_data_a:
          lowercase__    :   Optional[int]						= node_a.next

         if node_a is None or node_a is None:
          return

         lowercase__			,							lowercase__    :   Optional[int]						= node_a.data, node_a.data


if __name__ == "__main__":
  __a:			Union[str, Any]	       =       LinkedList()
  for i in range(5, 0, -1):
    ll.push(i)

  ll.print_list()

  ll.swap_nodes(1, 4)
  print("""After swapping""")
  ll.print_list()


'''simple docstring'''

import qiskit
def       __UpperCamelCase	(       UpperCAmelCase		,					UpperCAmelCase					):
 lowercase__    :   Dict						= qiskit.Aer.get_backend('''aer_simulator'''					)

 # Create a Quantum Circuit acting on the q register
 lowercase__    :   Any						= qiskit.QuantumCircuit(UpperCAmelCase		,					UpperCAmelCase					)

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

 # Execute the circuit on the simulator
 lowercase__    :   Any						= qiskit.execute(UpperCAmelCase		,					UpperCAmelCase		,					shots=1000					)

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


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

