


'''simple docstring'''
def    a__			(   lowerCAmelCase__		)       ->      Tuple:
    UpperCAmelCase__     :						Dict						=							int(lowerCAmelCase__		)
    if n_element < 1:
        UpperCAmelCase__     :						Dict						=							ValueError('''a should be a positive number'''		)
        raise my_error

    UpperCAmelCase__     :						Dict						=							[1]
    UpperCAmelCase__     :						Optional[Any]						=							(0, 0, 0)
    UpperCAmelCase__     :						Any						=							1
    while index < n_element:
        while hamming_list[i] * 2 <= hamming_list[-1]:
            i += 1
        while hamming_list[j] * 3 <= hamming_list[-1]:
            j += 1
        while hamming_list[k] * 5 <= hamming_list[-1]:
            k += 1
        hamming_list.append(
            min(hamming_list[i] * 2    ,   hamming_list[j] * 3    ,   hamming_list[k] * 5		)		)
        index += 1
    return hamming_list


if __name__ == "__main__":
  UpperCamelCase__          = input('''Enter the last number (nth term) of the Hamming Number Series: ''')
  print('''Formula of Hamming Number Series => 2^i * 3^j * 5^k''')
  UpperCamelCase__          = hamming(int(n))
  print('''-----------------------------------------------------''')
  print(F"""The list with nth numbers is: {hamming_numbers}""")
  print('''-----------------------------------------------------''')




import qiskit


def     lowercase	(    a     , a ):



		'''simple docstring'''




		SCREAMING_SNAKE_CASE_				:int				     =						qiskit.Aer.get_backend("aer_simulator" )

		# Create a Quantum Circuit acting on the q register
		SCREAMING_SNAKE_CASE_				:Union[str, Any]				     =						qiskit.QuantumCircuit(a     , a )

		# Apply X (NOT) Gate to Qubits 0 & 1
		circuit.x(0 )
		circuit.x(1 )

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

		# Execute the circuit on the qasm simulator
		SCREAMING_SNAKE_CASE_				:Any				     =						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__":
		SCREAMING_SNAKE_CASE__     					=			single_qubit_measure(2, 2)
		print(F'''Total count for various states are: {counts}''')






