Skip to main content
. 2022 Oct 4;24(10):1418. doi: 10.3390/e24101418
Algorithm 2: Quantum key recovery attack.
Input: i,j[m] and V
Quantum oracle: |UVZ|UVZ+ZU
   1: Set the quantum state to |0V(1ij)i=jZqmn×Zqm2×Zqm2.
   2: Make a quantum Fourier transform on the first and third registers.
   3: Make a quantum oracle query and obtain (by writing Z=Z+ZU).
      1qmn1qm2U,Z,(i=jωZijZUij)|UVZ.
   4: Discard the last two registers and apply the quantum Fourier transform.
   5: Measure the first register and output α.