Introduction to Quantum Computing

Similar documents
Factoring on a Quantum Computer

Shor s Prime Factorization Algorithm

Introduction to Quantum Computing

Quantum Information & Quantum Computation

Introduction to Quantum Computing for Folks

Introduction to Quantum Computing

Lecture 3: Constructing a Quantum Model

Chapter 10. Quantum algorithms

Shor s Algorithm. Elisa Bäumer, Jan-Grimo Sobez, Stefan Tessarini May 15, 2015

Intern. J. Fuzzy Mathematical Archive Neutrosophic Quantum Computer Florentin Smarandache Abstract. Keywords:

Seminar 1. Introduction to Quantum Computing

Shor s Algorithm. Polynomial-time Prime Factorization with Quantum Computing. Sourabh Kulkarni October 13th, 2017

Quantum Computing. Thorsten Altenkirch

Short Course in Quantum Information Lecture 5

Quantum Circuits and Algorithms

Reversible and Quantum computing. Fisica dell Energia - a.a. 2015/2016

First, let's review classical factoring algorithm (again, we will factor N=15 but pick different number)

Complex numbers: a quick review. Chapter 10. Quantum algorithms. Definition: where i = 1. Polar form of z = a + b i is z = re iθ, where

Introduction to Quantum Information Processing QIC 710 / CS 768 / PH 767 / CO 681 / AM 871

Introduction to Quantum Information, Quantum Computation, and Its Application to Cryptography. D. J. Guan

Lecture 22: Quantum computational complexity

Introduction to Quantum Computing

Introduction to Quantum Algorithms Part I: Quantum Gates and Simon s Algorithm

Quantum Computing: Foundations to Frontier Fall Lecture 3

Quantum Phase Estimation using Multivalued Logic

Lecture 1: Introduction to Quantum Computing

Logic gates. Quantum logic gates. α β 0 1 X = 1 0. Quantum NOT gate (X gate) Classical NOT gate NOT A. Matrix form representation

Quantum Computing. 6. Quantum Computer Architecture 7. Quantum Computers and Complexity

Compute the Fourier transform on the first register to get x {0,1} n x 0.

Quantum gate. Contents. Commonly used gates

/633 Introduction to Algorithms Lecturer: Michael Dinitz Topic: NP-Completeness I Date: 11/13/18

QLang: Qubit Language

A Gentle Introduction to Quantum Computing

Tutorial on Quantum Computing. Vwani P. Roychowdhury. Lecture 1: Introduction

Introduction to Quantum Information Processing

6.080/6.089 GITCS May 13, Lecture 24

Fourier Sampling & Simon s Algorithm

Gates for Adiabatic Quantum Computing

Quantum algorithms (CO 781, Winter 2008) Prof. Andrew Childs, University of Waterloo LECTURE 1: Quantum circuits and the abelian QFT

1500 AMD Opteron processor (2.2 GHz with 2 GB RAM)

Simon s algorithm (1994)

b) (5 points) Give a simple quantum circuit that transforms the state

Simulation of quantum computers with probabilistic models

Errata list, Nielsen & Chuang. rrata/errata.html

ROM-BASED COMPUTATION: QUANTUM VERSUS CLASSICAL

Advanced Cryptography Quantum Algorithms Christophe Petit

Boolean State Transformation

Some Introductory Notes on Quantum Computing

Unitary evolution: this axiom governs how the state of the quantum system evolves in time.

Algorithms for quantum computers. Andrew Childs Department of Combinatorics & Optimization and Institute for Quantum Computing University of Waterloo

MAA509: Quantum Computing and Information Introduction

Quantum computing. Shor s factoring algorithm. Dimitri Petritis. UFR de mathématiques Université de Rennes CNRS (UMR 6625) Rennes, 30 novembre 2018

Attacking the ECDLP with Quantum Computing

Verification of quantum computation

An Introduction to Quantum Computation and Quantum Information

Database Manipulation Operations on Quantum Systems

Quantum Complexity Theory and Adiabatic Computation

Introduction to Quantum Computing

Introduction to Quantum Computing

Parallelization of the QC-lib Quantum Computer Simulator Library

An Implementation of Compact Genetic Algorithm on a Quantum Computer

quantum mechanics is a hugely successful theory... QSIT08.V01 Page 1

Quantum Computers. Peter Shor MIT

1.0 Introduction to Quantum Systems for Information Technology 1.1 Motivation

Measuring progress in Shor s factoring algorithm

1 Bernstein-Vazirani Algorithm

arxiv:quant-ph/ v3 21 Feb 2003

Graph Non-Isomorphism Has a Succinct Quantum Certificate

Quantum computing! quantum gates! Fisica dell Energia!

What is a quantum computer? Quantum Architecture. Quantum Mechanics. Quantum Superposition. Quantum Entanglement. What is a Quantum Computer (contd.

Shor Factorization Algorithm

Analyzing Quantum Circuits Via Polynomials

DEVELOPING A QUANTUM CIRCUIT SIMULATOR API

Quantum Computation CMU BB, Fall Week 6 work: Oct. 11 Oct hour week Obligatory problems are marked with [ ]

Quantum Information Processing with Liquid-State NMR

Quantum Computing 1. Multi-Qubit System. Goutam Biswas. Lect 2

Hacking Quantum Cryptography. Marina von Steinkirch ~ Yelp Security

Ph 219b/CS 219b. Exercises Due: Wednesday 20 November 2013

Grover Algorithm Applied to Four Qubits System

Log-mod-finding: A New Idea for Implementation of Shor's Algorithm

Quantum Computation 650 Spring 2009 Lectures The World of Quantum Information. Quantum Information: fundamental principles

The P versus NP Problem in Quantum Physics

Quantum Algorithms. Andreas Klappenecker Texas A&M University. Lecture notes of a course given in Spring Preliminary draft.

Quantum-Safe Crypto Why & How? JP Aumasson, Kudelski Security

Daniel J. Bernstein University of Illinois at Chicago. means an algorithm that a quantum computer can run.

Quantum Computation, NP-Completeness and physical reality [1] [2] [3]

Quantum Computing Lecture Notes, Extra Chapter. Hidden Subgroup Problem

Quantum Computer Simulation Using CUDA (Quantum Fourier Transform Algorithm)

Quantum Computation and Communication

A FAST QUANTUM CIRCUIT FOR ADDITION WITH FEW QUBITS

Extended Superposed Quantum State Initialization Using Disjoint Prime Implicants

Richard Cleve David R. Cheriton School of Computer Science Institute for Quantum Computing University of Waterloo

Concepts and Algorithms of Scientific and Visual Computing Advanced Computation Models. CS448J, Autumn 2015, Stanford University Dominik L.

Semiconductors: Applications in spintronics and quantum computation. Tatiana G. Rappoport Advanced Summer School Cinvestav 2005

Introduction to Quantum Information Processing QIC 710 / CS 768 / PH 767 / CO 681 / AM 871

Quantum Computing and the Possible Effects on Modern Security Practices

*WILEY- Quantum Computing. Joachim Stolze and Dieter Suter. A Short Course from Theory to Experiment. WILEY-VCH Verlag GmbH & Co.

Introduction to Quantum Computing

2.0 Basic Elements of a Quantum Information Processor. 2.1 Classical information processing The carrier of information

Quantum Algorithms Lecture #2. Stephen Jordan

Transcription:

Introduction to Quantum Computing Toni Bluher Math Research Group, NSA 2018 Women and Mathematics Program Disclaimer: The opinions expressed are those of the writer and not necessarily those of NSA/CSS, the Department of Defense, or the U.S. Government.

Goals of this Talk Give flavor for quantum computation Give historical perspective Emphasize similarity with classical computer programming

Welcome to the Quantum World! Quantum mechanics developed 1900-1920, explains and predicts natural phenomena at particle level. Polynomial-time quantum-mechanical processes take exponential time to simulate on a classical computer. Turning this around, quantum-mechanical systems, if designed cleverly, might solve math problems with better asymptotics than Turing machines! This led to notion of quantum computation (Feynman, Deutsch,...) in 1970 s and 1980 s.

Quantum Simulation The quantum-mechanical computation of one molecule of methane requires 10 42 grid points. Assuming that at each point we have to perform only 10 elementary operations, and that the computation is performed at the extremely low temperature T = 3 10 3 K, we would still have to use all the energy produced on Earth during the last century. R. P. Poplavskii, 1975

Quantum Computation Quantum particles with known polarization, spin, etc. play the role of zeroes or ones. Quantum operations simulate Turing machine operations such as XOR, AND, NOT. (Some caveats) Classical computer: n bits 2 n values. Quantum computer: n bits 2 n -dimensional over C Large state space leads to massive parallelism, e.g. quantum computer finds f (x) for all x simultaneously! Quantum Fourier transform (QFT) runs polynomial time!

Shor s Algorithm By computing all pairs (x, f (x)) and then applying the Quantum Fourier Transform (QFT), you learn the period of f (x) in polynomial time. Shor s algorithm (1994) factors N by finding the period of f (x) = g x (mod N).

Shor s algorithm Polynomial-time factoring and discrete log (if we had a quantum computer) Would break most public key cryptography Impetus for development of quantum resistant cryptography (NIST)

If computers that you build are quantum, Then spies everywhere will all want em. Our codes will all fail, And they ll read our email, Till we get crypto that s quantum, and daunt em. Jennifer and Peter Shor

Shor s algorithm Shor s algorithm has several steps for factoring n-bit integer N: 1 Create a superposition over all 0 x < 2 2n ; 2 Compute all pairs (x, g x (mod N)); 3 Use QFT to find period of g x (mod N); 4 Factor N

Bits vs. Qubits n-bit classical register might consist of n [circuits?] and 0/1 s are represented by [on/off?]. n-qubit quantum register might consist of n [trapped ions?] and 0/1 s are represented by [spin left/right?] Classical error correction is handled with error correction codes, at small additional cost. Quantum error correction is much more difficult, great cost. This talk: ignore error correction and just pretend all qubits are perfect.

Classical versus quantum integers An n-bit classical register holds an n-bit integer in binary, e.g. 11001. An n-bit quantum register holds a nonzero C-linear combination of such: α 0 00000 + α 1 00001 + + α 31 11111. Abbreviate as α i i. This is called a quantum integer or quantum state or superposition. No physics experiment would distinguish α i i from λαi i, so they are equivalent. (2 n 1)-dimensional projective space over C.

Measurement Measurement of bit or qubit gives two possible values, 0 or 1. That is where the similarity stops. Measurement of a classical bit is deterministic. Measurement of a quantum bit is probabilistic, and causes the state to collapse to the part of the superposition that is consistent with the measurement. Think of quantum state as a good liar with a superposition of possible alibis. If you ask it a question, it comes up with an answer. Answers to future questions are consistent with that one, so you can t catch it in a lie.

Measurement (continued) Given α i i, suppose we measure the low qubit. Prob(measure 0) is p 0 = i even α i 2 /A and Prob(measure 1) is p 1 = i odd α i 2 /A, where A = i α i 2. If 0 is measured, resulting state is i even α i i. If 1 is measured, resulting state is i odd α i i.

Measurement example Begin with ABC = 000 2 100 + 111. Meas(C). p 0 = (1 + 4)/(1 + 4 + 1) = 5/6; p 1 = 1/6. Suppose you measure 0. New state is 000 2 100. Now measure B, definitely get 0 and the state remains the same. Now measure A, get 0 with probability 1/5 (resulting in 000 ) or 1 with probability 4/5 (resulting in 2 100 = 100 ). Exercise: Suppose you measure all the qubits of αi i, in any order. Then Prob(measure j ) is α j 2 / i α i 2.

Gates A classical computer has NOT, XOR, and AND gates. One can also set a bit to 0 or 1. Quantum gates are always reversible, and they act on the whole superposition at once.

Semi-classical quantum gates NOT(A): A := 1 CNOT(A, B): B := A (analogue of XOR) TOFF(A, B, C): C := A & B (analogue of AND) TOFF is much more costly than CNOT, which is much more costly than NOT. Input qubits are required to be distinct, e.g. A := A is not allowed.

Semi-classical quantum gates example Begin with ABC = 000 2 100 + 111. NOT(B): ABC = 010 2 110 + 101 C := B: ABC = 011 2 111 + 101 A := B & C: ABC = 111 2 011 + 101 Exercise: if we repeat the above commands in the reverse order, we get back to the original state. Hint: Each semi-classical quantum gate has order 2, i.e., is equal to its own inverse.

Example: implementing controlled swap CSWAP(A, B, C): If A = 1, then Swap(B, C). e.g. ABC = 111 2 011 + 101 is sent to 111 2 011 + 110. Want to implement CSWAP only with NOT, CNOT, and TOFFOLI. It s tempting to measure A, but that would collapse the state! Instead, try this: B := C; C := A & B; B := C. Exercise: Show those three commands implement CSWAP.

Example: mod 4 addition Quantum algorithm for (a, b) (a, a + b (mod 4)): c 1 = a 0 b 0 a 1 a 0 b 1 b 0 a 1 b 1 c 1 a 0 b 0 Initial: A 1 A 0 B 1 B 0 = c ab a, b, a = a 1 a 0, b = b 1 b 0 B 1 := A 0 & B 0 (B 1 = b 1 c 1 ) B 1 := A 1 (B 1 = a 1 b 1 c 1 ) B 0 := A 0 (B 0 = a 0 b 0 )

Hadamard gate H( 0 ) = 0 + 1, H( 1 ) = 0 1. H 2 = I. Example: If ABC = 000 2 100 + 111 then applying Hadamard to A yields ( 000 + 100 ) 2( 000 100 ) + ( 011 111 ) = 000 + 3 100 + 011 111. Exercise: Apply Hadamard a second time and verify you get back to the original. Verify that the code H(A); A := B; H(A) takes a,b {0,1} c ab ab to a,b {0,1} ( 1)ab c ab ab.

Creating a superposition To create a superposition, begin with all-0 s: ABC = 000. Then apply H to each qubit. H(A): 000 + 100 H(B): ( 000 + 010 ) + ( 100 + 110 ) H(C): ( 000 + 001 ) + ( 010 + 011 ) + ( 100 + 101 ) + ( 110 + 111 ) = 7 i=0 i

Shor s algorithm To factor n-bit integer N: 1 Create a superposition over all 0 x < 2 2n ; 2 Compute all pairs (x, g x (mod N)); 3 Use QFT to find period of g x (mod N); 4 Factor N To do step 1: Start with 3n qubits all equal to 0. Apply H to first 2n qubits. Results in 0 i<22n i 0 n. In second step, quantum gates will be applied to compute g x (mod N).

References Michael A. Nielsen and Isaac L. Chuang, Quantum Computation and Quantum Information, 10th Anniversary Edition, Cambridge University Press, 2010. Affectionately called Mike and Ike ; has been a standard reference for almost two decades. Eleanor Rieffel and Wolfgang Polak, Quantum Computing A Gentle Introduction, MIT Press, 2011. (A great book!) Peter W. Shor, Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer, SIAM Journal on Computing, 26(5): 1484 1509, 1997. Andrew Childs, online lectures and lecture notes, https://www.cs.umd.edu/ amchilds/qa/qa.pdf