The Fastest Possible Search
Algorithm

   Sep, 2011
                        Daniel Austin
                        Technical Staff
                        PayPal, Inc.
Surge 2011 Conference
September 28, 2011
INTRO: GROVER’S SEARCH

• “Grover‟s Search” is the name of a
  Quantum Computing algorithm for
  searching random databases. It‟s the
  fastest possible search algorithm in this
  universe, running in O(N^1/2) (as
  opposed to O(N) in the macroverse)

• The challenge: Quantum Computing
  101 in 10 minutes



                                Confidential and Proprietary
QUANTUM COMPUTING 101

     • Describes quantum logical processes
       analogous to classical computing
     • Multivariate Logic
           – Bits: yes|| no
           – Qubits: yes||no||maybe
           – Probabilistic results instead of hard answers
     • Quantum “Weirdness”
           – Teleportation, superdense coding, non-
             causal computations, multiversal
             parallelism, entanglement, cryptography
R. P. Feynman, “Quantum mechanical computers”, Optics News, February 1985, 11, p. 11



                                                                         Confidential and Proprietary
CURRENT STATE OF QUANTUM
COMPUTATIONAL PLAY

•   We can now read and write 16 qubits
•   Transient spintronics experiments ~ 2000 ms!
•   Teleportation: intercontinental, ~ 5000 KM
•   IBM demonstrates true entanglement 2006
•   RSA algorithm Cracked 2008
•   Yale demonstrates 1st quantum chip 2009
•   D-Wave Announces the first commercially
    available „quantum computer‟ May 2011!
    – (But does it really work??)




                                    Confidential and Proprietary
QUANTUM LOGIC GATES


• Like classical logic
  circuits, but
  additional quantum
  logic gates
• Hadamard, Pi/8
  (phase), CNOT,
  many others


Images courtesy Wikipedia.com



                                Confidential and Proprietary
GROVER’S SEARCH




Image courtesy Bernard Omer “Quantum Programming in QCL” 2007


                                                                Confidential and Proprietary
GROVER’S CODE!

operator diffuse (qureg q) {
      H(q); // Hadamard Transform
     Not(q); // Invert q
     CPhase(pi, q); // Rotate if q=1111..
     !Not(q); // undo inversion
     !H(q); // undo Hadamard Transform
}




                               Confidential and Proprietary
FASTEST POSSIBLE?? PROVE IT!

• Classical v. Quantum: O(N) v
  O(N^1/2) (!)
• Any alternate algorithm will have to
  run at least as many iterations
• Proof can‟t be contained in 1 slide! 




                               Confidential and Proprietary
SUMMING UP

Quantum Computing is real and coming
 soon to a computer near you
QC algorithms are qualitatively different
 and can perform non-classical feats of
 computation
Rapid progress in the field right now
  – 1st commercial implementations
  – Quantum cryptography, teleportation,
    spintronics all featured in Nature this week!



                                    Confidential and Proprietary
QUANTUM ADVICE
I think I can safely say that nobody understands
quantum mechanics. ... Do not keep saying to yourself,
if you can possibly avoid it, 'But how can it be like that?'
because you will get 'down the drain', into a blind alley
from which nobody has yet escaped. Nobody knows how
it can be like that.

Richard Feynman, The Character of Physical Law



                        Daniel Austin
                        PayPal, Inc.
                        daaustin@PayPal.com
                        @daniel_b_austin


                                            Confidential and Proprietary

The Fastest Possible Search Algorithm

  • 1.
    The Fastest PossibleSearch Algorithm Sep, 2011 Daniel Austin Technical Staff PayPal, Inc. Surge 2011 Conference September 28, 2011
  • 2.
    INTRO: GROVER’S SEARCH •“Grover‟s Search” is the name of a Quantum Computing algorithm for searching random databases. It‟s the fastest possible search algorithm in this universe, running in O(N^1/2) (as opposed to O(N) in the macroverse) • The challenge: Quantum Computing 101 in 10 minutes Confidential and Proprietary
  • 3.
    QUANTUM COMPUTING 101 • Describes quantum logical processes analogous to classical computing • Multivariate Logic – Bits: yes|| no – Qubits: yes||no||maybe – Probabilistic results instead of hard answers • Quantum “Weirdness” – Teleportation, superdense coding, non- causal computations, multiversal parallelism, entanglement, cryptography R. P. Feynman, “Quantum mechanical computers”, Optics News, February 1985, 11, p. 11 Confidential and Proprietary
  • 4.
    CURRENT STATE OFQUANTUM COMPUTATIONAL PLAY • We can now read and write 16 qubits • Transient spintronics experiments ~ 2000 ms! • Teleportation: intercontinental, ~ 5000 KM • IBM demonstrates true entanglement 2006 • RSA algorithm Cracked 2008 • Yale demonstrates 1st quantum chip 2009 • D-Wave Announces the first commercially available „quantum computer‟ May 2011! – (But does it really work??) Confidential and Proprietary
  • 5.
    QUANTUM LOGIC GATES •Like classical logic circuits, but additional quantum logic gates • Hadamard, Pi/8 (phase), CNOT, many others Images courtesy Wikipedia.com Confidential and Proprietary
  • 6.
    GROVER’S SEARCH Image courtesyBernard Omer “Quantum Programming in QCL” 2007 Confidential and Proprietary
  • 7.
    GROVER’S CODE! operator diffuse(qureg q) { H(q); // Hadamard Transform Not(q); // Invert q CPhase(pi, q); // Rotate if q=1111.. !Not(q); // undo inversion !H(q); // undo Hadamard Transform } Confidential and Proprietary
  • 8.
    FASTEST POSSIBLE?? PROVEIT! • Classical v. Quantum: O(N) v O(N^1/2) (!) • Any alternate algorithm will have to run at least as many iterations • Proof can‟t be contained in 1 slide!  Confidential and Proprietary
  • 9.
    SUMMING UP Quantum Computingis real and coming soon to a computer near you QC algorithms are qualitatively different and can perform non-classical feats of computation Rapid progress in the field right now – 1st commercial implementations – Quantum cryptography, teleportation, spintronics all featured in Nature this week! Confidential and Proprietary
  • 10.
    QUANTUM ADVICE I thinkI can safely say that nobody understands quantum mechanics. ... Do not keep saying to yourself, if you can possibly avoid it, 'But how can it be like that?' because you will get 'down the drain', into a blind alley from which nobody has yet escaped. Nobody knows how it can be like that. Richard Feynman, The Character of Physical Law Daniel Austin PayPal, Inc. daaustin@PayPal.com @daniel_b_austin Confidential and Proprietary

Editor's Notes

  • #2 Note that this is a work in progressStill being worked on, things are fluid though the direction is clear