
"""simple docstring"""





import qiskit



def 				lowerCamelCase__		(      __snake_case,					__snake_case     )							->		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(_lowercase,					_lowercase     )

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

					# Execute the circuit on the simulator
					_UpperCamelCase										=  qiskit.execute(_lowercase,					_lowercase,					shots=10_00     )

					# 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)}""")








"""simple docstring"""





from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_sentencepiece_available,
    is_speech_available,
    is_torch_available,
)


_a														=		{
    """configuration_trocr""": ["""TROCR_PRETRAINED_CONFIG_ARCHIVE_MAP""", """TrOCRConfig"""],
    """processing_trocr""": ["""TrOCRProcessor"""],
}


try:
				if not is_torch_available():
								raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
				pass
else:
				_a														=		[
				    """TROCR_PRETRAINED_MODEL_ARCHIVE_LIST""",
				    """TrOCRForCausalLM""",
				    """TrOCRPreTrainedModel""",
				]


if TYPE_CHECKING:
				from .configuration_trocr import TROCR_PRETRAINED_CONFIG_ARCHIVE_MAP, TrOCRConfig
				from .processing_trocr import TrOCRProcessor

				try:
								if not is_torch_available():
												raise OptionalDependencyNotAvailable()
				except OptionalDependencyNotAvailable:
								pass
				else:
								from .modeling_trocr import TROCR_PRETRAINED_MODEL_ARCHIVE_LIST, TrOCRForCausalLM, TrOCRPreTrainedModel

else:
				import sys

				_a														=		_LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)






