| Algorithm 1: Improved quantum algorithm for solving the quantum LWE problem. |
| Quantum oracle: |
| 1: Set the initial state to |
| 2: Apply a quantum Fourier transform on the all registers |
| and obtain |
| 3: Apply a quantum oracle query and obtain |
| 4: Apply a quantum Fourier transform on the first register |
| and obtain |
| 5: Discard the second register and measure the first register |
| 6: Output |