Shor-Algorithm-on-IBM-Quantum-Experience
Shor-Algorithm-on-IBM-Quantum-Experience copied to clipboard
Running Shor's Algorithm using IBM Quantum Experience and Measuring the result by implementation on IBM's 5-Qubit Quantum Computer (Raven)
https://github.com/amitabhyadav/Shor-Algorithm-on-IBM-Quantum-Experience/blob/ab2f496249a5ea56d572e38e90742871bc884599/Shor_version2_5bit_simulation.py#L100
https://github.com/amitabhyadav/Shor-Algorithm-on-IBM-Quantum-Experience/blob/master/Shor_version1_5bit_hardware.py#L118 https://github.com/amitabhyadav/Shor-Algorithm-on-IBM-Quantum-Experience/blob/master/Shor_version1_5bit_hardware.py#L159 According to the [algorithm](https://en.wikipedia.org/wiki/Shor%27s_algorithm), at least one of the following is a nontrivial factor of N: - gcd(a^{r/2}+1,N) - gcd(a^{r/2}-1,N) It seems that the code is neglecting the...