


from datetime import datetime

import requests





def   _lowerCAmelCase				(   UpperCamelCase__:     str						) ->   List[str]:





 """simple docstring"""







 A								=				"""https://downloadgram.net/wp-json/wppress/video-downloader/video?url="""
 A								=				requests.get(base_url + url						).json()[0]["""urls"""][0]["""src"""]
 return requests.get(__lowerCAmelCase						).content


if __name__ == "__main__":
    _lowercase       :      str	=	input("Enter Video/IGTV url: ").strip()
    _lowercase       :      str	=	f'''{datetime.now():%Y-%m-%d_%H:%M:%S}.mp4'''
    with open(file_name, "wb") as fp:
        fp.write(download_video(url))
    print(f'''Done. Video saved to disk as {file_name}.''')







import qiskit





def   _lowerCAmelCase				(   UpperCamelCase__:     int = 2						) ->   qiskit.result.counts.Counts:





	"""simple docstring"""







	A								=				qubits

	# Using Aer's simulator
	A								=				qiskit.Aer.get_backend("""aer_simulator"""						)

	# Creating a Quantum Circuit acting on the q register
	A								=				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								=				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)}''')



