I am a mechanical engineer conducting an undergrad research project on quantum computing so fairly new to the whole thing, forgive me if this is a silly question.
I understand the basic principles of the Grover search algorithm and am in the process of investigating some of its applications to optimisation (Grover Adaptive Search). The use of the oracle and the diffusion operator to increase the amplitude of the desired state makes sense to me, but I am confused by the physical representation of this index.
From what I understand, the process is as follows: -A unitary transformation, the oracle, is used to flip the sign of the amplitude corresponding to the desired entry. -Diffusion operator is used to amplify this amplitude, and diminish all others. -After a certain number of iterations, probability is high enough to measure the system in the computational basis and obtain the desired result.
However, I am confused as to what this measurement actually represents: in the initial superposed state, each possible outcome corresponds to an entry in the (unstructured) database. How is each data entry encoded by the qubits? Is each given state essentially just a binary string?
What determines the number of qubits needed for this process? For example, this example of Grover optimisation uses 6 qubits to find the optimum solution out of 8 possible values for a QUBO problem - but why?
Apologies for the lack of concise questions, I hope someone is able to understand what I'm getting at, else I am happy to be directed towards recommended reading. Thanks.