


import math

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






def 	a__ (							A__ = 1,			A__ = 1							):
			if isinstance(A__,			A__							) or isinstance(A__,			A__							):
						raise TypeError('inputs must be integers.'							)
			if (bit_a < 0) or (bit_a < 0):
						raise ValueError('inputs must be positive.'							)
			if (math.floor(A__							) != bit_a) or (math.floor(A__							) != 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
			SCREAMING_SNAKE_CASE_		:    Tuple 		=				QuantumRegister(2,			'qr'							)
			SCREAMING_SNAKE_CASE_		:    Dict 		=				ClassicalRegister(2,			'cr'							)

			SCREAMING_SNAKE_CASE_		:    Tuple 		=				QuantumCircuit(A__,			A__							)

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

			# send the information
			SCREAMING_SNAKE_CASE_		:    Dict 		=				str(A__							) + str(A__							)

			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(A__,			A__							)

			SCREAMING_SNAKE_CASE_		:    List[str] 		=				Aer.get_backend('aer_simulator'							)
			SCREAMING_SNAKE_CASE_		:    Tuple 		=				execute(A__,			A__,			shots=1_0_0_0							)

			return job.result().get_counts(A__							)


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









def 	a__ (							A__ = 4_0_0_0_0_0_0							):

			if n <= 1:
						return 0
			SCREAMING_SNAKE_CASE_		:    Dict 		=				0
			SCREAMING_SNAKE_CASE_		:    Optional[int] 		=				2
			SCREAMING_SNAKE_CASE_		:    List[str] 		=				0
			while 4 * b + a <= n:
						SCREAMING_SNAKE_CASE_		,			SCREAMING_SNAKE_CASE_		:    List[str] 		=				b, 4 * b + a
						count += a
			return count + b


if __name__ == "__main__":
				print(F"""{solution() = }""")





