


"""simple docstring"""







import qiskit


def 					lowercase      (    A_  ,       A_	)->				qiskit.result.counts.Counts:
  '''simple docstring'''







  a						:		Union[str, Any]											=      qiskit.Aer.get_backend("aer_simulator"	)

  # Create a Quantum Circuit acting on the q register
  a						:		Tuple											=      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
  a						:		str											=      qiskit.execute(A_  ,       A_  ,       shots=1_000	)

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


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










"""simple docstring"""







from __future__ import annotations






class 						_A  :







    """simple docstring"""




    def __init__( self    :   Tuple    ,			__UpperCAmelCase    :   List[Any]=None):
      a						:		int											=      data
      a						:		Dict											=      None






    def __repr__( self    :   Dict):
      a						:		List[Any]											=      []
      a						:		str											=      self
      while temp:
        string_rep.append(f'''{temp.data}''')
        a						:		Tuple											=      temp.next
      return "->".join(__UpperCAmelCase)






def 					lowercase      (    A_	)->				Any:
  '''simple docstring'''







  if not elements_list:
    raise Exception("The Elements List is empty"	)

  a						:		Any											=      Node(elements_list[0]	)
  for i in range(1  ,       len(A_	)	):
    a						:		int											=      Node(elements_list[i]	)
    a						:		Optional[Any]											=      current.next
  return head


def 					lowercase      (    A_	)->				None:
  '''simple docstring'''







  if head_node is not None and isinstance(A_  ,       A_	):
    print_reverse(head_node.next	)
    print(head_node.data	)


def 					lowercase      (    )->				List[Any]:
  '''simple docstring'''







  from doctest import testmod

  testmod()

  a						:		Union[str, Any]											=      make_linked_list([14, 52, 14, 12, 43]	)
  print("Linked List:"	)
  print(A_	)
  print("Elements in Reverse:"	)
  print_reverse(A_	)


if __name__ == "__main__":
 main()






