'''simple docstring'''

import os


# All paths are set with the intent you should run this script from the root of the repo with the command
# python utils/check_doctest_list.py
__a:			Optional[int]	       =       """."""


if __name__ == "__main__":
  __a:			Dict	       =       os.path.join(REPO_PATH, """utils/documentation_tests.txt""")
  __a:			List[str]	       =       []
  __a:			List[str]	       =       []
  with open(doctest_file_path) as fp:
    for line in fp:
      __a:			Union[str, Any]	       =       line.strip()
      __a:			str	       =       os.path.join(REPO_PATH, line)
      if not (os.path.isfile(path) or os.path.isdir(path)):
        non_existent_paths.append(line)
      all_paths.append(path)
  if len(non_existent_paths) > 0:
    __a:			Dict	       =       """\n""".join(non_existent_paths)
    raise ValueError(F'`utils/documentation_tests.txt` contains non-existent paths:\n{non_existent_paths}')
  if all_paths != sorted(all_paths):
    raise ValueError("""Files in `utils/documentation_tests.txt` are not in alphabetical order.""")


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

