| Algorithm 3 Modified g-database algorithm. | |||
|
Input:, classical query access to g Output: The g-database 1: H-gate operations are performed on qubits (not necessarily continuous) for the front . 2: For each , classical queries are performed, and then the unitary operator is applied in the second register. | |||
| 3: Return | ▷ Return the g-database | ||