Finding the period in a modular exponentiation sequence

In summary, the conversation is about the use of modular exponentiation in Shor's algorithm and how the period of the sequence is related to the value of 'r'. The period repeats every fourth row and when the first value in the third column is congruent to 1, the period of the sequence is the corresponding value of 'r'. The answer to this question was provided at math.stackexchange and explains that when '(2^r) % 15' is equal to 1 again, the period of the modular exponentiation sequence will be rP-r0=rP. This process can be done more efficiently using a quantum computer and the quantum Fourier transform.
  • #1
Bob Walance
Insights Author
Gold Member
81
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
  • #2
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.
 

FAQ: Finding the period in a modular exponentiation sequence

What is a modular exponentiation sequence?

A modular exponentiation sequence is a sequence of numbers that are calculated by taking the base number to increasingly higher powers and then taking the remainder when divided by a specific modulus.

How is the period in a modular exponentiation sequence found?

The period in a modular exponentiation sequence can be found by identifying the repeating pattern in the sequence. This pattern will have a length equal to the modulus minus one.

Why is finding the period in a modular exponentiation sequence important?

Finding the period in a modular exponentiation sequence is important because it allows us to efficiently calculate large powers of a number without needing to perform all the intermediate calculations. This is useful in various applications, such as cryptography and data encryption.

What is the relationship between the period and the modulus in a modular exponentiation sequence?

The period in a modular exponentiation sequence will always be one less than the modulus. This means that the period can be used to determine the modulus, as well as the other way around.

Can the period in a modular exponentiation sequence be longer than the modulus?

No, the period in a modular exponentiation sequence can never be longer than the modulus. This is because the remainder when dividing by the modulus can only be between 0 and the modulus minus one.

Similar threads

Replies
3
Views
3K
Replies
3
Views
1K
Replies
4
Views
2K
Replies
4
Views
1K
Replies
2
Views
1K
Replies
4
Views
3K
Replies
3
Views
3K
Back
Top