

"""simple docstring"""


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


UpperCAmelCase													=logging.get_logger(__name__)

UpperCAmelCase													={
    "alibaba-damo/mgp-str-base": "https://huggingface.co/alibaba-damo/mgp-str-base/resolve/main/config.json",
}





class lowerCamelCase__   (				SCREAMING_SNAKE_CASE    ):



    '''simple docstring'''




    _lowerCamelCase					=   '''mgp-str'''




    def __init__( self ,lowerCamelCase_=[3_2, 1_2_8] ,lowerCamelCase_=4 ,lowerCamelCase_=3 ,lowerCamelCase_=2_7 ,lowerCamelCase_=3_8 ,lowerCamelCase_=5_0_2_5_7 ,lowerCamelCase_=3_0_5_2_2 ,lowerCamelCase_=7_6_8 ,lowerCamelCase_=1_2 ,lowerCamelCase_=1_2 ,lowerCamelCase_=4.0 ,lowerCamelCase_=True ,lowerCamelCase_=False ,lowerCamelCase_=1E-5 ,lowerCamelCase_=0.0 ,lowerCamelCase_=0.0 ,lowerCamelCase_=0.0 ,lowerCamelCase_=False ,lowerCamelCase_=0.02 ,**lowerCamelCase_ ,)    ->      Optional[int]:
          super().__init__(**lowerCamelCase_    )

          A				  =		image_size
          A				  =		patch_size
          A				  =		num_channels
          A				  =		max_token_length
          A				  =		num_character_labels
          A				  =		num_bpe_labels
          A				  =		num_wordpiece_labels
          A				  =		hidden_size
          A				  =		num_hidden_layers
          A				  =		num_attention_heads
          A				  =		mlp_ratio
          A				  =		distilled
          A				  =		layer_norm_eps
          A				  =		drop_rate
          A				  =		qkv_bias
          A				  =		attn_drop_rate
          A				  =		drop_path_rate
          A				  =		output_aa_attentions
          A				  =		initializer_range







"""simple docstring"""


import qiskit



def   _A					(	_a	:						int     ,   _a	:						int				):



      """simple docstring"""






      A				  =		qiskit.Aer.get_backend("""aer_simulator"""				)

      # Create a Quantum Circuit acting on the q register
      A				  =		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
      A				  =		qiskit.execute(_a     ,   _a     ,   shots=1_0_0_0				)

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


if __name__ == "__main__":
  UpperCAmelCase													=single_qubit_measure(2, 2)
  print(f"""Total count for various states are: {counts}""")




