Quantum Computing, Quantum, Quantum Physics, Shors Algorithm, Qiskit.
that the phase we measure will be s/r where: def qpe_amod15(a): """Performs quantum phase estimation on the operation a*r mod 15. Args: a (int): This is 'a' in a*r mod 15 Returns: float: Estimate of the phase """ N_COUNT = 8 qc = QuantumCircuit(4+N_COUNT, N_COUNT) for q in range(N_COUNT): qc.h(q) #