Skip to main content
. 2025 Jun 2;27(6):596. doi: 10.3390/e27060596
Algorithm 4 Quantum Recursive Fourier Sampling
  • Level:  1kl

  • Quantum oracles: Ufk+1 and Ugk

  • Controls: qubit strings |ψxj, 1jk

  • Bias/Target: single qubit |ψy

  • 1:

    create ancilla qubit string |ψxk+1:=|0 and qubit |ψy:=|1

  • 2:

    apply Hnk+1+1 to |ψxk+1,ψy

  • 3:

    apply Ufk+1 to |ψx1,,ψxk+1,ψy

  • 4:

    apply Hnk+1 to |ψxk+1

  • 5:

    apply Ugk to |ψx1,,ψxk+1,ψy

  • 6:

    apply Hnk+1 to |ψxk+1

  • 7:

    apply Ufk+1 to |ψx1,,ψxk+1,ψy

  • 8:

    apply Hnk+1+1 to |ψxk+1,ψy

  • 9:

    discard ancillas  |ψxk+1,ψy