Shor Algorithm - Post measurement state

Click For Summary

Discussion Overview

The discussion revolves around the Shor algorithm, specifically focusing on the post-measurement state of quantum registers and the implications of measurements in the algorithm's process. Participants explore concepts related to entanglement, the quantum Fourier transform (QFT), and the deferred measurement principle.

Discussion Character

  • Exploratory
  • Technical explanation
  • Conceptual clarification
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant questions whether measuring the second register in the Shor algorithm provides useful information about the first register, suggesting that the measurement leads to a state proportional to a superposition of values.
  • Another participant argues that measuring the second register is unnecessary and that the first register would revert to a uniform distribution if the second register is discarded.
  • There is a discussion about the implications of entanglement and whether it accurately describes the relationship between the registers after measurement.
  • A participant expresses confusion regarding the quantum Fourier transform and its role in the algorithm, seeking clarification on its significance compared to classical Fourier transforms.
  • Another participant raises a question about the deferred measurement principle, inquiring if early measurement would yield the same results.
  • A response clarifies that measuring at different stages of the algorithm would not yield the same results, indicating the importance of the measurement order.
  • Further inquiries are made about implementing controlled operations within the algorithm, emphasizing the need to simplify complex operations into manageable components.

Areas of Agreement / Disagreement

Participants express differing views on the necessity and implications of measuring the second register, as well as the role of entanglement. There is no consensus on the best approach to understanding the quantum Fourier transform or the implications of the deferred measurement principle.

Contextual Notes

Participants acknowledge the complexity of the concepts involved, including the relationship between measurements and quantum states, the nature of superpositions versus probability distributions, and the specific operations required in the Shor algorithm.

Ricardo Belchior
Messages
13
Reaction score
0
Hello!

So I'm working to try to understand shor algorithm and I have some doubts.

So, after the hadamard gates we apply the unitary gate that construct the function yk mod N. Next we do a measurement in the second register to get some function value. So, when I do this measurement on the second register, I will get, in the first register, only the values of k that correspond to that function value.

My question is, is that right? I'm I thinking straight? If so, who does that happen? Entanglement?

Thanks
 
Physics news on Phys.org
You don't actually need to measure the second register. You can just throw it out.

But yes, if you measure the second register and get the result ##m## then that tells you the first register is in a state proportional to ##\sum_{j} |jl+x \rangle##, where ##x## is the value that satisfies ##b^x \equiv m \pmod{R}## and ##b^l \pmod{R} \equiv 1##. But you still don't know ##x## or ##l##, and they're intractable to compute, so really you haven't learned anything more at that point than you would by just classical random sampling. The fun quantum stuff only happens in the next step when you apply the quantum Fourier transform (and at that point it matters that you have a superposition instead of a probability distribution).

I wouldn't consider "entanglement" to be a good description of why this happens. It's just kinda what has to happen in order for things to be consistent. If you some register storing ##x##, then compute ##b^x## into another register, then obviously the relationship between the two isn't affected by the order you measure them. If you measured the second register and got ##m##, then measured the first register and got some value ##x## that didn't satisfy ##b^x = m##, that would be pretty ridiculous.
 
Thanks for the great answer.

Exactly, that state cannot be computed. But if I throw away the second register, the first one will have the same probabilities for all values, just like the output of hadamard gates, right?

Strilanc said:
(and at that point it matters that you have a superposition instead of a probability distribution).

What do you mean by that?

I think my biggest struggle is to understand what goes into the QFT.

Sorry for all the questions, but I'm having a really hard time to understand all this.

Thanks
 
You should learn about the discrete Fourier transform separately, classically, before trying to understand it in combination with quantum computing and in combination with a specific algorithm in quantum computing.
 
Hello again,

So I have another question. In Shor algorithm it is applied the deffered measurment principle, right? I mean, if i did the measurment at the beginning, the results would be the same?

cheers
 
What do you mean "at the beginning"? If you measure the phase-estimation register before the QFT, or the work register when only some of the multiplications have been done, no you won't get the same answer.
 
Ok I get it. But i still have some hard times to understand the phase-estimation. I think the bottom question is : How do I implement the controlled-U to implement ax mod N?
 
You break it down into simpler and simpler operations until you're left with just (a whole lot of) constant-sized operations.

I've been working on a paper that does this. Here's my simplified dependency graph:

dependencies.png


And two of the steps, as an example:

controlled-modular-multiply-accumulate.png


controlled-modular-double.png
 

Similar threads

  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
1K