


'''simple docstring'''



from collections import OrderedDict
from typing import Mapping

from packaging import version

from ...configuration_utils import PretrainedConfig
from ...onnx import OnnxConfig
from ...utils import logging


__UpperCAmelCase     :str												=  logging.get_logger(__name__)

__UpperCAmelCase     :int												=  {
    """MBZUAI/swiftformer-xs""": """https://huggingface.co/MBZUAI/swiftformer-xs/resolve/main/config.json""",
}



class       a							(						A_			):


     """simple docstring"""






     SCREAMING_SNAKE_CASE			:					Any				  =  'swiftformer'

     def __init__(							self	:						int				,					snake_case	:						List[Any]=3				,					snake_case	:						Tuple=[3, 3, 6, 4]				,					snake_case	:						str=[48, 56, 112, 220]				,					snake_case	:						List[Any]=4				,					snake_case	:						List[Any]=[True, True, True, True]				,					snake_case	:						str="gelu"				,					snake_case	:						str=3				,					snake_case	:						List[str]=2				,					snake_case	:						Union[str, Any]=1				,					snake_case	:						str=0.0				,					snake_case	:						Union[str, Any]=True				,					snake_case	:						Tuple=1E-5				,					snake_case	:						Union[str, Any]=1E-5				,					**snake_case	:						int				,					)		->				int:
          super().__init__(**__lowercase     )
          __UpperCAmelCase      :					Optional[Any]    				=     num_channels
          __UpperCAmelCase      :					Optional[int]    				=     depths
          __UpperCAmelCase      :					str    				=     embed_dims
          __UpperCAmelCase      :					Any    				=     mlp_ratio
          __UpperCAmelCase      :					Any    				=     downsamples
          __UpperCAmelCase      :					int    				=     hidden_act
          __UpperCAmelCase      :					List[Any]    				=     down_patch_size
          __UpperCAmelCase      :					Optional[Any]    				=     down_stride
          __UpperCAmelCase      :					Optional[int]    				=     down_pad
          __UpperCAmelCase      :					Optional[Any]    				=     drop_path_rate
          __UpperCAmelCase      :					Dict    				=     use_layer_scale
          __UpperCAmelCase      :					str    				=     layer_scale_init_value
          __UpperCAmelCase      :					Tuple    				=     batch_norm_eps



class       a							(						A_			):


     """simple docstring"""






     SCREAMING_SNAKE_CASE			:					Any				  =  version.parse("1.11"			)

     @property
     def 					lowerCamelCase__					(							self	:						Any     )		->				List[Any]:
          return OrderedDict(
              [
                  ('''pixel_values''', {0: '''batch''', 1: '''num_channels''', 2: '''height''', 3: '''width'''}),
              ]     )






     @property
     def 					lowerCamelCase__					(							self	:						Optional[int]     )		->				Optional[int]:
          return 1E-4






import doctest

import projectq
from projectq.ops import H, Measure




def  A_(      A ):
	UpperCAmelCase_		    =  quantum_engine.allocate_qubit()
	H | qubit
	Measure | qubit
	return int(A )


if __name__ == "__main__":
				doctest.testmod()

				# initialises a new quantum backend
				UpperCamelCase__ :			Dict       	=			projectq.MainEngine()

				# Generate a list of 10 random numbers
				UpperCamelCase__ :			Dict       	=			[get_random_number(quantum_engine) for _ in range(10)]

				# Flushes the quantum engine from memory
				quantum_engine.flush()

				print("""Random numbers""", random_numbers_list)


