
'''simple docstring'''


import qiskit







def      SCREAMING_SNAKE_CASE				(				lowercase_    :      int = 2						):
						lowercase        =							qubits

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

						# Creating a Quantum Circuit acting on the q register
						lowercase        =							qiskit.QuantumCircuit(lowercase_ ,  lowercase_						)

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

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

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

						# 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
						lowercase        =							qiskit.execute(lowercase_ ,  lowercase_ ,  shots=1000						)

						return job.result().get_counts(lowercase_						)


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







'''simple docstring'''


import requests







def      SCREAMING_SNAKE_CASE				(				lowercase_    :      str ,  lowercase_    :      str						):
						lowercase        =							{"""Content-Type""": """application/json"""}
						lowercase        =							requests.post(lowercase_ ,  json={"""text""": message_body} ,  headers=lowercase_						)
						if response.status_code != 200:
												lowercase        =							(
												    """Request to slack returned an error """
												    F"""{response.status_code}, the response is:\n{response.text}"""
												)
												raise ValueError(lowercase_						)


if __name__ == "__main__":
						# Set the slack url to the one provided by Slack when you create the webhook at
						# https://my.slack.com/services/new/incoming-webhook/
						send_slack_message('''<YOUR MESSAGE BODY>''', '''<SLACK CHANNEL URL>''')


