





"""simple docstring"""


import math

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





def 				a__      (	_UpperCAmelCase = 1						,  _UpperCAmelCase = 1						)     ->	qiskit.result.counts.Counts:

 '''simple docstring'''






 if isinstance(_UpperCAmelCase						,  _UpperCAmelCase						) or isinstance(_UpperCAmelCase						,  _UpperCAmelCase						):
  raise TypeError("inputs must be integers."						)
 if (bit_a < 0) or (bit_a < 0):
  raise ValueError("inputs must be positive."						)
 if (math.floor(_UpperCAmelCase						) != bit_a) or (math.floor(_UpperCAmelCase						) != 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
 snake_case__     				=					QuantumRegister(2						,  "qr"						)
 snake_case__     				=					ClassicalRegister(2						,  "cr"						)

 snake_case__     				=					QuantumCircuit(_UpperCAmelCase						,  _UpperCAmelCase						)

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

 # send the information
 snake_case__     				=					str(_UpperCAmelCase						) + str(_UpperCAmelCase						)

 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(_UpperCAmelCase						,  _UpperCAmelCase						)

 snake_case__     				=					Aer.get_backend("aer_simulator"						)
 snake_case__     				=					execute(_UpperCAmelCase						,  _UpperCAmelCase						,  shots=1_0_0_0						)

 return job.result().get_counts(_UpperCAmelCase						)


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








"""simple docstring"""


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


a__       :  List[Any]       		=					logging.get_logger(__name__)

a__       :  int       		=					{
    """microsoft/mpnet-base""": """https://huggingface.co/microsoft/mpnet-base/resolve/main/config.json""",
}



class   lowercase_					(  __lowerCAmelCase				):
       snake_case__					:				int									=  """mpnet"""

       def __init__(      self ,       __SCREAMING_SNAKE_CASE=3_0527 ,       __SCREAMING_SNAKE_CASE=768 ,       __SCREAMING_SNAKE_CASE=12 ,       __SCREAMING_SNAKE_CASE=12 ,       __SCREAMING_SNAKE_CASE=3072 ,       __SCREAMING_SNAKE_CASE="gelu" ,       __SCREAMING_SNAKE_CASE=0.1 ,       __SCREAMING_SNAKE_CASE=0.1 ,       __SCREAMING_SNAKE_CASE=512 ,       __SCREAMING_SNAKE_CASE=0.02 ,       __SCREAMING_SNAKE_CASE=1e-12 ,       __SCREAMING_SNAKE_CASE=32 ,       __SCREAMING_SNAKE_CASE=1 ,       __SCREAMING_SNAKE_CASE=0 ,       __SCREAMING_SNAKE_CASE=2 ,       **__SCREAMING_SNAKE_CASE ,       ):






        '''simple docstring'''

        super().__init__(pad_token_id=__SCREAMING_SNAKE_CASE ,       bos_token_id=__SCREAMING_SNAKE_CASE ,       eos_token_id=__SCREAMING_SNAKE_CASE ,       **__SCREAMING_SNAKE_CASE  )

        snake_case__     				=					vocab_size
        snake_case__     				=					hidden_size
        snake_case__     				=					num_hidden_layers
        snake_case__     				=					num_attention_heads
        snake_case__     				=					hidden_act
        snake_case__     				=					intermediate_size
        snake_case__     				=					hidden_dropout_prob
        snake_case__     				=					attention_probs_dropout_prob
        snake_case__     				=					max_position_embeddings
        snake_case__     				=					initializer_range
        snake_case__     				=					layer_norm_eps
        snake_case__     				=					relative_attention_num_buckets

