Quantum Computing, Crypto, Quantum Physics, Cryptography, Education.
required libraries import numpy as np from qiskit import QuantumCircuit, Aer, transpile, assemble from math import gcd from numpy.random import randint from fractions import Fraction # Set the value of N for factorization N = 15 # Generate a random number between 2 and N-1 a = randint(2, 15)