


import qiskit


def 		lowercase_	(  _UpperCamelCase							,      _UpperCamelCase	):


			'''simple docstring'''







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

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

			# Apply X (NOT) Gate to Qubits 0 & 1
			circuit.x(0	)
			circuit.x(1	)

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

			# Execute the circuit on the qasm simulator
			__lowercase			       = 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__":
	a			:			str												=					single_qubit_measure(2, 2)
	print(f'''Total count for various states are: {counts}''')






from typing import Optional

from .. import Features, NamedSplit
from ..packaged_modules.text.text import Text
from ..utils.typing import NestedDataStructureLike, PathLike
from .abc import AbstractDatasetReader
class 						lowerCamelCase_							(					lowerCAmelCase__					):



					'''simple docstring'''







					def __init__(					self			,							snake_case_			,							snake_case_ = None			,							snake_case_ = None			,							snake_case_ = None			,							snake_case_ = False			,							snake_case_ = False			,							snake_case_ = None			,							**snake_case_			,							) ->      Dict:







								'''simple docstring'''

								super().__init__(
								    snake_case_			,							split=snake_case_			,							features=snake_case_			,							cache_dir=snake_case_			,							keep_in_memory=snake_case_			,							streaming=snake_case_			,							num_proc=snake_case_			,							**snake_case_			,							)
								__lowercase			       = path_or_paths if isinstance(snake_case_			,							snake_case_    ) else {self.split: path_or_paths}
								__lowercase			       = Text(
								    cache_dir=snake_case_			,							data_files=snake_case_			,							features=snake_case_			,							**snake_case_			,							)






					def A   (					self    ) ->      int:







								'''simple docstring'''

								if self.streaming:
											__lowercase			       = self.builder.as_streaming_dataset(split=self.split    )
								# Build regular (map-style) dataset
								else:
											__lowercase			       = None
											__lowercase			       = None
											__lowercase			       = None
											__lowercase			       = None

											self.builder.download_and_prepare(
											    download_config=snake_case_			,							download_mode=snake_case_			,							verification_mode=snake_case_			,							base_path=snake_case_			,							num_proc=self.num_proc			,							)
											__lowercase			       = self.builder.as_dataset(
											    split=self.split			,							verification_mode=snake_case_			,							in_memory=self.keep_in_memory    )
								return dataset


