QWIRE Practice: Formal Verification of Quantum Circuits in Coq

Size: px
Start display at page:

Download "QWIRE Practice: Formal Verification of Quantum Circuits in Coq"

Transcription

1 1 / 29 QWIRE Practice: Formal Verification of Quantum Circuits in Coq Robert Rand, Jennifer Paykin, Steve Zdancewic University of Pennsylvania Quantum Physics and Logic, 2017

2 2 / 29 QWIRE A high-level language for generating quantum circuits following Quipper and LIQUi A minimal set of primitives for circuit construction Programs are guaranteed to correspond to realizable quantum computations using linear types, as in the Quantum Lambda Calculus

3 3 / 29 Preparing a Bell state 0 H x 0 y Definition bell00 : Box One (Qubit Qubit). box () gate x gate y gate x gate (x,y) output (x,y) Defined.

4 3 / 29 Preparing a Bell state 0 H x 0 y Definition bell00 : Box One (Qubit Qubit). box () gate x gate y gate x gate (x,y) output (x,y) Defined.

5 3 / 29 Preparing a Bell state 0 H x 0 y Definition bell00 : Box One (Qubit Qubit). box () gate x gate y gate x gate (x,y) output (x,y) Defined.

6 3 / 29 Preparing a Bell state 0 H x 0 y Definition bell00 : Box One (Qubit Qubit). box () gate x gate y gate x gate (x,y) output (x,y) Defined.

7 3 / 29 Preparing a Bell state 0 H x 0 y Definition bell00 : Box One (Qubit Qubit). box () gate x gate y gate x gate (x,y) output (x,y) Defined.

8 3 / 29 Preparing a Bell state 0 H x 0 y Definition bell00 : Box One (Qubit Qubit). box () gate x gate y gate x gate (x,y) output (x,y) Defined.

9 3 / 29 Preparing a Bell state 0 H x 0 y Definition bell00 : Box One (Qubit Qubit). box () gate x gate y gate x gate (x,y) output (x,y) Defined.

10 3 / 29 Preparing a Bell state 0 H x 0 y Definition bell00 : Box One (Qubit Qubit). box () gate x gate y gate x gate (x,y) output (x,y) Defined.

11 4 / 29 Quantum Teleportation alice bob bell00 0 H H meas meas 0 X Z Definition teleport : Box Qubit Qubit. box t let (p,q) unbox bell00 (); let (a,b) unbox alice (t,p); let t' unbox bob (a,b,q); output t' Defined.

12 4 / 29 Quantum Teleportation alice bob bell00 0 H H meas meas 0 X Z Definition teleport : Box Qubit Qubit. box t let (p,q) unbox bell00 (); let (a,b) unbox alice (t,p); let t' unbox bob (a,b,q); output t' Defined.

13 4 / 29 Quantum Teleportation alice bob bell00 0 H H meas meas 0 X Z Definition teleport : Box Qubit Qubit. box t let (p,q) unbox bell00 (); let (a,b) unbox alice (t,p); let t' unbox bob (a,b,q); output t' Defined.

14 4 / 29 Quantum Teleportation alice bob bell00 0 H H meas meas 0 X Z Definition teleport : Box Qubit Qubit. box t let (p,q) unbox bell00 (); let (a,b) unbox alice (t,p); let t' unbox bob (a,b,q); output t' Defined.

15 4 / 29 Quantum Teleportation alice bob bell00 0 H H meas meas 0 X Z Definition teleport : Box Qubit Qubit. box t let (p,q) unbox bell00 (); let (a,b) unbox alice (t,p); let t' unbox bob (a,b,q); output t' Defined.

16 4 / 29 Quantum Teleportation alice bob bell00 0 H H meas meas 0 X Z Definition teleport : Box Qubit Qubit. box t let (p,q) unbox bell00 (); let (a,b) unbox alice (t,p); let t' unbox bob (a,b,q); output t' Defined.

17 5 / 29 Non-Quantum Circuits Definition clone : Box Qubit (Qubit Qubit). box q output (q,q). Abort.

18 5 / 29 Non-Quantum Circuits Definition clone : Box Qubit (Qubit Qubit). box q output (q,q). Abort.

19 6 / 29 Non-Quantum Circuits Definition clone : Box Qubit (Qubit Qubit). box q output (q,q). Abort. Definition delete : Box Qubit One. box q gate q ; output (). Abort.

20 6 / 29 Non-Quantum Circuits Definition clone : Box Qubit (Qubit Qubit). box q output (q,q). Abort. Definition delete : Box Qubit One. box q gate q ; output (). Abort.

21 7 / 29 Non-Quantum Circuits Definition clone : Box Qubit (Qubit Qubit). box q output (q,q). Abort. Definition delete : Box Qubit One. box q gate q ; output (). Abort. Definition recall : Box Qubit Qubit. box q gate p ; output q. Abort.

22 7 / 29 Non-Quantum Circuits Definition clone : Box Qubit (Qubit Qubit). box q output (q,q). Abort. Definition delete : Box Qubit One. box q gate q ; output (). Abort. Definition recall : Box Qubit Qubit. box q gate p ; output q. Abort.

23 8 / 29 Linear Types are not Enough Sources of Errors Provide the wrong argument to a phase shift gate. Apply a unitary to the wrong wire, or vice-versa. Forget to uncompute or measure-discard certain qubits Classically compute the wrong circuit.

24 9 / 29 Approaches Simulation Debugging Unit Testing Math + Concentration

25 9 / 29 Approaches Simulation X Debugging Unit Testing Math + Concentration

26 9 / 29 Approaches Simulation X Debugging XX Unit Testing Math + Concentration

27 9 / 29 Approaches Simulation X Debugging XX Unit Testing $$$ Math + Concentration

28 9 / 29 Approaches Simulation X Debugging XX Unit Testing $$$ Math + Concentration?

29 10 / 29 The Coq Proof Assistant A programming language An interactive theorem prover

30 11 / 29 The Coq Proof Assistant Accomplishments Mathematics Feit-Thompson Theorem Four Color Theorem Programming CompCert Compiler CertiKOS

31 12 / 29 Coq + QWIRE A circuit description language A density matrix library A denote function from circuits to superoperators Integrated proofs of program correctness

32 13 / 29 Denoting Programs Definition denote_unitary : Unitary Matrix. Definition denote_gate : Gate Superoperator. Definition denote_circuit : Circuit Superoperator. Class Denote source target := {denote : source target}. Notation " s " := (denote s) (at level 10).

33 14 / 29 Denoting a Coin Flip 0 H meas Definition coin_flip : Box One Bit. box () gate q gate q gate b output b. Defined.

34 15 / 29 Denoting a Coin Flip 0 H meas Lemma fair_toss : coin_flip [1] = [ [1/2, 0] [0, 1/2] ].

35 16 / 29 Denoting a Coin Flip 0 H meas = 0 0 H 0 0 H H 0 0 H 1 1

36 16 / 29 Denoting a Coin Flip 0 H meas = ( ) ( ) ( ) ( ) ( ) 2 + ( ) ( ) ( ) ( ) ( ) 2

37 16 / 29 Denoting a Coin Flip 0 H meas = ( ) + ( ) 2

38 16 / 29 Denoting a Coin Flip 0 H meas = ( ) 2

39 Verified 17 / 29

40 18 / 29 Denoting Coin Flips 0 H meas 0 H meas 0 H meas (* Generates a binary number between 0 and 2 n *) Definition uniform (n : N) : Box (n One) (n Bit) := parallel_copy n coin_flip

41 19 / 29 Denoting Coin Flips 0 H meas 0 H meas 0 H meas ( ) ( ) ( ) 2

42 Denoting Coin Flips 0 H meas 0 H meas 0 H meas 2 n n n 19 / 29

43 A Biased Coin Base (m = 0) Recursive (m = n + 1) biased_coin n 1 0 H meas Fixpoint biased_coin (m : N) : Box One Bit. box () match m with 0 gate x output x n+1 let c unbox (biased coin n) (); gate q gate (c,q) bit_ctrl gate () gate b output b end. Defined. 20 / 29

44 A Biased Coin Base (m = 0) Recursive (m = n + 1) biased_coin n 1 0 H meas Fixpoint biased_coin (m : N) : Box One Bit. box () match m with 0 gate x output x n+1 let c unbox (biased coin n) (); gate q gate (c,q) bit_ctrl gate () gate b output b end. Defined. 20 / 29

45 A Biased Coin Base (m = 0) Recursive (m = n + 1) biased_coin n 1 0 H meas Fixpoint biased_coin (m : N) : Box One Bit. box () match m with 0 gate x output x n+1 let c unbox (biased coin n) (); gate q gate (c,q) bit_ctrl gate () gate b output b end. Defined. 20 / 29

46 A Biased Coin Base (m = 0) Recursive (m = n + 1) biased_coin n 1 0 H meas Fixpoint biased_coin (m : N) : Box One Bit. box () match m with 0 gate x output x n+1 let c unbox (biased coin n) (); gate q gate (c,q) bit_ctrl gate () gate b output b end. Defined. 20 / 29

47 21 / 29 A Biased Coin: Induction biased_coin n 0 H meas

48 21 / 29 A Biased Coin: Induction biased_coin n 0 H meas n n+1

49 21 / 29 A Biased Coin: Induction biased_coin n 0 H meas n n+1 biased coin 0 = ( )

50 21 / 29 A Biased Coin: Induction biased_coin n 0 H meas n n+1 biased coin 0 = ( ) biased coin (n+1) = meas 2 (ctrl-h( biased coin n 0 0 ))

51 21 / 29 A Biased Coin: Induction biased_coin n 0 H meas n n+1 biased coin 0 = ( ) biased coin (n+1) = meas 2 (ctrl-h( biased coin n 0 0 )) = meas 2 (ctrl-h(( n 0 0 ) 0 0 )) 1 2 n

52 21 / 29 A Biased Coin: Induction biased_coin n 0 H meas n n+1 biased coin 0 = ( ) biased coin (n+1) = meas 2 (ctrl-h( biased coin n 0 0 )) = meas 2 (ctrl-h(( n 0 = ( n ) 1 2 n+1 0 ) 0 0 )) 1 2 n

53 22 / 29 Denoting Unitaries U U Definition unitary_transpose (n : N) (U : Unitary n) : Box (n Qubit) (n Qubit). box ρ gate ρ gate ρ transpose output ρ. Defined.

54 23 / 29 Denoting Unitaries U U Lemma unitary_trans_id : (n : N) (U : Unitary n) (ρ : Density_Matrix n), unitary_transpose U ρ = ρ.

55 24 / 29 Denoting Unitaries U U unitary transpose ρ = U (UρU )(U )

56 24 / 29 Denoting Unitaries U U unitary transpose ρ = U (UρU )U

57 24 / 29 Denoting Unitaries U U unitary transpose ρ = (U U)ρ(U U)

58 24 / 29 Denoting Unitaries U U unitary transpose ρ = IρI

59 24 / 29 Denoting Unitaries U U unitary transpose ρ = ρ

60 25 / 29 Quantum Teleportation H meas 0 H meas 0 X Z Lemma teleport_id : (ρ : Density_Matrix 1), teleport ρ = ρ.

61 26 / 29 Entangled Quantum Teleportation H meas 0 H meas 0 X Z Lemma teleport_id' : (n : N) (ρ : Density_Matrix (n+1)), in_parallel (id n) teleport ρ = ρ.

62 27 / 29 Why QWIRE? Linearly typed circuits guarantee quantum realizability Dependent types allow precise specification of circuit families Embedded in Coq for classical control Denotational semantics for verified programming Categorical semantics (Renella and Staton, 2017)

63 28 / 29 Future Work Verified complex programs (QFT, Shor, Grover) Reversible circuits and verified compilation as in ReVer (Amy et al., 2017) Quantum oracles proven to correspond to classical functions

64 29 / 29 FIN T H A N K Y O U

QWIRE Practice: Formal Verification of Quantum Circuits in Coq

QWIRE Practice: Formal Verification of Quantum Circuits in Coq QWIRE Practice: Formal Verification of Quantum Circuits in Coq Robert Rand rrand@seas.upenn.edu Jennifer Paykin jpaykin@seas.upenn.edu University of Pennsylvania Steve Zdancewic stevez@cis.upenn.edu We

More information

QWIRE: A Core Language for Quantum Circuits

QWIRE: A Core Language for Quantum Circuits QWIRE QWIRE: A Core Language for Quantum Circuits Jennifer Paykin Robert Rand Steve Zdancewic University of Pennsylvania, USA jpaykin@seas.upenn.edu, rrand@seas.upenn.edu, stevez@cis.upenn.edu Abstract

More information

Single qubit + CNOT gates

Single qubit + CNOT gates Lecture 6 Universal quantum gates Single qubit + CNOT gates Single qubit and CNOT gates together can be used to implement an arbitrary twolevel unitary operation on the state space of n qubits. Suppose

More information

Baby's First Diagrammatic Calculus for Quantum Information Processing

Baby's First Diagrammatic Calculus for Quantum Information Processing Baby's First Diagrammatic Calculus for Quantum Information Processing Vladimir Zamdzhiev Department of Computer Science Tulane University 30 May 2018 1 / 38 Quantum computing ˆ Quantum computing is usually

More information

QWIRE: A QRAM-Inspired Quantum Circuit Language

QWIRE: A QRAM-Inspired Quantum Circuit Language QWIRE: A QRAM-Inspired Quantum Circuit Language Jennifer Paykin jpaykin@seas.upenn.edu Robert Rand rrand@seas.upenn.edu University of Pennsylvania Steve Zdancewic stevez@cis.upenn.edu We introduce QWIRE,

More information

Hilbert Space, Entanglement, Quantum Gates, Bell States, Superdense Coding.

Hilbert Space, Entanglement, Quantum Gates, Bell States, Superdense Coding. CS 94- Bell States Bell Inequalities 9//04 Fall 004 Lecture Hilbert Space Entanglement Quantum Gates Bell States Superdense Coding 1 One qubit: Recall that the state of a single qubit can be written as

More information

Quantum Computing. Quantum Computing. Sushain Cherivirala. Bits and Qubits

Quantum Computing. Quantum Computing. Sushain Cherivirala. Bits and Qubits Quantum Computing Bits and Qubits Quantum Computing Sushain Cherivirala Quantum Gates Measurement of Qubits More Quantum Gates Universal Computation Entangled States Superdense Coding Measurement Revisited

More information

A categorical model for a quantum circuit description language

A categorical model for a quantum circuit description language A categorical model for a quantum circuit description language Francisco Rios (joint work with Peter Selinger) Department of Mathematics and Statistics Dalhousie University CT July 16th 22th, 2017 What

More information

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

b) (5 points) Give a simple quantum circuit that transforms the state C/CS/Phy191 Midterm Quiz Solutions October 0, 009 1 (5 points) Short answer questions: a) (5 points) Let f be a function from n bits to 1 bit You have a quantum circuit U f for computing f If you wish

More information

Quantum Computer Architecture

Quantum Computer Architecture Quantum Computer Architecture Scalable and Reliable Quantum Computers Greg Byrd (ECE) CSC 801 - Feb 13, 2018 Overview 1 Sources 2 Key Concepts Quantum Computer 3 Outline 4 Ion Trap Operation The ion can

More information

Quantum Phase Estimation using Multivalued Logic

Quantum Phase Estimation using Multivalued Logic Quantum Phase Estimation using Multivalued Logic Agenda Importance of Quantum Phase Estimation (QPE) QPE using binary logic QPE using MVL Performance Requirements Salient features Conclusion Introduction

More information

Quantum Gates, Circuits & Teleportation

Quantum Gates, Circuits & Teleportation Chapter 3 Quantum Gates, Circuits & Teleportation Unitary Operators The third postulate of quantum physics states that the evolution of a quantum system is necessarily unitary. Geometrically, a unitary

More information

Quantum Effects. Juliana K. Vizzotto 1 Thorsten Altenkirch 2. Amr Sabry January Yale CS Colloquium Page 1

Quantum Effects. Juliana K. Vizzotto 1 Thorsten Altenkirch 2. Amr Sabry January Yale CS Colloquium Page 1 Quantum Effects Juliana K. Vizzotto 1 Thorsten Altenkirch 2 Amr Sabry 3 1 Federal University of Rio Grande do Sul 2 The University of Nottingham 3 Indiana University 2 January 25 Yale CS Colloquium Page

More information

FORMALLY VERIFIED QUANTUM PROGRAMMING

FORMALLY VERIFIED QUANTUM PROGRAMMING FORMALLY VERIFIED QUANTUM PROGRAMMING Robert Rand A DISSERTATION in Computer and Information Science Presented to the Faculties of the University of Pennsylvania in Partial Fulfillment of the Requirements

More information

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

Compute the Fourier transform on the first register to get x {0,1} n x 0. CS 94 Recursive Fourier Sampling, Simon s Algorithm /5/009 Spring 009 Lecture 3 1 Review Recall that we can write any classical circuit x f(x) as a reversible circuit R f. We can view R f as a unitary

More information

. Here we are using the standard inner-product over C k to define orthogonality. Recall that the inner-product of two vectors φ = i α i.

. Here we are using the standard inner-product over C k to define orthogonality. Recall that the inner-product of two vectors φ = i α i. CS 94- Hilbert Spaces, Tensor Products, Quantum Gates, Bell States 1//07 Spring 007 Lecture 01 Hilbert Spaces Consider a discrete quantum system that has k distinguishable states (eg k distinct energy

More information

Quantum Teleportation Pt. 1

Quantum Teleportation Pt. 1 Quantum Teleportation Pt. 1 PHYS 500 - Southern Illinois University April 17, 2018 PHYS 500 - Southern Illinois University Quantum Teleportation Pt. 1 April 17, 2018 1 / 13 Types of Communication In the

More information

Advanced Cryptography Quantum Algorithms Christophe Petit

Advanced Cryptography Quantum Algorithms Christophe Petit The threat of quantum computers Advanced Cryptography Quantum Algorithms Christophe Petit University of Oxford Christophe Petit -Advanced Cryptography 1 Christophe Petit -Advanced Cryptography 2 The threat

More information

IBM quantum experience: Experimental implementations, scope, and limitations

IBM quantum experience: Experimental implementations, scope, and limitations IBM quantum experience: Experimental implementations, scope, and limitations Plan of the talk IBM Quantum Experience Introduction IBM GUI Building blocks for IBM quantum computing Implementations of various

More information

Quantum Functional Programming Language & Its Denotational Semantics

Quantum Functional Programming Language & Its Denotational Semantics Quantum Functional Programming Language & Its Denotational Semantics Ichiro Hasuo Dept. Computer Science University of Tokyo Naohiko Hoshino Research Inst. for Math. Sci. Kyoto University Talk based on:

More information

92 CHAPTER III. QUANTUM COMPUTATION. Figure III.11: Diagram for swap (from NC).

92 CHAPTER III. QUANTUM COMPUTATION. Figure III.11: Diagram for swap (from NC). 92 CHAPTER III. QUANTUM COMPUTATION Figure III.11: Diagram for swap (from NC). C.3 Quantum circuits 1. Quantum circuit: A quantum circuit isa sequential seriesofquantum transformations on a quantum register.

More information

Quantum Error Correcting Codes and Quantum Cryptography. Peter Shor M.I.T. Cambridge, MA 02139

Quantum Error Correcting Codes and Quantum Cryptography. Peter Shor M.I.T. Cambridge, MA 02139 Quantum Error Correcting Codes and Quantum Cryptography Peter Shor M.I.T. Cambridge, MA 02139 1 We start out with two processes which are fundamentally quantum: superdense coding and teleportation. Superdense

More information

Classical control and quantum circuits in enriched category theory

Classical control and quantum circuits in enriched category theory MFPS 2017 Classical control and quantum circuits in enriched category theory Mathys Rennela Institute for Computing and Information Sciences Radboud University Nijmegen, The Netherlands Sam Staton Department

More information

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

*WILEY- Quantum Computing. Joachim Stolze and Dieter Suter. A Short Course from Theory to Experiment. WILEY-VCH Verlag GmbH & Co. Joachim Stolze and Dieter Suter Quantum Computing A Short Course from Theory to Experiment Second, Updated and Enlarged Edition *WILEY- VCH WILEY-VCH Verlag GmbH & Co. KGaA Contents Preface XIII 1 Introduction

More information

From Symmetric Pattern-Matching to Quantum Control

From Symmetric Pattern-Matching to Quantum Control From Symmetric Pattern-Matching to Quantum Control Amr Sabry 1, Benoît Valiron 2, and Juliana Kaizer Vizzotto 3 1 Indiana University sabry@indiana.edu 2 LRI, CentraleSupélec, Université Paris-Saclay benoit.valiron@lri.fr

More information

Fourier Sampling & Simon s Algorithm

Fourier Sampling & Simon s Algorithm Chapter 4 Fourier Sampling & Simon s Algorithm 4.1 Reversible Computation A quantum circuit acting on n qubits is described by an n n unitary operator U. Since U is unitary, UU = U U = I. This implies

More information

An Introduction to Quantum Information and Applications

An Introduction to Quantum Information and Applications An Introduction to Quantum Information and Applications Iordanis Kerenidis CNRS LIAFA-Univ Paris-Diderot Quantum information and computation Quantum information and computation How is information encoded

More information

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

Quantum Computing. Joachim Stolze and Dieter Suter. A Short Course from Theory to Experiment. WILEY-VCH Verlag GmbH & Co. KGaA Joachim Stolze and Dieter Suter Quantum Computing A Short Course from Theory to Experiment Second, Updated and Enlarged Edition WILEY- VCH WILEY-VCH Verlag GmbH & Co. KGaA Preface XIII 1 Introduction and

More information

Teleportation-based approaches to universal quantum computation with single-qubit measurements

Teleportation-based approaches to universal quantum computation with single-qubit measurements Teleportation-based approaches to universal quantum computation with single-qubit measurements Andrew Childs MIT Center for Theoretical Physics joint work with Debbie Leung and Michael Nielsen Resource

More information

Type Systems for Quantum Computation

Type Systems for Quantum Computation Type Systems for Quantum Computation Bill Zorn Abstract Type systems are useful to programmers for a variety of reasons. In the classical world, they help us to define interfaces between separate pieces

More information

Teleportation of Quantum States (1993; Bennett, Brassard, Crepeau, Jozsa, Peres, Wootters)

Teleportation of Quantum States (1993; Bennett, Brassard, Crepeau, Jozsa, Peres, Wootters) Teleportation of Quantum States (1993; Bennett, Brassard, Crepeau, Jozsa, Peres, Wootters) Rahul Jain U. Waterloo and Institute for Quantum Computing, rjain@cs.uwaterloo.ca entry editor: Andris Ambainis

More information

Introduction to Quantum Information Processing

Introduction to Quantum Information Processing Introduction to Quantum Information Processing Lecture 6 Richard Cleve Overview of Lecture 6 Continuation of teleportation Computation and some basic complexity classes Simple quantum algorithms in the

More information

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

Logic gates. Quantum logic gates. α β 0 1 X = 1 0. Quantum NOT gate (X gate) Classical NOT gate NOT A. Matrix form representation Quantum logic gates Logic gates Classical NOT gate Quantum NOT gate (X gate) A NOT A α 0 + β 1 X α 1 + β 0 A N O T A 0 1 1 0 Matrix form representation 0 1 X = 1 0 The only non-trivial single bit gate

More information

Quantum Information Processing and Diagrams of States

Quantum Information Processing and Diagrams of States Quantum Information and Diagrams of States September 17th 2009, AFSecurity Sara Felloni sara@unik.no / sara.felloni@iet.ntnu.no Quantum Hacking Group: http://www.iet.ntnu.no/groups/optics/qcr/ UNIK University

More information

Lecture 3: Hilbert spaces, tensor products

Lecture 3: Hilbert spaces, tensor products CS903: Quantum computation and Information theory (Special Topics In TCS) Lecture 3: Hilbert spaces, tensor products This lecture will formalize many of the notions introduced informally in the second

More information

Lecture 14: Quantum information revisited

Lecture 14: Quantum information revisited CPSC 59/69: Quantum Computation John Watrous, University of Calgary Lecture 4: Quantum information revisited March 4, 006 So far, this course has focused almost entirely on quantum algorithms The next

More information

Foundations of Quantum Programming

Foundations of Quantum Programming Foundations of Quantum Programming Mingsheng Ying University of Technology Sydney, Australia Institute of Software, Chinese Academy of Sciences Tsinghua University, China Outline Introduction Syntax of

More information

CS257 Discrete Quantum Computation

CS257 Discrete Quantum Computation CS57 Discrete Quantum Computation John E Savage April 30, 007 Lect 11 Quantum Computing c John E Savage Classical Computation State is a vector of reals; e.g. Booleans, positions, velocities, or momenta.

More information

SUPERDENSE CODING AND QUANTUM TELEPORTATION

SUPERDENSE CODING AND QUANTUM TELEPORTATION SUPERDENSE CODING AND QUANTUM TELEPORTATION YAQIAO LI This note tries to rephrase mathematically superdense coding and quantum teleportation explained in [] Section.3 and.3.7, respectively (as if I understood

More information

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

Errata list, Nielsen & Chuang.  rrata/errata.html Errata list, Nielsen & Chuang http://www.michaelnielsen.org/qcqi/errata/e rrata/errata.html Part II, Nielsen & Chuang Quantum circuits (Ch 4) SK Quantum algorithms (Ch 5 & 6) Göran Johansson Physical realisation

More information

Software and Architectures for Large-Scale Quantum Computing

Software and Architectures for Large-Scale Quantum Computing Software and Architectures for Large-Scale Quantum Computing Fred Chong Seymour Goodman Professor of Computer Architecture Department of Computer Science University of Chicago with Ken Brown, Margaret

More information

Classical RSA algorithm

Classical RSA algorithm Classical RSA algorithm We need to discuss some mathematics (number theory) first Modulo-NN arithmetic (modular arithmetic, clock arithmetic) 9 (mod 7) 4 3 5 (mod 7) congruent (I will also use = instead

More information

Seminar 1. Introduction to Quantum Computing

Seminar 1. Introduction to Quantum Computing Seminar 1 Introduction to Quantum Computing Before going in I am also a beginner in this field If you are interested, you can search more using: Quantum Computing since Democritus (Scott Aaronson) Quantum

More information

CHAPTER 2 AN ALGORITHM FOR OPTIMIZATION OF QUANTUM COST. 2.1 Introduction

CHAPTER 2 AN ALGORITHM FOR OPTIMIZATION OF QUANTUM COST. 2.1 Introduction CHAPTER 2 AN ALGORITHM FOR OPTIMIZATION OF QUANTUM COST Quantum cost is already introduced in Subsection 1.3.3. It is an important measure of quality of reversible and quantum circuits. This cost metric

More information

Lecture 2: From Classical to Quantum Model of Computation

Lecture 2: From Classical to Quantum Model of Computation CS 880: Quantum Information Processing 9/7/10 Lecture : From Classical to Quantum Model of Computation Instructor: Dieter van Melkebeek Scribe: Tyson Williams Last class we introduced two models for deterministic

More information

Quantum Computing: Foundations to Frontier Fall Lecture 3

Quantum Computing: Foundations to Frontier Fall Lecture 3 Quantum Computing: Foundations to Frontier Fall 018 Lecturer: Henry Yuen Lecture 3 Scribes: Seyed Sajjad Nezhadi, Angad Kalra Nora Hahn, David Wandler 1 Overview In Lecture 3, we started off talking about

More information

C/CS/Phys C191 Quantum Gates, Universality and Solovay-Kitaev 9/25/07 Fall 2007 Lecture 9

C/CS/Phys C191 Quantum Gates, Universality and Solovay-Kitaev 9/25/07 Fall 2007 Lecture 9 C/CS/Phys C191 Quantum Gates, Universality and Solovay-Kitaev 9/25/07 Fall 2007 Lecture 9 1 Readings Benenti, Casati, and Strini: Quantum Gates Ch. 3.2-3.4 Universality Ch. 3.5-3.6 2 Quantum Gates Continuing

More information

1 Quantum Lambda Calculus

1 Quantum Lambda Calculus 1 Quantum Lambda Calculus Peter Selinger Dalhousie University, Canada Benoît Valiron INRIA and École Polytechnique, LIX, Palaiseau, France. Abstract We discuss the design of a typed lambda calculus for

More information

Lecture 11 September 30, 2015

Lecture 11 September 30, 2015 PHYS 7895: Quantum Information Theory Fall 015 Lecture 11 September 30, 015 Prof. Mark M. Wilde Scribe: Mark M. Wilde This document is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike

More information

High Fidelity to Low Weight. Daniel Gottesman Perimeter Institute

High Fidelity to Low Weight. Daniel Gottesman Perimeter Institute High Fidelity to Low Weight Daniel Gottesman Perimeter Institute A Word From Our Sponsor... Quant-ph/0212066, Security of quantum key distribution with imperfect devices, D.G., H.-K. Lo, N. Lutkenhaus,

More information

Quantum parity algorithms as oracle calls, and application in Grover Database search

Quantum parity algorithms as oracle calls, and application in Grover Database search Abstract Quantum parity algorithms as oracle calls, and application in Grover Database search M. Z. Rashad Faculty of Computers and Information sciences, Mansoura University, Egypt Magdi_z2011@yahoo.com

More information

QUANTUM COMPUTING 10.

QUANTUM COMPUTING 10. QUANTUM COMPUTING 10. Jozef Gruska Faculty of Informatics Brno Czech Republic December 20, 2011 10. QUANTUM ERROR CORRECTION CODES Quantum computing based on pure states and unitary evolutions is an idealization

More information

1 Quantum Lambda Calculus

1 Quantum Lambda Calculus 1 Quantum Lambda Calculus Peter Selinger Dalhousie University, Canada Benoît Valiron INRIA and École Polytechnique, LIX, Palaiseau, France. 1.1 Introduction The lambda calculus, developed in the 1930 s

More information

arxiv:quant-ph/ v3 11 Mar 2004

arxiv:quant-ph/ v3 11 Mar 2004 ariv:quant-ph/040148v3 11 ar 004 Generalized G States and Distributed Quantum Computing Anocha Yimsiriwattana and Samuel J. Lomonaco Jr. Abstract. A key problem in quantum computing is finding a viable

More information

Universal Blind Quantum Computing

Universal Blind Quantum Computing Universal Blind Quantum Computing Elham Kashefi Laboratoire d Informatique de Grenoble Joint work with Anne Broadbent Montreal Joe Fitzsimons Oxford Classical Blind Computing Fundamentally asymmetric unlike

More information

Quantum information and quantum computing

Quantum information and quantum computing Middle East Technical University, Department of Physics January 7, 009 Outline Measurement 1 Measurement 3 Single qubit gates Multiple qubit gates 4 Distinguishability 5 What s measurement? Quantum measurement

More information

Physics is becoming too difficult for physicists. David Hilbert (mathematician)

Physics is becoming too difficult for physicists. David Hilbert (mathematician) Physics is becoming too difficult for physicists. David Hilbert (mathematician) Simple Harmonic Oscillator Credit: R. Nave (HyperPhysics) Particle 2 X 2-Particle wave functions 2 Particles, each moving

More information

A Categorical Model for a Quantum Circuit Description Language (Extended Abstract)

A Categorical Model for a Quantum Circuit Description Language (Extended Abstract) A Categorical Model for a Quantum Circuit Description Language (Extended Abstract) Francisco Rios and Peter Selinger Dalhousie University Halifax, Canada Quipper is a practical programming language for

More information

Quantum Teleportation Pt. 3

Quantum Teleportation Pt. 3 Quantum Teleportation Pt. 3 PHYS 500 - Southern Illinois University March 7, 2017 PHYS 500 - Southern Illinois University Quantum Teleportation Pt. 3 March 7, 2017 1 / 9 A Bit of History on Teleportation

More information

Introduction to Quantum Computation

Introduction to Quantum Computation Chapter 1 Introduction to Quantum Computation 1.1 Motivations The main task in this course is to discuss application of quantum mechanics to information processing (or computation). Why? Education:Asingleq-bitisthesmallestpossiblequantummechanical

More information

Orthogonality and Algebraic Lambda-Calculus

Orthogonality and Algebraic Lambda-Calculus Orthogonality and Algebraic Lambda-Calculus Benoît Valiron March 28, 2010 Abstract Directly encoding lambda-terms on quantum strings while keeping a quantum interpretation is a hard task. As shown by van

More information

Formalization of quantum protocols using Coq

Formalization of quantum protocols using Coq Formalization of quantum protocols using Coq Jaap Boender Rajagopal Nagarajan Florian Kammüller July 17, 2015 Motivation for Interactive Theorem Proving (ITP) Automated Reasoning High Expressivity Trade

More information

Quantum Noise. Michael A. Nielsen. University of Queensland

Quantum Noise. Michael A. Nielsen. University of Queensland Quantum Noise Michael A. Nielsen University of Queensland Goals: 1. To introduce a tool the density matrix that is used to describe noise in quantum systems, and to give some examples. Density matrices

More information

arxiv: v1 [quant-ph] 18 Feb 2014

arxiv: v1 [quant-ph] 18 Feb 2014 LIQU i : A Software Design Architecture and Domain-Specific Language for Quantum Computing Dave Wecker Krysta M. Svore Microsoft Research {wecker,ksvore}@microsoft.com arxiv:1402.4467v1 [quant-ph] 18 Feb

More information

Knotted Pictures of Hadamard Gate and CNOT Gate

Knotted Pictures of Hadamard Gate and CNOT Gate Commun. Theor. Phys. (Beijing, China) 51 (009) pp. 967 97 c Chinese Physical Society and IOP Publishing Ltd Vol. 51, No. 6, June 15, 009 Knotted Pictures of Hadamard Gate and CNOT Gate GU Zhi-Yu 1 and

More information

Simulating classical circuits with quantum circuits. The complexity class Reversible-P. Universal gate set for reversible circuits P = Reversible-P

Simulating classical circuits with quantum circuits. The complexity class Reversible-P. Universal gate set for reversible circuits P = Reversible-P Quantum Circuits Based on notes by John Watrous and also Sco8 Aaronson: www.sco8aaronson.com/democritus/ John Preskill: www.theory.caltech.edu/people/preskill/ph229 Outline Simulating classical circuits

More information

5. Communication resources

5. Communication resources 5. Communication resources Classical channel Quantum channel Entanglement How does the state evolve under LOCC? Properties of maximally entangled states Bell basis Quantum dense coding Quantum teleportation

More information

Principles of Quantum Mechanics Pt. 2

Principles of Quantum Mechanics Pt. 2 Principles of Quantum Mechanics Pt. 2 PHYS 500 - Southern Illinois University February 9, 2017 PHYS 500 - Southern Illinois University Principles of Quantum Mechanics Pt. 2 February 9, 2017 1 / 13 The

More information

QPEL Quantum Program and Effect Language

QPEL Quantum Program and Effect Language QPEL Quantum Program and Effect Language QPL 2014 Kyoto Robin Adams r.adams@cs.ru.nl 5 June 2014 R Adams 5 June 2014 QPEL 1 / 32 Introduction QPEL (Quantum Program and Effect language) is a formal system

More information

Abstract structure of unitary oracles for quantum algorithms

Abstract structure of unitary oracles for quantum algorithms Abstract structure o unitary oracles or quantum algorithms William Zeng 1 Jamie Vicary 2 1 Department o Computer Science University o Oxord 2 Centre or Quantum Technologies, University o Singapore and

More information

Introduction to Quantum Error Correction

Introduction to Quantum Error Correction Introduction to Quantum Error Correction Nielsen & Chuang Quantum Information and Quantum Computation, CUP 2000, Ch. 10 Gottesman quant-ph/0004072 Steane quant-ph/0304016 Gottesman quant-ph/9903099 Errors

More information

THE UNIVERSITY OF CALGARY. Programming with a Quantum Stack. Brett Gordon Giles A THESIS SUBMITTED TO THE FACULTY OF GRADUATE STUDIES

THE UNIVERSITY OF CALGARY. Programming with a Quantum Stack. Brett Gordon Giles A THESIS SUBMITTED TO THE FACULTY OF GRADUATE STUDIES THE UNIVERSITY OF CALGARY Programming with a Quantum Stack by Brett Gordon Giles A THESIS SUBMITTED TO THE FACULTY OF GRADUATE STUDIES IN PARTIAL FULFILLMENT OF THE REQUIREMENTS FOR THE DEGREE OF MASTER

More information

A Lambda Calculus for Quantum Computation

A Lambda Calculus for Quantum Computation arxiv:quant-ph/0307150v5 3 Apr 004 A Lambda Calculus for Quantum Computation André van Tonder Department of Physics, Brown University Box 1843, Providence, RI 0906 andre@het.brown.edu July 15, 003 Revised

More information

Quantum Computing: From Circuit To Architecture

Quantum Computing: From Circuit To Architecture POLITECNICO DI MILANO Dipartimento di Elettronica, Informazione e Bioingegneria Quantum Computing: From Circuit To Architecture Nicholas Mainardi Email: nicholas.mainardi@polimi.it home.deib.polimi.it/nmainardi

More information

Quantum Computers. Todd A. Brun Communication Sciences Institute USC

Quantum Computers. Todd A. Brun Communication Sciences Institute USC Quantum Computers Todd A. Brun Communication Sciences Institute USC Quantum computers are in the news Quantum computers represent a new paradigm for computing devices: computers whose components are individual

More information

Grover s algorithm. We want to find aa. Search in an unordered database. QC oracle (as usual) Usual trick

Grover s algorithm. We want to find aa. Search in an unordered database. QC oracle (as usual) Usual trick Grover s algorithm Search in an unordered database Example: phonebook, need to find a person from a phone number Actually, something else, like hard (e.g., NP-complete) problem 0, xx aa Black box ff xx

More information

Quantum Communication Complexity

Quantum Communication Complexity Quantum Communication Complexity Ronald de Wolf Communication complexity has been studied extensively in the area of theoretical computer science and has deep connections with seemingly unrelated areas,

More information

Conservation of Information

Conservation of Information Conservation of Information Amr Sabry (in collaboration with Roshan P. James) School of Informatics and Computing Indiana University May 8, 2012 Amr Sabry (in collaboration with Roshan P. James) (IU SOIC)

More information

Quantum Computing Virtual Machine. Author: Alexandru Gheorghiu Scientific advisor: PhD. Lorina Negreanu

Quantum Computing Virtual Machine. Author: Alexandru Gheorghiu Scientific advisor: PhD. Lorina Negreanu Quantum Computing Virtual Machine Author: Alexandru Gheorghiu Scientific advisor: PhD. Lorina Negreanu Quantum Computing Virtual Machine Quantum Computing Computer science + quantum mechanics = quantum

More information

Short introduction to Quantum Computing

Short introduction to Quantum Computing November 7, 2017 Short introduction to Quantum Computing Joris Kattemölle QuSoft, CWI, Science Park 123, Amsterdam, The Netherlands Institute for Theoretical Physics, University of Amsterdam, Science Park

More information

Instantaneous Nonlocal Measurements

Instantaneous Nonlocal Measurements Instantaneous Nonlocal Measurements Li Yu Department of Physics, Carnegie-Mellon University, Pittsburgh, PA July 22, 2010 References Entanglement consumption of instantaneous nonlocal quantum measurements.

More information

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

Introduction to Quantum Algorithms Part I: Quantum Gates and Simon s Algorithm Part I: Quantum Gates and Simon s Algorithm Martin Rötteler NEC Laboratories America, Inc. 4 Independence Way, Suite 00 Princeton, NJ 08540, U.S.A. International Summer School on Quantum Information, Max-Planck-Institut

More information

Discrete Mathematics. CS204: Spring, Jong C. Park Computer Science Department KAIST

Discrete Mathematics. CS204: Spring, Jong C. Park Computer Science Department KAIST Discrete Mathematics CS204: Spring, 2008 Jong C. Park Computer Science Department KAIST Today s Topics Combinatorial Circuits Properties of Combinatorial Circuits Boolean Algebras Boolean Functions and

More information

Quantum Recursion and Second Quantisation

Quantum Recursion and Second Quantisation Quantum Recursion and Second Quantisation Mingsheng Ying State Key Laboratory of Computer Science Outline 1. Introduction 2. Recursive Programming 3. Classical Recursion in Quantum Programming 4. Quantum

More information

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

Ph 219b/CS 219b. Exercises Due: Wednesday 20 November 2013 1 h 219b/CS 219b Exercises Due: Wednesday 20 November 2013 3.1 Universal quantum gates I In this exercise and the two that follow, we will establish that several simple sets of gates are universal for

More information

QUANTUM COMPUTATION. Exercise sheet 1. Ashley Montanaro, University of Bristol H Z U = 1 2

QUANTUM COMPUTATION. Exercise sheet 1. Ashley Montanaro, University of Bristol H Z U = 1 2 School of Mathematics Spring 017 QUANTUM COMPUTATION Exercise sheet 1 Ashley Montanaro, University of Bristol ashley.montanaro@bristol.ac.uk 1. The quantum circuit model. (a) Consider the following quantum

More information

D.5 Quantum error correction

D.5 Quantum error correction D. QUANTUM ALGORITHMS 157 Figure III.34: E ects of decoherence on a qubit. On the left is a qubit yi that is mostly isoloated from its environment i. Ontheright,aweakinteraction between the qubit and the

More information

Quantum Entanglement and the Bell Matrix

Quantum Entanglement and the Bell Matrix Quantum Entanglement and the Bell Matrix Marco Pedicini (Roma Tre University) in collaboration with Anna Chiara Lai and Silvia Rognone (La Sapienza University of Rome) SIMAI2018 - MS27: Discrete Mathematics,

More information

Database Manipulation Operations on Quantum Systems

Database Manipulation Operations on Quantum Systems Quant Inf Rev, No, 9-7 (203) 9 Quantum Information Review An International Journal http://dxdoiorg/02785/qir/0002 Database Manipulation Operations on Quantum Systems Ahmed Younes Department of Mathematics

More information

C/CS/Phys 191 Quantum Gates and Universality 9/22/05 Fall 2005 Lecture 8. a b b d. w. Therefore, U preserves norms and angles (up to sign).

C/CS/Phys 191 Quantum Gates and Universality 9/22/05 Fall 2005 Lecture 8. a b b d. w. Therefore, U preserves norms and angles (up to sign). C/CS/Phys 191 Quantum Gates and Universality 9//05 Fall 005 Lecture 8 1 Readings Benenti, Casati, and Strini: Classical circuits and computation Ch.1.,.6 Quantum Gates Ch. 3.-3.4 Universality Ch. 3.5-3.6

More information

Lecture 4: Postulates of quantum mechanics

Lecture 4: Postulates of quantum mechanics Lecture 4: Postulates of quantum mechanics Rajat Mittal IIT Kanpur The postulates of quantum mechanics provide us the mathematical formalism over which the physical theory is developed. For people studying

More information

Large-Scale Quantum Architectures

Large-Scale Quantum Architectures Large-Scale Quantum Architectures Fred Chong Director of Computer Engineering Professor of Computer Science University of California at Santa Barbara With Daniel Kudrow, Tzvetan Metodi, Darshan Thaker,

More information

Example: sending one bit of information across noisy channel. Effects of the noise: flip the bit with probability p.

Example: sending one bit of information across noisy channel. Effects of the noise: flip the bit with probability p. Lecture 20 Page 1 Lecture 20 Quantum error correction Classical error correction Modern computers: failure rate is below one error in 10 17 operations Data transmission and storage (file transfers, cell

More information

Introduction to Quantum Computing

Introduction to Quantum Computing Introduction to Quantum Computing Stephen Casey NASA Slide template creator Krysta Svore Bloch Sphere Hadamard basis θ φ Quantum Hardware Technologies Quantum dots Superconductors Ion traps Nitrogen

More information

Quantum Computing. Thorsten Altenkirch

Quantum Computing. Thorsten Altenkirch Quantum Computing Thorsten Altenkirch Is Computation universal? Alonzo Church - calculus Alan Turing Turing machines computable functions The Church-Turing thesis All computational formalisms define the

More information

Lecture: Quantum Information

Lecture: Quantum Information Lecture: Quantum Information Transcribed by: Crystal Noel and Da An (Chi Chi) November 10, 016 1 Final Proect Information Find an issue related to class you are interested in and either: read some papers

More information

Bicubical Directed Type Theory

Bicubical Directed Type Theory Bicubical Directed Type Theory Matthew Weaver General Examination May 7th, 2018 Advised by Andrew Appel and Dan Licata Bicubical Directed Type Theory Bicubical directed type theory is a constructive model

More information

arxiv:quant-ph/ v1 13 Mar 2007

arxiv:quant-ph/ v1 13 Mar 2007 Quantum Key Distribution with Classical Bob Michel Boyer 1, Dan Kenigsberg 2 and Tal Mor 2 1. Département IRO, Université de Montréal Montréal (Québec) H3C 3J7 CANADA 2. Computer Science Department, Technion,

More information

6.896 Quantum Complexity Theory September 9, Lecture 2

6.896 Quantum Complexity Theory September 9, Lecture 2 6.96 Quantum Complexity Theory September 9, 00 Lecturer: Scott Aaronson Lecture Quick Recap The central object of study in our class is BQP, which stands for Bounded error, Quantum, Polynomial time. Informally

More information

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

Quantum algorithms (CO 781, Winter 2008) Prof. Andrew Childs, University of Waterloo LECTURE 1: Quantum circuits and the abelian QFT Quantum algorithms (CO 78, Winter 008) Prof. Andrew Childs, University of Waterloo LECTURE : Quantum circuits and the abelian QFT This is a course on quantum algorithms. It is intended for graduate students

More information