10.12.2012 Views

Prime Numbers

Prime Numbers

Prime Numbers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

422 Chapter 8 THE UBIQUITY OF PRIME NUMBERS<br />

Using appropriate banks of unitary operators, it turns out that if q>n,<br />

and x be a chosen residue (mod n), then one can also form the state<br />

ψ ′ = 1<br />

2d/2 2 d −1<br />

a=0<br />

<br />

| x a mod n 〉,<br />

again as a superposition. The difference now is that if we ask for the probability<br />

that the entire register be found in state | b 〉, that probability is zero unless<br />

b is an a-th power residue modulo n.<br />

We end this very brief conceptual sketch by noting that the sovereign of all<br />

divide-and-conquer algorithms, namely the FFT, can be given a concise QTM<br />

form. It turns out that by employing unitary operators, all of them pairwise<br />

as above, in a specific order, one can create the state<br />

ψ ′′ = 1 q−1<br />

√ e<br />

q<br />

2πiac/q | c 〉,<br />

a=0<br />

and this allows for many interesting algorithms to go through on QTMs—<br />

at least in principle—with polynomial-time complexity. For the moment, we<br />

remark that addition, multiplication, division, modular powering and FFT<br />

can all be done in time O(d α ), where d is the number of qbits in each of<br />

(finitely many) registers and α is some appropriate power. The aforementioned<br />

references have all the details for these fundamental operations. Though<br />

nobody has carried out the actual QTM arithmetic—only a few atomic sites<br />

have been built so far in laboratories—the literature descriptions are clear:<br />

We expect nature to be able to perform massive parallelism on d-bit integers,<br />

in time only a power of d.<br />

8.5.2 The Shor quantum algorithm for factoring<br />

Just as we so briefly overviewed the QTM concept, we now also briefly discuss<br />

some of the new quantum algorithms that pertain to number-theoretical<br />

problems. It is an astute observation in [Shor 1994, 1999] that one may factor<br />

n by finding the exponent orders of random integers (mod n) via the following<br />

proposition.<br />

Proposition 8.5.1. Suppose the odd integer n>1 has exactly k distinct<br />

prime factors. For a randomly chosen member y of Z ∗ n with multiplicative<br />

order r, the probability that r is even and that y r/2 ≡−1(modn) is at least<br />

1 − 1/2 k−1 .<br />

(See Exercise 8.22, for a slightly stronger result.) The implication of this<br />

proposition is that one can—at least in principle—factor n by finding “a few”<br />

integers y with corresponding (even) orders r. For having done that, we look<br />

at<br />

gcd(y r/2 − 1,n)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!