






import qiskit
def 		lowercase__  (				_UpperCamelCase       ,							_UpperCamelCase) ->			qiskit.result.counts.Counts:
      """simple docstring"""

      UpperCamelCase					       =  qiskit.Aer.get_backend('aer_simulator')

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

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

      # Execute the circuit on the simulator
      UpperCamelCase					       =  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)}')











__magic_name__   :  str        =							8.314_4598
def 		lowercase__  (				_UpperCamelCase       ,							_UpperCamelCase) ->			float:
      """simple docstring"""

      if temperature < 0:
            raise Exception('Temperature cannot be less than 0 K')
      if molar_mass <= 0:
            raise Exception('Molar mass cannot be less than or equal to 0 kg/mol')
      else:
            return (3 * UNIVERSAL_GAS_CONSTANT * temperature / molar_mass) ** 0.5


if __name__ == "__main__":
       import doctest

       # run doctest
       doctest.testmod()

       # example
       __magic_name__   :  List[Any]        =							300
       __magic_name__   :  Union[str, Any]        =							28
       __magic_name__   :  str        =							rms_speed_of_molecule(temperature, molar_mass)
       print(F'Vrms of Nitrogen gas at 300 K is {vrms} m/s')



