

"""simple docstring"""


from __future__ import annotations



def   _A					(	_a	:						list[int | float]     ,   _a	:						int     ,   _a	:						int				):



      """simple docstring"""






      if len(_a				) == 0:
            raise ValueError("""find_max() arg is an empty sequence"""				)
      if (
          left >= len(_a				)
          or left < -len(_a				)
          or right >= len(_a				)
          or right < -len(_a				)
      ):
            raise IndexError("""list index out of range"""				)
      if left == right:
            return nums[left]
      A				  =		(left + right) >> 1  # the middle
      A				  =		find_max(_a     ,   _a     ,   _a				)  # find max in range[left, mid]
      A				  =		find_max(_a     ,   mid + 1     ,   _a				)  # find max in range[mid + 1, right]

      return left_max if left_max >= right_max else right_max


if __name__ == "__main__":
  import doctest

  doctest.testmod(verbose=True)







"""simple docstring"""


import qiskit



def   _A					(	_a	:						int     ,   _a	:						int				):



      """simple docstring"""






      A				  =		qiskit.Aer.get_backend("""aer_simulator"""				)

      # Create a Quantum Circuit acting on the q register
      A				  =		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				  =		qiskit.execute(_a     ,   _a     ,   shots=1_0_0_0				)

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


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




