Algorithm 4: Repeat the following steps times |
Prepare an n-QSL-bit query register in the state, and an answer register containing one QSL-bit in the state.
Apply a Walsh-Hadamard transform on the query register
Apply the oracle
Apply a Walsh-Hadamard transform on the query register
Apply to the query register.
Apply an n-controlled to the query register.
Apply to the query register.
Apply a Walsh-Hadamard transform on the query register
Measure the query register to obtain a candidate y for .
Check the output candidates for using the oracle, and return the candidate that outputs 1, if any. |