Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

Improve inequality for "a" in Shor's Algorithm documentation #1133

Merged
merged 2 commits into from
Jul 23, 2020
Merged

Conversation

splch
Copy link
Contributor

@splch splch commented Jul 23, 2020

Summary

The argument "a" can be written more succinctly. I reworded the description to use the inequality rather than stating a separate minimum value.

Details and comments

I believe incorporating all restrictions in one inequality is easier to understand. In addition, it sounds better to say "any integer" rather than "a random integer" because there may exist methods of choosing a more effective "a" for period finding.

a: Any integer that satisfies 2 ≤ a < N and gcd(a, N) = 1.

@jlapeyre
Copy link
Contributor

Looks like an improvement to me.

@woodsp-ibm
Copy link
Member

Maybe given that a is an integer instead of 2 ≤ a < N its a little simpler as 1 < a < N ?

@splch
Copy link
Contributor Author

splch commented Jul 23, 2020

@woodsp-ibm I like that a lot! The inequality looks a lot nicer now in my opinion.

@woodsp-ibm
Copy link
Member

FYI: The build overall currently has a problem due to very recent change to Terra, that we need to address, hence you see all the PRs here failing presently, including yours.

@splch
Copy link
Contributor Author

splch commented Jul 23, 2020

@woodsp-ibm Yeah, I had a feeling that was the case :) Thanks for putting my mind at ease that our inequality didn't break Qiskit Aqua! 😂

@woodsp-ibm woodsp-ibm changed the title Improve inequality for "a" in Shor's Algorithm Improve inequality for "a" in Shor's Algorithm documentation Jul 23, 2020
@woodsp-ibm woodsp-ibm merged commit 2540483 into qiskit-community:master Jul 23, 2020
manoelmarques pushed a commit to manoelmarques/qiskit-aqua that referenced this pull request Jul 28, 2020
…community#1133)

* Improve inequality for "a" in Shor's Algorithm

* change inequality to 1 < a < N
pbark pushed a commit to pbark/qiskit-aqua that referenced this pull request Sep 16, 2020
…community#1133)

* Improve inequality for "a" in Shor's Algorithm

* change inequality to 1 < a < N
mtreinish pushed a commit to mtreinish/qiskit-core that referenced this pull request Nov 20, 2020
…community/qiskit-aqua#1133)

* Improve inequality for "a" in Shor's Algorithm

* change inequality to 1 < a < N
manoelmarques pushed a commit to manoelmarques/qiskit-terra that referenced this pull request Dec 7, 2020
…community/qiskit-aqua#1133)

* Improve inequality for "a" in Shor's Algorithm

* change inequality to 1 < a < N
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants