




import qiskit

def  SCREAMING_SNAKE_CASE							(       __UpperCamelCase = 2)      ->					qiskit.result.counts.Counts:
     a     =				qubits

     # Using Aer's simulator
     a     =				qiskit.Aer.get_backend("aer_simulator")

     # Creating a Quantum Circuit acting on the q register
     a     =				qiskit.QuantumCircuit(__UpperCamelCase		, __UpperCamelCase)

     # Adding a H gate on qubit 0 (now q0 in superposition)
     circuit.h(0)

     for i in range(1		, __UpperCamelCase):
          # Adding CX (CNOT) gate
          circuit.cx(i - 1		, __UpperCamelCase)

     # Mapping the quantum measurement to the classical bits
     circuit.measure(list(range(__UpperCamelCase))		, list(range(__UpperCamelCase)))

     # Now measuring any one qubit would affect other qubits to collapse
     # their super position and have same state as the measured one.

     # Executing the circuit on the simulator
     a     =				qiskit.execute(__UpperCamelCase		, __UpperCamelCase		, shots=10_00)

     return job.result().get_counts(__UpperCamelCase)


if __name__ == "__main__":
   print(F'Total count for various states are: {quantum_entanglement(3)}')











def  SCREAMING_SNAKE_CASE							(       __UpperCamelCase)      ->					int:
     return 1 if digit in (0, 1) else (digit * factorial(digit - 1))

def  SCREAMING_SNAKE_CASE							(       __UpperCamelCase)      ->					bool:
     a     =				0
     a     =				number
     while duplicate > 0:
          a  ,				a     =				divmod(__UpperCamelCase		, 10)
          fact_sum += factorial(__UpperCamelCase)
     return fact_sum == number


if __name__ == "__main__":
   print("Program to check whether a number is a Krisnamurthy Number or not.")
   lowercase__				:      str	   = int(input("Enter number: ").strip())
   print(
       F'{number} is {"" if krishnamurthy(number) else "not "}a Krishnamurthy Number.'
   )

