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

  • Conjugate pair oracles: Fk+1 and Gk

  • Controls: conjugate pairs Xj, 1jk

  • Bias/Target: conjugate pair Y

  • 1:

    create ancillas Xk+1=[xk+1,χk+1] with χk+1:=0 and Y=[y,υ] with υ:=1

  • 2:

    apply Fk+1 to (X1,,Xk+1,Y)

  • 3:

    apply Hnk+1 to Xk+1

  • 4:

    apply Gk to (X1,,Xk+1,Y)

  • 5:

    apply Hnk+1 to Xk+1

  • 6:

    apply Fk+1 to (X1,,Xk+1,Y)

  • 7:

    discard ancillas  (Xk+1,Y)