
"""simple docstring"""







def    __lowerCAmelCase    (_UpperCamelCase = 1000		):
	__lowerCAmelCase      :						List[str]						      =				2**power
	__lowerCAmelCase      :						List[Any]						      =				str(_UpperCamelCase		)
	__lowerCAmelCase      :						List[str]						      =				list(_UpperCamelCase		)
	__lowerCAmelCase      :						str						      =				0

	for i in list_num:
		sum_of_num += int(_UpperCamelCase		)

	return sum_of_num


if __name__ == "__main__":
					lowerCamelCase__        =		int(input("""Enter the power of 2: """).strip())
					print("""2 ^ """, power, """ = """, 2**power)
					lowerCamelCase__        =		solution(power)
					print("""Sum of the digits is: """, result)

"""simple docstring"""







import qiskit
def    __lowerCAmelCase    (_UpperCamelCase	,  _UpperCamelCase		):
	__lowerCAmelCase      :						Union[str, Any]						      =				qiskit.Aer.get_backend('aer_simulator'		)

	# Create a Quantum Circuit acting on the q register
	__lowerCAmelCase      :						str						      =				qiskit.QuantumCircuit(_UpperCamelCase	,  _UpperCamelCase		)

	# Map the quantum measurement to the classical bits
	circuit.measure([0]	,  [0]		)

	# Execute the circuit on the simulator
	__lowerCAmelCase      :						Optional[int]						      =				qiskit.execute(_UpperCamelCase	,  _UpperCamelCase	,  shots=1000		)

	# Return the histogram data of the results of the experiment.
	return job.result().get_counts(_UpperCamelCase		)


if __name__ == "__main__":
							print(f'Total count for various states are: {single_qubit_measure(1, 1)}')