




import math

import qiskit
from qiskit import Aer, ClassicalRegister, QuantumCircuit, QuantumRegister, execute





def      UpperCAmelCase  (						UpperCamelCase__ = 1						,			UpperCamelCase__ = 1   )     ->     qiskit.result.counts.Counts:







				'''simple docstring'''


				if isinstance(UpperCamelCase__						,			UpperCamelCase__   ) or isinstance(UpperCamelCase__						,			UpperCamelCase__   ):
								raise TypeError("""inputs must be integers."""   )
				if (bit_a < 0) or (bit_a < 0):
								raise ValueError("""inputs must be positive."""   )
				if (math.floor(UpperCamelCase__   ) != bit_a) or (math.floor(UpperCamelCase__   ) != bit_a):
								raise ValueError("""inputs must be exact integers."""   )
				if (bit_a > 1) or (bit_a > 1):
								raise ValueError("""inputs must be less or equal to 1."""   )

				# build registers
				__lowerCAmelCase					=  QuantumRegister(2						,			"""qr"""   )
				__lowerCAmelCase					=  ClassicalRegister(2						,			"""cr"""   )

				__lowerCAmelCase					=  QuantumCircuit(UpperCamelCase__						,			UpperCamelCase__   )

				# entanglement the qubits
				quantum_circuit.h(1   )
				quantum_circuit.cx(1						,			0   )

				# send the information
				__lowerCAmelCase					=  str(UpperCamelCase__   ) + str(UpperCamelCase__   )

				if c_information == "11":
								quantum_circuit.x(1   )
								quantum_circuit.z(1   )
				elif c_information == "10":
								quantum_circuit.z(1   )
				elif c_information == "01":
								quantum_circuit.x(1   )
				else:
								quantum_circuit.i(1   )

				# unentangled the circuit
				quantum_circuit.cx(1						,			0   )
				quantum_circuit.h(1   )

				# measure the circuit
				quantum_circuit.measure(UpperCamelCase__						,			UpperCamelCase__   )

				__lowerCAmelCase					=  Aer.get_backend("""aer_simulator"""   )
				__lowerCAmelCase					=  execute(UpperCamelCase__						,			UpperCamelCase__						,			shots=10_00   )

				return job.result().get_counts(UpperCamelCase__   )


if __name__ == "__main__":
	print(f"""Counts for classical state send: {superdense_coding(1,1)}""")






"""simple docstring"""







def   __lowerCAmelCase(		__UpperCAmelCase  ,__UpperCAmelCase      ):






	"""simple docstring"""





	if n == 0:
		return 1

	elif n % 2 == 1:
		return binary_exponentiation(__UpperCAmelCase  ,n - 1      ) * a

	else:
		_lowercase			:     Dict      					=				binary_exponentiation(__UpperCAmelCase  ,n / 2      )
		return b * b


if __name__ == "__main__":
						try:
												SCREAMING_SNAKE_CASE						=    int(input('Enter Base : ').strip())
												SCREAMING_SNAKE_CASE						=    int(input('Enter Power : ').strip())
						except ValueError:
												print('Invalid literal for integer')

						SCREAMING_SNAKE_CASE						=    binary_exponentiation(BASE, POWER)
						print(f"""{BASE}^({POWER}) : {RESULT}""")



