Skip to main content
. 2022 Oct 4;24(10):1418. doi: 10.3390/e24101418
Algorithm 1: Improved quantum algorithm for solving the quantum LWE problem.
Quantum oracle: |u|y|u|u·sk+eu+y
1: Set the initial state to |0n|1
2: Apply a quantum Fourier transform on the all registers
   and obtain 1qnuZqn|u1qxZqωx|x
3: Apply a quantum oracle query and obtain
   1qnuZqnωu·skeu|u1qxZqωx|x
4: Apply a quantum Fourier transform on the first register
   and obtain 1qnu,yZqnωeu|y1qxZqωx|x
5: Discard the second register and measure the first register
6: Output sk