Skip to main content
. 2019 Aug 15;21(8):800. doi: 10.3390/e21080800

Figure 42.

Figure 42

Circuit diagram of the quantum subroutine used in Shor’s algorithm. A 2n-qubit register is initiated in the zero-state 0, and an n-qubit register in 1. Basis change of the input-register part of the controlled modular exponentiation operator allow for sampling a probability distribution with peaks at s/r.