


"""simple docstring"""






import qiskit
def 					A_      (      _lowerCAmelCase   :    int,   _lowerCAmelCase   :    int				):






     """simple docstring"""

     _a					= qiskit.Aer.get_backend('''aer_simulator'''				)

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

     # Map the quantum measurement to the classical bits
     circuit.measure([0],   [0]				)

     # Execute the circuit on the simulator
     _a					= qiskit.execute(SCREAMING_SNAKE_CASE_,   SCREAMING_SNAKE_CASE_,   shots=10_00				)

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


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


import unittest

from transformers import DonutProcessor


snake_case_			  = '''naver-clova-ix/donut-base'''


class       SCREAMING_SNAKE_CASE__					(unittest.TestCase     ):





    def       snake_case_				(      self):
         lowercase__    :   Dict      =       DonutProcessor.from_pretrained(a)





    def       snake_case_				(      self):
         lowercase__    :   Tuple      =       {
             'name': 'John Doe',
             'age': '99',
             'city': 'Atlanta',
             'state': 'GA',
             'zip': '30301',
             'phone': '123-4567',
             'nicknames': [{'nickname': 'Johnny'}, {'nickname': 'JD'}],
         }

         lowercase__    :   Tuple      =       (
             '<s_name>John Doe</s_name><s_age>99</s_age><s_city>Atlanta</s_city>'
             '<s_state>GA</s_state><s_zip>30301</s_zip><s_phone>123-4567</s_phone>'
             '<s_nicknames><s_nickname>Johnny</s_nickname>'
             '<sep/><s_nickname>JD</s_nickname></s_nicknames>'
         )
         lowercase__    :   str      =       self.processor.tokenajson(a)

         self.assertDictEqual(a						,   a)

