






from typing import List, Optional, Union

from ...processing_utils import ProcessorMixin
from ...tokenization_utils_base import BatchEncoding, PaddingStrategy, PreTokenizedInput, TextInput, TruncationStrategy
from ...utils import TensorType




class 		UpperCAmelCase_						(	__UpperCAmelCase					):


				'''simple docstring'''




				A     :   List[str]						=					["""image_processor""", """tokenizer"""]
				A     :   Optional[Any]						=					"""BridgeTowerImageProcessor"""
				A     :   Optional[Any]						=					("""RobertaTokenizer""", """RobertaTokenizerFast""")






				def __init__(	self		,				_SCREAMING_SNAKE_CASE		,				_SCREAMING_SNAKE_CASE				) ->				Any:
						super().__init__(UpperCAmelCase_		,				UpperCAmelCase_				)






				def __call__(	self		,				_SCREAMING_SNAKE_CASE		,				_SCREAMING_SNAKE_CASE = None		,				_SCREAMING_SNAKE_CASE = True		,				_SCREAMING_SNAKE_CASE = False		,				_SCREAMING_SNAKE_CASE = None		,				_SCREAMING_SNAKE_CASE = None		,				_SCREAMING_SNAKE_CASE = 0		,				_SCREAMING_SNAKE_CASE = None		,				_SCREAMING_SNAKE_CASE = None		,				_SCREAMING_SNAKE_CASE = None		,				_SCREAMING_SNAKE_CASE = False		,				_SCREAMING_SNAKE_CASE = False		,				_SCREAMING_SNAKE_CASE = False		,				_SCREAMING_SNAKE_CASE = False		,				_SCREAMING_SNAKE_CASE = True		,				_SCREAMING_SNAKE_CASE = None		,				**_SCREAMING_SNAKE_CASE		,				) ->				Optional[Any]:
						snake_case_				:							Any						 =       self.tokenizer(
						    text=UpperCAmelCase_		,				add_special_tokens=UpperCAmelCase_		,				padding=UpperCAmelCase_		,				truncation=UpperCAmelCase_		,				max_length=UpperCAmelCase_		,				stride=UpperCAmelCase_		,				pad_to_multiple_of=UpperCAmelCase_		,				return_token_type_ids=UpperCAmelCase_		,				return_attention_mask=UpperCAmelCase_		,				return_overflowing_tokens=UpperCAmelCase_		,				return_special_tokens_mask=UpperCAmelCase_		,				return_offsets_mapping=UpperCAmelCase_		,				return_length=UpperCAmelCase_		,				verbose=UpperCAmelCase_		,				return_tensors=UpperCAmelCase_		,				**UpperCAmelCase_		,				)
						# add pixel_values + pixel_mask
						snake_case_				:							str						 =       self.image_processor(
						    UpperCAmelCase_		,				return_tensors=UpperCAmelCase_		,				do_normalize=UpperCAmelCase_		,				do_center_crop=UpperCAmelCase_		,				**UpperCAmelCase_				)
						encoding.update(UpperCAmelCase_				)

						return encoding






				def       _lowerCAmelCase       (	self		,				*_SCREAMING_SNAKE_CASE		,				**_SCREAMING_SNAKE_CASE				) ->				int:
						return self.tokenizer.batch_decode(*UpperCAmelCase_		,				**UpperCAmelCase_				)






				def       _lowerCAmelCase       (	self		,				*_SCREAMING_SNAKE_CASE		,				**_SCREAMING_SNAKE_CASE				) ->				Union[str, Any]:
						return self.tokenizer.decode(*UpperCAmelCase_		,				**UpperCAmelCase_				)






				@property
				def       _lowerCAmelCase       (	self				) ->				Union[str, Any]:
						snake_case_				:							Optional[Any]						 =       self.tokenizer.model_input_names
						snake_case_				:							Tuple						 =       self.image_processor.model_input_names
						return list(dict.fromkeys(tokenizer_input_names + image_processor_input_names				)				)








import qiskit

def      lowerCAmelCase__	(    _a       :			int  ,      _a       :			int    ):
		snake_case_				:							Tuple						 =       qiskit.Aer.get_backend("aer_simulator"    )

		# Create a Quantum Circuit acting on the q register
		snake_case_				:							Any						 =       qiskit.QuantumCircuit(_a  ,      _a    )

		# 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
		snake_case_				:							Any						 =       qiskit.execute(_a  ,      _a  ,      shots=10_00    )

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


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