Measure in grover's alg and shift phase

liechmaster
Messages
1
Reaction score
0
hi , i am new here so at first i want to say hello to all of You.
as title says i have two questions about qrover's algorithm, first one is more general i guess:
1. in the most of articles i have read about this algorithm the measure wasn't well explained,problem is that authors wrote "now we measure first n qubits"
when we are using n+1 ( one is as control qubit in oracles transformation)
my question is.. how we can measure only n qubits? what about that control qubit? i know it is not important one but i guess we can't just throw it out...
2. i am not sure if i well understand the shift phase , i mean the step when our solution qubit |x> changes its state to -|x>
is all about that in the oracle transformation? when we got gubit register |z> ( made from state |00..0> by H x H ... x H gates) and single qubit in state |1> and then we apply the H gate on it? and on that n+1 qubits we apply simple black box and in result : (-1)^f(z)|z>*[(|0>-|1>)/sqrt(2)] ( where f(x)=1 for solution and 0 for others)
is is all about changing the phase on solution qubit?
i hope my text is readable enough ; ) ( maybe little chaotic)
looking forward for replays.
 
Physics news on Phys.org


Hello and welcome to the world of quantum computing!
To answer your first question, when we talk about measuring "n" qubits in Grover's algorithm, we are referring to the target qubits that we are trying to find the solution for. The control qubit is not included in this measurement because it is not part of the solution space that we are searching for. It is used as a control for the oracle transformation, but it does not affect the measurement of the solution qubits. So, in essence, we are measuring only the qubits that are relevant to our problem.

As for your second question, yes, the shift phase is a crucial step in Grover's algorithm and it is indeed part of the oracle transformation. The idea behind the shift phase is to amplify the amplitude of the solution qubit while suppressing the amplitudes of the other qubits. This is achieved by applying the Hadamard gate to the solution qubit and then applying the oracle transformation, which flips the phase of the solution qubit. This results in the solution qubit having a higher amplitude compared to the other qubits, making it more likely to be measured as the solution.

I hope this helps clarify your understanding of Grover's algorithm. Happy learning!
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. Towards the end of the first lecture for the Qiskit Global Summer School 2025, Foundations of Quantum Mechanics, Olivia Lanes (Global Lead, Content and Education IBM) stated... Source: https://www.physicsforums.com/insights/quantum-entanglement-is-a-kinematic-fact-not-a-dynamical-effect/ by @RUTA
If we release an electron around a positively charged sphere, the initial state of electron is a linear combination of Hydrogen-like states. According to quantum mechanics, evolution of time would not change this initial state because the potential is time independent. However, classically we expect the electron to collide with the sphere. So, it seems that the quantum and classics predict different behaviours!

Similar threads

Back
Top