Quantum Circuit Decomposition

Slides:



Advertisements
Similar presentations
5.4 Basis And Dimension.
Advertisements

Elementary Linear Algebra
5.1 Real Vector Spaces.
Chapter 4 Euclidean Vector Spaces
6.4 Best Approximation; Least Squares
Applied Informatics Štefan BEREŽNÝ
Chapter 28 – Part II Matrix Operations. Gaussian elimination Gaussian elimination LU factorization LU factorization Gaussian elimination with partial.
Quantum Computing MAS 725 Hartmut Klauck NTU
1.5 Elementary Matrices and a Method for Finding
Solution of linear system of equations
Quantum Phase Estimation using Multivalued Logic.
Two-Qubit Quantum Circuits Vivek V. Shende Igor L. Markov Stephen S. Bullock.
Information Retrieval in Text Part III Reference: Michael W. Berry and Murray Browne. Understanding Search Engines: Mathematical Modeling and Text Retrieval.
3.V.1. Changing Representations of Vectors 3.V.2. Changing Map Representations 3.V. Change of Basis.
“Both Toffoli and CNOT need little help to do universal QC” (following a paper by the same title by Yaoyun Shi) paper.
Dirac Notation and Spectral decomposition Michele Mosca.
Anuj Dawar.
Symbolic Reduction of Quantum Circuits. Motivation In classical computation, it is desirable to find a “minimal” circuit to compute a given function In.
Authors Faisal Shah Khan Marek A. Perkowski Slides prepared by Faisal Shah Khan.
MOHAMMAD IMRAN DEPARTMENT OF APPLIED SCIENCES JAHANGIRABAD EDUCATIONAL GROUP OF INSTITUTES.
1 © 2012 Pearson Education, Inc. Matrix Algebra THE INVERSE OF A MATRIX.
Matrix Algebra THE INVERSE OF A MATRIX © 2012 Pearson Education, Inc.
An Arbitrary Two-qubit Computation in 23 Elementary Gates or Less Stephen S. Bullock and Igor L. Markov University of Michigan Departments of Mathematics.
Dirac Notation and Spectral decomposition
Introduction to Quantum logic (2) Yong-woo Choi.
Quantum Algorithms Preliminaria Artur Ekert. Computation INPUT OUTPUT Physics Inside (and outside) THIS IS WHAT OUR LECTURES WILL.
ROM-based computations: quantum versus classical B.C. Travaglione, M.A.Nielsen, H.M. Wiseman, and A. Ambainis.
Finding the Inverse of a Matrix
5.1 Orthogonality.
CSEP 590tv: Quantum Computing Dave Bacon June 29, 2005 Today’s Menu Administrivia Complex Numbers Bra’s Ket’s and All That Quantum Circuits.
Scientific Computing QR Factorization Part 1 – Orthogonal Matrices, Reflections and Rotations.
Classical Versus Quantum. Goal: Fast, low-cost implementation of useful algorithms using standard components (gates) and design techniques Classical Logic.
LU Decomposition 1. Introduction Another way of solving a system of equations is by using a factorization technique for matrices called LU decomposition.
Chapter 1 Systems of Linear Equations and Matrices
1 February 24 Matrices 3.2 Matrices; Row reduction Standard form of a set of linear equations: Chapter 3 Linear Algebra Matrix of coefficients: Augmented.
Systems of Linear Equation and Matrices
Matrix Algebra. Quick Review Quick Review Solutions.
Chap. 2 Matrices 2.1 Operations with Matrices
Slide Chapter 7 Systems and Matrices 7.1 Solving Systems of Two Equations.
Chapter 6.7 Determinants. In this chapter all matrices are square; for example: 1x1 (what is a 1x1 matrix, in fact?), 2x2, 3x3 Our goal is to introduce.
Outline Main result Quantum computation and quantum circuits Feynman’s sum over paths Polynomials QuPol program “Quantum Polynomials” Quantum polynomials.
1 Part II: Linear Algebra Chapter 8 Systems of Linear Algebraic Equations; Gauss Elimination 8.1 Introduction There are many applications in science and.
Sec 3.5 Inverses of Matrices Where A is nxn Finding the inverse of A: Seq or row operations.
Elementary Linear Algebra Anton & Rorres, 9th Edition
MAT 2401 Linear Algebra 3.1 The Determinant of a Matrix
Scientific Computing Singular Value Decomposition SVD.
8.4.2 Quantum process tomography 8.5 Limitations of the quantum operations formalism 量子輪講 2003 年 10 月 16 日 担当:徳本 晋
2.5 – Determinants and Multiplicative Inverses of Matrices.
LEARNING OUTCOMES At the end of this topic, student should be able to :  D efination of matrix  Identify the different types of matrices such as rectangular,
Section 2.1 Determinants by Cofactor Expansion. THE DETERMINANT Recall from algebra, that the function f (x) = x 2 is a function from the real numbers.
2 2.2 © 2016 Pearson Education, Ltd. Matrix Algebra THE INVERSE OF A MATRIX.
2 - 1 Chapter 2A Matrices 2A.1 Definition, and Operations of Matrices: 1 Sums and Scalar Products; 2 Matrix Multiplication 2A.2 Properties of Matrix Operations;
MAT 322: LINEAR ALGEBRA.
Linear Algebra Lecture 15.
Chapter 1 Systems of Linear Equations and Matrices
Lecture on Linear Algebra
A Ridiculously Brief Overview
Chap 4 Quantum Circuits: p
Introduction to Quantum logic (2)
Numerical Analysis Lecture14.
Numerical Analysis Lecture10.
Systems of Linear Equations and Matrices
Maths for Signals and Systems Linear Algebra in Engineering Lectures 9, Friday 28th October 2016 DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN SIGNAL.
EIGENVECTORS AND EIGENVALUES
Linear Algebra Lecture 41.
Sec 3.5 Inverses of Matrices
3.IV. Change of Basis 3.IV.1. Changing Representations of Vectors
Linear Algebra: Matrix Eigenvalue Problems – Part 2
Matrix Algebra THE INVERSE OF A MATRIX © 2012 Pearson Education, Inc.
Chapter 2 Determinants.
Presentation transcript:

Quantum Circuit Decomposition from unitary matrices into elementary gates

Prologue In classical logic synthesis, one may trivially decompose any boolean function into an OR of ANDs (sum of products) Local optimizations may then be applied to shrink the resulting circuit Can the same be done in the quantum case?

Objectives Introduce the “controlled-U” gate Exhibit a decomposition of a controlled-U into CNOT gates and 1-qubit rotation gates Introduce the QR-decomposition Use QR to decompose a unitary matrix into controlled-U gates Conclude that any operator can be built of CNOT gates and 1-qubit rotations

References The A. Barenko et. Al. paper, and how to write a controlled-U gate in elementary gates U(2) and SU(2) matrices Controlled-U gates The Cybenko paper, and how to write an arbitrary unitary matrix in elementary gates QR decomposition Making it a circuit

Objectives Introduce the “controlled-U” gate Exhibit a decomposition of a controlled-U into CNOT gates and 1-qubit rotation gates Introduce the QR-decomposition Use QR to decompose a unitary matrix into controlled-U gates Conclude that any operator can be built of CNOT gates and 1-qubit rotations

The “controlled-U” The block-matrix form of a “controlled-U” gate These can be decomposed into CNOT gates 1-qubit rotations

Objectives Introduce the “controlled-U” gate Exhibit a decomposition of a controlled-U into CNOT gates and 1-qubit rotation gates Introduce the QR-decomposition Use QR to decompose a unitary matrix into controlled-U gates Conclude that any operator can be built of CNOT gates and 1-qubit rotations

One Qubit Rotations Let U be a SU(2) matrix. U must take the form Where

One Qubit Rotations Define So that

Some Quick Facts R takes sums to products (R=Rz or Ry) R(0)=I. So: Finally,

Circuit Decompositions The A. Barenko et. Al. paper, and how to write a controlled-U gate in elementary gates U(2) and SU(2) matrices Controlled-U gates The Cybenko paper, and how to write an arbitrary unitary matrix in elementary gates QR decomposition Making it a circuit

Controlled-U Gates Consider the “controlled-U” gate Claim: this circuit is equivalent U B A C

Controlled-U Gates Check this circuit on basis states One observes B A

Controlled-U Gates Check this circuit on basis states One observes B A

Controlled-U Gates Check this circuit on basis states One observes B A

Controlled-U Gates Check this circuit on basis states One observes B A

Controlled-U Gates Check this circuit on basis states One observes And similarly,

Controlled-U Gates Check this circuit on basis states One observes And similarly,

Controlled-U Gates Check this circuit on basis states One observes And similarly,

Controlled-U Gates Check this circuit on basis states One observes And similarly,

Controlled-U Gates Check this circuit on basis states One observes And similarly,

Controlled-U Gates Check this circuit on basis states By linearity, this circuit performs “controlled-U”

Controlled-U Gates If U’ is in U(2) (as opposed to SU(2)), Then write U’=d U, where d2=det U’, U in SU(2) Then U D B A C D U’ = =

Higher Order Controlled-U Gates Recall (from two weeks ago) Where V is a square root of U. This generalizes straight-forwardly to higher numbers of qubits U = V V*

Objectives Introduce the “controlled-U” gate Exhibit a decomposition of a controlled-U into CNOT gates and 1-qubit rotation gates Introduce the QR-decomposition Use QR to decompose a unitary matrix into controlled-U gates Conclude that any operator can be built of CNOT gates and 1-qubit rotations

QR-Decomposition Given a vector (a,b), this SU(2) matrix kills the second coordinate

QR-Decomposition The vector (a,b) might be sitting inside a matrix: Think of this as a rotation of the plane in which the 3rd and 4th coordinates live Note that this matrix is unitary

Making it a Circuit The matrix used to kill coordinates in the bottom row looks like This is a (higher order) controlled-U gate!

QR-Decomposition One may iterate this process

QR-Decomposition One may iterate this process

QR-Decomposition One may iterate this process

QR-Decomposition One may iterate this process

QR-Decomposition One may iterate this process

QR-Decomposition One may iterate this process

QR-Decomposition This yields the formula Where X was the original matrix, the Ui are planar rotations, and R is upper triangular with nonnegative real entries on the diagonal

QR-Decomposition Inverting the Q,

QR-Decomposition If X is unitary, then R is the product of unitary matrices and hence unitary. A triangular unitary matrix must be diagonal A diagonal unitary matrix with nonnegative real entries must be the identity

Objectives Introduce the “controlled-U” gate Exhibit a decomposition of a controlled-U into CNOT gates and 1-qubit rotation gates Introduce the QR-decomposition Use QR to decompose a unitary matrix into controlled-U gates Conclude that any operator can be built of CNOT gates and 1-qubit rotations

Making it a Circuit The matrix used to kill coordinates in the bottom row looks like This is a (higher order) controlled-U gate!

Making it a Circuit Need to make other planar rotations controlled-U gates For some j, given an operator Pj PjUPj-1 is a rotation in the j,j+1 plane. (where U is a rotation in the n-2,n-1 plane)

Making it a Circuit Built the operator out of NOT and CNOT gates How to do it for the case of 4 qubits, j=5

Making it a Circuit Built the operator out of NOT and CNOT gates How to do it for the case of 4 qubits, j=5 1 1 1 1 1

Making it a Circuit Built the operator out of NOT and CNOT gates How to do it for the case of 4 qubits, j=5 1 1 1 1 1

Making it a Circuit The general case is not much harder First, flip all bits that are 0 in both j,j+1 Then, CNOT every remaining bit that is zero in j+1, controlling by the unique bit that is 1 in j+1 and 0 in j Finally, switch this unique bit with the low bit

Objectives Introduce the “controlled-U” gate Exhibit a decomposition of a controlled-U into CNOT gates and 1-qubit rotation gates Introduce the QR-decomposition Use QR to decompose a unitary matrix into controlled-U gates Conclude that any operator can be built of CNOT gates and 1-qubit rotations

Conclusion A unitary matrix can be written as a product of planar rotations A planar rotation can be written as ZUZ-1, where Z can be decomposed into CNOT and NOT gates, and U is a (higher order) controlled-U gate A higher order controlled-U gate can be written as a sequence of CNOT gates and singly controlled-U gates A controlled-U gate can be written as a sequence of CNOT gates and one-qubit rotations

Epilogue The number of gates in this decomposition is exponential in the number of qubits For certain operators, much smaller circuits are known to exist Can we automate the process of moving towards these?

Reduction Could try to shrink a long circuit by local optimization techniques One experimentally observed obstacle: long chains of CNOT gates These long chains of CNOTs result from certain identities

Reduction Could apply classical techniques…