"""simple docstring"""



import csv

import tweepy

# Twitter API credentials
__lowercase		:		str														=							""
__lowercase		:		Dict														=							""
__lowercase		:		Tuple														=							""
__lowercase		:		Tuple														=							""





def    SCREAMING_SNAKE_CASE       (     snake_case):
     # authorize twitter, initialize tweepy
     __snake_case				=							tweepy.OAuthHandler(snake_case,      snake_case)
     auth.set_access_token(snake_case,      snake_case)
     __snake_case				=							tweepy.API(snake_case)

     # initialize a list to hold all the tweepy Tweets
     __snake_case				=							[]

     # make initial request for most recent tweets (200 is the maximum allowed count)
     __snake_case				=							api.user_timeline(screen_name=snake_case,      count=2_00)

     # save most recent tweets
     alltweets.extend(snake_case)

     # save the id of the oldest tweet less one
     __snake_case				=							alltweets[-1].id - 1

     # keep grabbing tweets until there are no tweets left to grab
     while len(snake_case) > 0:
          print(f"getting tweets before {oldest}")

          # all subsequent requests use the max_id param to prevent duplicates
          __snake_case				=							api.user_timeline(
              screen_name=snake_case,      count=2_00,      max_id=snake_case)

          # save most recent tweets
          alltweets.extend(snake_case)

          # update the id of the oldest tweet less one
          __snake_case				=							alltweets[-1].id - 1

          print(f"...{len(snake_case)} tweets downloaded so far")

     # transform the tweepy tweets into a 2D array that will populate the csv
     __snake_case				=							[[tweet.id_str, tweet.created_at, tweet.text] for tweet in alltweets]

     # write the csv
     with open(f"new_{screen_name}_tweets.csv",      '''w''') as f:
          __snake_case				=							csv.writer(snake_case)
          writer.writerow(['''id''', '''created_at''', '''text'''])
          writer.writerows(snake_case)


if __name__ == "__main__":
       # pass in the username of the account you want to download
       get_all_tweets("FirePing32")
"""simple docstring"""



import qiskit





def    SCREAMING_SNAKE_CASE       (     snake_case,      snake_case):
     __snake_case				=							qiskit.Aer.get_backend('''aer_simulator''')

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

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

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

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


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