
'''simple docstring'''


import logging
from dataclasses import dataclass, field
from typing import Optional

from seqaseq_trainer import arg_to_scheduler

from transformers import TrainingArguments


__lowercase							:   Tuple					=     logging.getLogger(__name__)

@dataclass
class 	__lowercase				(  _lowercase    ):
			lowerCamelCase			:		Optional[float]	      =			field(
			    default=0.0      ,     metadata={"help": "The label smoothing epsilon to apply (if not zero)."}    )
			lowerCamelCase			:		bool	      =			field(default=_lowercase      ,     metadata={"help": "Whether to SortishSamler or not."}    )
			lowerCamelCase			:		bool	      =			field(
			    default=_lowercase      ,     metadata={"help": "Whether to use generate to calculate generative metrics (ROUGE, BLEU)."}    )
			lowerCamelCase			:		bool	      =			field(default=_lowercase      ,     metadata={"help": "whether to use adafactor"}    )
			lowerCamelCase			:		Optional[float]	      =			field(
			    default=_lowercase      ,     metadata={"help": "Encoder layer dropout probability. Goes into model.config."}    )
			lowerCamelCase			:		Optional[float]	      =			field(
			    default=_lowercase      ,     metadata={"help": "Decoder layer dropout probability. Goes into model.config."}    )
			lowerCamelCase			:		Optional[float]	      =			field(default=_lowercase      ,     metadata={"help": "Dropout probability. Goes into model.config."}    )
			lowerCamelCase			:		Optional[float]	      =			field(
			    default=_lowercase      ,     metadata={"help": "Attention dropout probability. Goes into model.config."}    )
			lowerCamelCase			:		Optional[str]	      =			field(
			    default="linear"      ,     metadata={"help": F'''Which lr scheduler to use. Selected in {sorted(arg_to_scheduler.keys()    )}'''}      ,     )




'''simple docstring'''


import qiskit




def lowercase_	(   _lowercase			,       _lowercase				)     ->							qiskit.result.counts.Counts:
					'''simple docstring'''

					lowerCamelCase_					:      Optional[Any]     =		qiskit.Aer.get_backend('''aer_simulator'''				)

					# Create a Quantum Circuit acting on the q register
					lowerCamelCase_					:      Optional[int]     =		qiskit.QuantumCircuit(_lowercase			,       _lowercase				)

					# 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
					lowerCamelCase_					:      Optional[int]     =		qiskit.execute(_lowercase			,       _lowercase			,       shots=1_000				)

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


if __name__ == "__main__":
					__lowercase							:   List[Any]					=     single_qubit_measure(2, 2)
					print(f'Total count for various states are: {counts}')


