


from __future__ import annotations

import os
from typing import Any

import requests

snake_case							:       Union[str, Any]										=	'''https://api.github.com'''

# https://docs.github.com/en/free-pro-team@latest/rest/reference/users#get-the-authenticated-user
snake_case							:       Union[str, Any]										=	BASE_URL + '''/user'''

# https://github.com/settings/tokens
snake_case							:       Dict										=	os.environ.get('''USER_TOKEN''', '''''')
def 							__lowerCamelCase		(					UpperCAmelCase_		:						str		):




      """simple docstring"""





      a		:int									=			{
          '''Authorization''': F'''token {auth_token}''',
          '''Accept''': '''application/vnd.github.v3+json''',
      }
      return requests.get(UpperCAmelCase_					,    headers=UpperCAmelCase_		).json()


if __name__ == "__main__":  # pragma: no cover
     if USER_TOKEN:
          for key, value in fetch_github_info(USER_TOKEN).items():
               print(F"""{key}: {value}""")
     else:
          raise ValueError('''\'USER_TOKEN\' field cannot be empty.''')









import qiskit
def 							__lowerCamelCase		(					UpperCAmelCase_		:						int					,    UpperCAmelCase_		:						int		):




      """simple docstring"""





      a		:Tuple									=			qiskit.Aer.get_backend('''aer_simulator'''		)

      # Create a Quantum Circuit acting on the q register
      a		:str									=			qiskit.QuantumCircuit(UpperCAmelCase_					,    UpperCAmelCase_		)

      # 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		:Optional[Any]									=			qiskit.execute(UpperCAmelCase_					,    UpperCAmelCase_					,    shots=1000		)

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


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





