




import qiskit

def    UpperCAmelCase_				( __UpperCAmelCase		:      int     ,     __UpperCAmelCase		:      int				)   ->					qiskit.result.counts.Counts:
      SCREAMING_SNAKE_CASE_      		=     qiskit.Aer.get_backend('aer_simulator'				)

      # Create a Quantum Circuit acting on the q register
      SCREAMING_SNAKE_CASE_      		=     qiskit.QuantumCircuit(__UpperCAmelCase     ,     __UpperCAmelCase				)

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

      # Execute the circuit on the simulator
      SCREAMING_SNAKE_CASE_      		=     qiskit.execute(__UpperCAmelCase     ,     __UpperCAmelCase     ,     shots=10_00				)

      # 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)}''')





def    UpperCAmelCase_				( __UpperCAmelCase		:      list     ,     __UpperCAmelCase		:      int     ,     __UpperCAmelCase		:      int = 0     ,     __UpperCAmelCase		:      int = 0				)   ->					int:
      SCREAMING_SNAKE_CASE_      		=     right or len(__UpperCAmelCase				) - 1
      if left > right:
            return -1
      elif list_data[left] == key:
            return left
      elif list_data[right] == key:
            return right
      else:
            return search(__UpperCAmelCase     ,     __UpperCAmelCase     ,     left + 1     ,     right - 1				)


if __name__ == "__main__":
   import doctest

   doctest.testmod()