






"""simple docstring"""
import qiskit






def 			__UpperCamelCase	(		snake_case__   ,   snake_case__					):
	A_		:						Tuple	    =   qiskit.Aer.get_backend("""aer_simulator"""					)

	# Create a Quantum Circuit acting on the q register
	A_		:						Optional[int]	    =   qiskit.QuantumCircuit(snake_case__   ,   snake_case__					)

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

	# Execute the circuit on the simulator
	A_		:						Optional[int]	    =   qiskit.execute(snake_case__   ,   snake_case__   ,   shots=1_000					)

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


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









"""simple docstring"""
from maths.is_square_free import is_square_free
from maths.prime_factors import prime_factors






def 			__UpperCamelCase	(		snake_case__					):
	A_		:						List[str]	    =   prime_factors(snake_case__					)
	if is_square_free(snake_case__					):
		return -1 if len(snake_case__					) % 2 else 1
	return 0


if __name__ == "__main__":
							import doctest

							doctest.testmod()

