





import pytest

import datasets


# Import fixture modules as plugins
UpperCAmelCase_							=				["""tests.fixtures.files""", """tests.fixtures.hub""", """tests.fixtures.fsspec"""]





def  __magic_name__  (				lowercase				,       lowercase				)				-> Union[str, Any]:

							"""simple docstring"""



							for item in items:
														if any(marker in item.keywords for marker in ["""integration""", """unit"""]				):
																					continue
														item.add_marker(pytest.mark.unit				)





def  __magic_name__  (				lowercase				)				-> str:

							"""simple docstring"""



							config.addinivalue_line("""markers"""				,       """torchaudio_latest: mark test to run with torchaudio>=0.12"""				)





@pytest.fixture(autouse=lowercase				)
def  __magic_name__  (				lowercase				,       lowercase				)				-> Optional[int]:

							"""simple docstring"""



							lowercase_	:   str  				=     tmp_path_factory.getbasetemp() / """cache"""
							lowercase_	:   Optional[int]  				=     test_hf_cache_home / """datasets"""
							lowercase_	:   Optional[Any]  				=     test_hf_cache_home / """metrics"""
							lowercase_	:   Union[str, Any]  				=     test_hf_cache_home / """modules"""
							monkeypatch.setattr("""datasets.config.HF_DATASETS_CACHE"""				,       str(lowercase				)				)
							monkeypatch.setattr("""datasets.config.HF_METRICS_CACHE"""				,       str(lowercase				)				)
							monkeypatch.setattr("""datasets.config.HF_MODULES_CACHE"""				,       str(lowercase				)				)
							lowercase_	:   List[str]  				=     test_hf_datasets_cache / """downloads"""
							monkeypatch.setattr("""datasets.config.DOWNLOADED_DATASETS_PATH"""				,       str(lowercase				)				)
							lowercase_	:   List[Any]  				=     test_hf_datasets_cache / """downloads""" / """extracted"""
							monkeypatch.setattr("""datasets.config.EXTRACTED_DATASETS_PATH"""				,       str(lowercase				)				)





@pytest.fixture(autouse=lowercase				,       scope="""session"""				)
def  __magic_name__  (				)				-> str:

							"""simple docstring"""



							datasets.disable_progress_bar()





@pytest.fixture(autouse=lowercase				)
def  __magic_name__  (				lowercase				)				-> int:

							"""simple docstring"""



							monkeypatch.setattr("""datasets.config.HF_UPDATE_DOWNLOAD_COUNTS"""				,       lowercase				)





@pytest.fixture
def  __magic_name__  (				lowercase				)				-> List[Any]:

							"""simple docstring"""



							monkeypatch.setattr("""sqlalchemy.util.deprecations.SILENCE_UBER_WARNING"""				,       lowercase				)






import qiskit





def  __magic_name__  (				lowercase				,       lowercase				)				-> qiskit.result.counts.Counts:

							"""simple docstring"""



							lowercase_	:   Dict  				=     qiskit.Aer.get_backend("""aer_simulator"""				)

							# Create a Quantum Circuit acting on the q register
							lowercase_	:   str  				=     qiskit.QuantumCircuit(lowercase				,       lowercase				)

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

							# Execute the circuit on the simulator
							lowercase_	:   List[Any]  				=     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)}''')