




"""simple docstring"""







import qiskit

def 						snake_case__       (					_lowerCamelCase,  _lowerCamelCase				)			->int:






  """simple docstring"""


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

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

  # 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
  __lowercase				:		Optional[Any]												=				qiskit.execute(_lowerCamelCase,  _lowerCamelCase,  shots=10_00				)

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


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






"""simple docstring"""







def 						snake_case__       (					_lowerCamelCase,  _lowerCamelCase				)			->int:






		"""simple docstring"""


		return abs(_lowerCamelCase				) if a == 0 else greatest_common_divisor(b % a,  _lowerCamelCase				)

def 						snake_case__       (					_lowerCamelCase,  _lowerCamelCase				)			->int:






		"""simple docstring"""


		while y:  # --> when y=0 then loop will terminate and return x as final GCD.
				__lowercase						,__lowercase				:		Any												=				y, x % y
		return abs(_lowerCamelCase				)

def 						snake_case__       (					)			->Optional[int]:






		"""simple docstring"""


		try:
				__lowercase				:		Optional[int]												=				input("Enter two integers separated by comma (,): "				).split(","				)
				__lowercase				:		Optional[Any]												=				int(nums[0]				)
				__lowercase				:		str												=				int(nums[1]				)
				print(
				    F'greatest_common_divisor({num_a}, {num_a}) = '
				    F'{greatest_common_divisor(_lowerCamelCase,  _lowerCamelCase				)}'				)
				print(F'By iterative gcd({num_a}, {num_a}) = {gcd_by_iterative(_lowerCamelCase,  _lowerCamelCase				)}'				)
		except (IndexError, UnboundLocalError, ValueError):
				print("Wrong input"				)


if __name__ == "__main__":
						main()
