
"""simple docstring"""







from typing import TYPE_CHECKING

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


lowerCamelCase__        =		{
    '''configuration_gpt_bigcode''': ['''GPT_BIGCODE_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''GPTBigCodeConfig'''],
}

try:
					if not is_torch_available():
										raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
					pass
else:
					lowerCamelCase__        =		[
					    '''GPT_BIGCODE_PRETRAINED_MODEL_ARCHIVE_LIST''',
					    '''GPTBigCodeForSequenceClassification''',
					    '''GPTBigCodeForTokenClassification''',
					    '''GPTBigCodeForCausalLM''',
					    '''GPTBigCodeModel''',
					    '''GPTBigCodePreTrainedModel''',
					]

if TYPE_CHECKING:
					from .configuration_gpt_bigcode import GPT_BIGCODE_PRETRAINED_CONFIG_ARCHIVE_MAP, GPTBigCodeConfig

					try:
										if not is_torch_available():
															raise OptionalDependencyNotAvailable()
					except OptionalDependencyNotAvailable:
										pass
					else:
										from .modeling_gpt_bigcode import (
										    GPT_BIGCODE_PRETRAINED_MODEL_ARCHIVE_LIST,
										    GPTBigCodeForCausalLM,
										    GPTBigCodeForSequenceClassification,
										    GPTBigCodeForTokenClassification,
										    GPTBigCodeModel,
										    GPTBigCodePreTrainedModel,
										)


else:
					import sys

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

"""simple docstring"""







import qiskit
def    __lowerCAmelCase    (_UpperCamelCase	,  _UpperCamelCase		):
	__lowerCAmelCase      :						Union[str, Any]						      =				qiskit.Aer.get_backend('aer_simulator'		)

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

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

	# Execute the circuit on the simulator
	__lowerCAmelCase      :						Optional[int]						      =				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)}')