


'''simple docstring'''
from collections.abc import Sequence


def     a   (    __a				,      __a     )						->			float:



					'''simple docstring'''






					return sum(c * (x**i) for i, c in enumerate(__a     )     )


def     a   (    __a				,      __a     )						->			float:



					'''simple docstring'''






					UpperCamelCase__     :Union[str, Any]							      =				0.0
					for coeff in reversed(__a     ):
										UpperCamelCase__     :Dict							      =				result * x + coeff
					return result


if __name__ == "__main__":
		__snake_case							   =  (0.0, 0.0, 5.0, 9.3, 7.0)
		__snake_case							   =  10.0
		print(evaluate_poly(poly, x))
		print(horner(poly, x))



'''simple docstring'''
import qiskit


def     a   (    __a				,      __a     )						->			qiskit.result.counts.Counts:



					'''simple docstring'''






					UpperCamelCase__     :int							      =				qiskit.Aer.get_backend('''aer_simulator'''     )

					# Create a Quantum Circuit acting on the q register
					UpperCamelCase__     :Any							      =				qiskit.QuantumCircuit(__a				,      __a     )

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

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

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


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