I Finding the period in a modular exponentiation sequence

  • I
  • Thread starter Thread starter Bob Walance
  • Start date Start date
  • Tags Tags
    Period Sequence
AI Thread Summary
The discussion centers on understanding the period of a modular exponentiation sequence related to Shor's algorithm. The period is established as 4, with the sequence repeating every fourth value when the first value is congruent to 1. It explains that when the modular exponentiation returns to 1, the period can be calculated as the difference between the current index and the initial index where the value was 1. For classical computers, finding the first occurrence of 1 after the initial value is key, while quantum computers can leverage the quantum Fourier transform for a more efficient solution. This highlights the differences in computational approaches to determining the period in modular exponentiation sequences.
Bob Walance
Insights Author
Gold Member
Messages
82
Reaction score
55
This question is related to Shor's algorithm and its use of modular exponentiation.

In the table below, the period of the sequence in the third column is obviously equal to 4. That is, its value repeats every fourth row.

What I am trying to find out is why it is that when the first value in third column is congruent with 1 then the period of the sequence is the corresponding value of 'r'.

I have searched for an answer but have had no luck. It might be that I don't know how to phrase the question properly to find an answer on Google.

r
2^r
(2^r) % 15
0​
1​
1​
1​
2​
2​
2​
4​
4​
3​
8​
8​
4​
16​
1​
5​
32​
2​
6​
64​
4​
7​
128​
8​
8​
256​
1​
9​
512​
2​
10​
1024​
4​
11​
2048​
8​
12​
4096​
1​
13​
8192​
2​
 
Last edited:
Mathematics news on Phys.org
The answer to this question was provided to me at math.stackexchange. I have added an r=0 entry to the table above to make this answer clearer:

1) When r = 0 (let's call this r0) then '(2^0) % 15' is congruent with 1.
2) As r is incremented beyond 0 then '(2^r) % 15' will change from 1 to some other value.
3) When '(2^r) % 15' is equal to 1 again (at rP) then the period of the modular exponentiation sequence will be rP-r0=rP.

If the search for the period of this modular exponentiation sequence is done with a classical computer then it is convenient to find the first r (after r=0) that has the modexp value congruent with 1 again. However, if the search is done using a quantum computer then the quantum Fourier transform would be more efficient in finding the sequence's period.
 
Thread 'Video on imaginary numbers and some queries'
Hi, I was watching the following video. I found some points confusing. Could you please help me to understand the gaps? Thanks, in advance! Question 1: Around 4:22, the video says the following. So for those mathematicians, negative numbers didn't exist. You could subtract, that is find the difference between two positive quantities, but you couldn't have a negative answer or negative coefficients. Mathematicians were so averse to negative numbers that there was no single quadratic...
Thread 'Unit Circle Double Angle Derivations'
Here I made a terrible mistake of assuming this to be an equilateral triangle and set 2sinx=1 => x=pi/6. Although this did derive the double angle formulas it also led into a terrible mess trying to find all the combinations of sides. I must have been tired and just assumed 6x=180 and 2sinx=1. By that time, I was so mindset that I nearly scolded a person for even saying 90-x. I wonder if this is a case of biased observation that seeks to dis credit me like Jesus of Nazareth since in reality...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...

Similar threads

Back
Top