


import sys
import webbrowser

import requests
from bsa import BeautifulSoup
from fake_useragent import UserAgent

if __name__ == "__main__":
   print("Googling.....")
   SCREAMING_SNAKE_CASE							:		Optional[int]       =					"https://www.google.com/search?q=" + " ".join(sys.argv[1:])
   SCREAMING_SNAKE_CASE							:		Dict       =					requests.get(url, headers={"UserAgent": UserAgent().random})
   # res.raise_for_status()
   with open("project1a.html", "wb") as out_file:  # only for knowing the class
      for data in res.iter_content(10_000):
         out_file.write(data)
   SCREAMING_SNAKE_CASE							:		int       =					BeautifulSoup(res.text, "html.parser")
   SCREAMING_SNAKE_CASE							:		List[str]       =					list(soup.select(".eZt8xd"))[:5]

   print(len(links))
   for link in links:
      if link.text == "Maps":
         webbrowser.open(link.get("href"))
      else:
         webbrowser.open(f"https://google.com{link.get('href')}")






import qiskit






def     SCREAMING_SNAKE_CASE(      __UpperCamelCase = 2 )	->						qiskit.result.counts.Counts:
				a__	:							Any      						= qubits

				# Using Aer's simulator
				a__	:							Dict      						= qiskit.Aer.get_backend("aer_simulator" )

				# Creating a Quantum Circuit acting on the q register
				a__	:							Dict      						= qiskit.QuantumCircuit(__UpperCamelCase	,				__UpperCamelCase )

				# Adding a H gate on qubit 0 (now q0 in superposition)
				circuit.h(0 )

				for i in range(1	,				__UpperCamelCase ):
								# Adding CX (CNOT) gate
								circuit.cx(i - 1	,				__UpperCamelCase )

				# Mapping the quantum measurement to the classical bits
				circuit.measure(list(range(__UpperCamelCase ) )	,				list(range(__UpperCamelCase ) ) )

				# Now measuring any one qubit would affect other qubits to collapse
				# their super position and have same state as the measured one.

				# Executing the circuit on the simulator
				a__	:							Any      						= qiskit.execute(__UpperCamelCase	,				__UpperCamelCase	,				shots=10_00 )

				return job.result().get_counts(__UpperCamelCase )


if __name__ == "__main__":
						print(F'Total count for various states are: {quantum_entanglement(3)}')


