






"""simple docstring"""



from ...configuration_utils import PretrainedConfig
from ...utils import logging


_snake_case       :      Union[str, Any]       =					logging.get_logger(__name__)

_snake_case       :      Tuple       =					{
    "facebook/regnet-y-040": "https://huggingface.co/facebook/regnet-y-040/blob/main/config.json",
}




class        __lowercase(       lowerCAmelCase_  ):
						lowerCAmelCase_		:							List[Any]=       'regnet'
						lowerCAmelCase_		:							Dict=       ['x', 'y']






						def __init__(					self    ,						_SCREAMING_SNAKE_CASE=3    ,						_SCREAMING_SNAKE_CASE=32    ,						_SCREAMING_SNAKE_CASE=[1_28, 1_92, 5_12, 10_88]    ,						_SCREAMING_SNAKE_CASE=[2, 6, 12, 2]    ,						_SCREAMING_SNAKE_CASE=64    ,						_SCREAMING_SNAKE_CASE="y"    ,						_SCREAMING_SNAKE_CASE="relu"    ,						**_SCREAMING_SNAKE_CASE    ,						)			->  Union[str, Any]:




											"""simple docstring"""





											super().__init__(**lowerCamelCase_)
											if layer_type not in self.layer_types:
																raise ValueError(F"layer_type={layer_type} is not one of {','.join(self.layer_types)}")
											lowerCamelCase__				=num_channels
											lowerCamelCase__				=embedding_size
											lowerCamelCase__				=hidden_sizes
											lowerCamelCase__				=depths
											lowerCamelCase__				=groups_width
											lowerCamelCase__				=layer_type
											lowerCamelCase__				=hidden_act
											# always downsample in the first stage
											lowerCamelCase__				=True







"""simple docstring"""



import math

import qiskit
from qiskit import Aer, ClassicalRegister, QuantumCircuit, QuantumRegister, execute




def 						lowerCamelCase_				(  __A  :		int = 1			,	__A  :		int = 1			):
					if isinstance(__A			,	__A			) or isinstance(__A			,	__A			):
										raise TypeError('inputs must be integers.'			)
					if (bit_a < 0) or (bit_a < 0):
										raise ValueError('inputs must be positive.'			)
					if (math.floor(__A			) != bit_a) or (math.floor(__A			) != bit_a):
										raise ValueError('inputs must be exact integers.'			)
					if (bit_a > 1) or (bit_a > 1):
										raise ValueError('inputs must be less or equal to 1.'			)

					# build registers
					lowerCamelCase__				=QuantumRegister(2			,	'qr'			)
					lowerCamelCase__				=ClassicalRegister(2			,	'cr'			)

					lowerCamelCase__				=QuantumCircuit(__A			,	__A			)

					# entanglement the qubits
					quantum_circuit.h(1			)
					quantum_circuit.cx(1			,	0			)

					# send the information
					lowerCamelCase__				=str(__A			) + str(__A			)

					if c_information == "11":
										quantum_circuit.x(1			)
										quantum_circuit.z(1			)
					elif c_information == "10":
										quantum_circuit.z(1			)
					elif c_information == "01":
										quantum_circuit.x(1			)
					else:
										quantum_circuit.i(1			)

					# unentangled the circuit
					quantum_circuit.cx(1			,	0			)
					quantum_circuit.h(1			)

					# measure the circuit
					quantum_circuit.measure(__A			,	__A			)

					lowerCamelCase__				=Aer.get_backend('aer_simulator'			)
					lowerCamelCase__				=execute(__A			,	__A			,	shots=1000			)

					return job.result().get_counts(__A			)


if __name__ == "__main__":
						print(f"Counts for classical state send: {superdense_coding(1,1)}")