






import qiskit





def 				snake_case  (     lowerCamelCase				,  lowerCamelCase					):




	'''simple docstring'''







	__lowercase             =  qiskit.Aer.get_backend("""aer_simulator"""					)

	# Create a Quantum Circuit acting on the q register
	__lowercase             =  qiskit.QuantumCircuit(lowerCamelCase				,  lowerCamelCase					)

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

	# Execute the circuit on the simulator
	__lowercase             =  qiskit.execute(lowerCamelCase				,  lowerCamelCase				,  shots=1_000					)

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


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














def 				snake_case  (     lowerCamelCase					):




	'''simple docstring'''







	if not isinstance(lowerCamelCase				,  lowerCamelCase					):
		raise ValueError("""check_bouncy() accepts only integer arguments"""					)
	__lowercase             =  str(lowerCamelCase					)
	__lowercase             =  """""".join(sorted(lowerCamelCase					)					)
	return sorted_str_n != str_n and sorted_str_n[::-1] != str_n





def 				snake_case  (     lowerCamelCase = 99					):




	'''simple docstring'''







	if not 0 < percent < 100:
		raise ValueError("""solution() only accepts values from 0 to 100"""					)
	__lowercase             =  0
	__lowercase             =  1

	while True:
		if check_bouncy(lowerCamelCase					):
			bouncy_num += 1
		if (bouncy_num / num) * 100 >= percent:
			return num
		num += 1


if __name__ == "__main__":
						from doctest import testmod

						testmod()
						print(F'''{solution(99)}''')

