





"""simple docstring"""




import os
from collections.abc import Iterator






def    _SCREAMING_SNAKE_CASE	(			_lowercase		:					str = "."      )				->Iterator[str]:






	'''simple docstring'''






	for dir_path, dir_names, filenames in os.walk(_lowercase      ):
		a   :	str			=       [d for d in dir_names if d != "scripts" and d[0] not in "._"]
		for filename in filenames:
			if filename == "__init__.py":
				continue
			if os.path.splitext(_lowercase      )[1] in (".py", ".ipynb"):
				yield os.path.join(_lowercase					, _lowercase      ).lstrip("./"      )






def    _SCREAMING_SNAKE_CASE	(			_lowercase		:					Dict      )				->Tuple:






	'''simple docstring'''






	return F"""{i * '  '}*""" if i else "\n##"






def    _SCREAMING_SNAKE_CASE	(			_lowercase		:					str					, _lowercase		:					str      )				->str:






	'''simple docstring'''






	a   :	str			=       old_path.split(os.sep      )
	for i, new_part in enumerate(new_path.split(os.sep      )      ):
		if (i + 1 > len(_lowercase      ) or old_parts[i] != new_part) and new_part:
			print(F"""{md_prefix(_lowercase      )} {new_part.replace('_'					, ' '      ).title()}"""      )
	return new_path






def    _SCREAMING_SNAKE_CASE	(			_lowercase		:					str = "."      )				->None:






	'''simple docstring'''






	a   :	str			=       ""
	for filepath in sorted(good_file_paths(_lowercase      )      ):
		a, a   :	List[Any]			=       os.path.split(_lowercase      )
		if filepath != old_path:
			a   :	Union[str, Any]			=       print_path(_lowercase					, _lowercase      )
		a   :	List[str]			=       (filepath.count(os.sep      ) + 1) if filepath else 0
		a   :	str			=       F"""{filepath}/{filename}""".replace(" "					, "%20"      )
		a   :	List[Any]			=       os.path.splitext(filename.replace("_"					, " "      ).title()      )[0]
		print(F"""{md_prefix(_lowercase      )} [{filename}]({url})"""      )


if __name__ == "__main__":
		print_directory_md('''.''')









"""simple docstring"""




import qiskit






def    _SCREAMING_SNAKE_CASE	(			_lowercase		:					int					, _lowercase		:					int      )				->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   :	Optional[Any]			=       qiskit.QuantumCircuit(_lowercase					, _lowercase      )

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

	# Execute the circuit on the simulator
	a   :	Optional[int]			=       qiskit.execute(_lowercase					, _lowercase					, shots=1000      )

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


if __name__ == "__main__":
		print(F'''Total count for various states are: {single_qubit_measure(1, 1)}''')


