Improving Gate-Level Simulation of Quantum Circuits George F. Viamontes, Igor L. Markov, and John P. Hayes Advanced.

Slides:



Advertisements
Similar presentations
Model Checking Lecture 4. Outline 1 Specifications: logic vs. automata, linear vs. branching, safety vs. liveness 2 Graph algorithms for model checking.
Advertisements

Representing Boolean Functions for Symbolic Model Checking Supratik Chakraborty IIT Bombay.
Quantum Packet Switching A. Yavuz Oruç Department of Electrical and Computer Engineering University of Maryland, College Park.
Quantum Phase Estimation using Multivalued Logic.
Quantum Speedups DoRon Motter August 14, Introduction Two main approaches are known which produce fast Quantum Algorithms The first, and main approach.
Advanced Computer Architecture Laboratory EECS Fall 2001 Quantum Logic Circuits John P. Hayes EECS Department University of Michigan, Ann Arbor,
Quantum Computing Ambarish Roy Presentation Flow.
Grover. Part 2. Components of Grover Loop The Oracle -- O The Hadamard Transforms -- H The Zero State Phase Shift -- Z O is an Oracle H is Hadamards H.
Quantum Computation and Error Correction Ali Soleimani.
An Algebraic Foundation for Quantum Programming Languages Andrew Petersen & Mark Oskin Department of Computer Science The University of Washington.
High-Performance Simulation of Quantum Computation using QuIDDs George F. Viamontes, Manoj Rajagopalan, Igor L. Markov, and John P. Hayes Advanced Computer.
Superposition, Entanglement, and Quantum Computation Aditya Prasad 3/31/02.
DARPA Simulation and Synthesis of Quantum Circuits Igor L. Markov and John P. Hayes Advanced Computer Architecture Laboratory University of Michigan, EECS.
Quantum Computing Lecture 22 Michele Mosca. Correcting Phase Errors l Suppose the environment effects error on our quantum computer, where This is a description.
Quantum Search Algorithms for Multiple Solution Problems EECS 598 Class Presentation Manoj Rajagopalan.
Projects on Quantum Circuits Simulation EECS Department University of Michigan, Ann Arbor, MI George F. Viamontes, Igor L. Markov, and John P. Hayes.
Anuj Dawar.
1 Recap (I) n -qubit quantum state: 2 n -dimensional unit vector Unitary op: 2 n  2 n linear operation U such that U † U = I (where U † denotes the conjugate.
An Arbitrary Two-qubit Computation in 23 Elementary Gates or Less Stephen S. Bullock and Igor L. Markov University of Michigan Departments of Mathematics.
Quantum Computers Todd A. Brun Communication Sciences Institute USC.
Quantum Counters Smita Krishnaswamy Igor L. Markov John P. Hayes.
Quantum Computing Lecture 1 Michele Mosca. l Course Outline
DARPA Advanced Computer Architecture Laboratory Simulation, Synthesis and Testing of Quantum Circuits John P. Hayes and Igor L. Markov Advanced Computer.
ROM-based computations: quantum versus classical B.C. Travaglione, M.A.Nielsen, H.M. Wiseman, and A. Ambainis.
Fast Spectral Transforms and Logic Synthesis DoRon Motter August 2, 2001.
Quantum Communication, Quantum Entanglement and All That Jazz Mark M. Wilde Communication Sciences Institute, Ming Hsieh Department of Electrical Engineering,
Quantum computing Alex Karassev. Quantum Computer Quantum computer uses properties of elementary particle that are predicted by quantum mechanics Usual.
Quantum Algorithms for Neural Networks Daniel Shumow.
Ketan Patel, Igor Markov, John Hayes {knpatel, imarkov, University of Michigan Abstract Circuit reliability is an increasingly important.
Quantum Computation for Dummies Dan Simon Microsoft Research UW students.
QUANTUM COMPUTING an introduction Jean V. Bellissard Georgia Institute of Technology & Institut Universitaire de France.
Quantum Information Jan Guzowski. Universal Quantum Computers are Only Years Away From David’s Deutsch weblog: „For a long time my standard answer to.
Lecture note 8: Quantum Algorithms
October 1 & 3, Introduction to Quantum Computing Lecture 1 of 2 Introduction to Quantum Computing Lecture 1 of 2
An Introduction to Quantum Phenomena and their Effect on Computing Peter Shoemaker MSCS Candidate March 7 th, 2003.
Analysis of Algorithms These slides are a modified version of the slides used by Prof. Eltabakh in his offering of CS2223 in D term 2013.
The Road to Quantum Computing: Boson Sampling Nate Kinsey ECE 695 Quantum Photonics Spring 2014.
DISCRETE COMPUTATIONAL STRUCTURES CS Fall 2005.
Algorithm Analysis (Algorithm Complexity). Correctness is Not Enough It isn’t sufficient that our algorithms perform the required tasks. We want them.
Quantum Computer Simulation Alex Bush Matt Cole James Hancox Richard Inskip Jan Zaucha.
Quantum Computing Paola Cappellaro
Quantum signal processing Aram Harrow UW Computer Science & Engineering
What is Qu antum In formation and T echnology? Prof. Ivan H. Deutsch Dept. of Physics and Astronomy University of New Mexico Second Biannual Student Summer.
A Study of Error-Correcting Codes for Quantum Adiabatic Computing Omid Etesami Daniel Preda CS252 – Spring 2007.
Quantum Convolutional Coding Techniques Mark M. Wilde Communication Sciences Institute, Ming Hsieh Department of Electrical Engineering, University of.
Introduction to Quantum Computing
1 Introduction to Quantum Information Processing CS 467 / CS 667 Phys 467 / Phys 767 C&O 481 / C&O 681 Richard Cleve DC 3524 Course.
1 Introduction to Quantum Information Processing CS 467 / CS 667 Phys 667 / Phys 767 C&O 481 / C&O 681 Richard Cleve DC 653 Lecture.
Capabilities and limitations of quantum computers Michele Mosca 1 November 1999 ECC ’99.
As if computers weren’t fast enough already…
Fidelity of a Quantum ARQ Protocol Alexei Ashikhmin Bell Labs  Classical Automatic Repeat Request (ARQ) Protocol  Quantum Automatic Repeat Request (ARQ)
IPQI-2010-Anu Venugopalan 1 qubits, quantum registers and gates Anu Venugopalan Guru Gobind Singh Indraprastha Univeristy Delhi _______________________________________________.
Fidelities of Quantum ARQ Protocol Alexei Ashikhmin Bell Labs  Classical Automatic Repeat Request (ARQ) Protocol  Qubits, von Neumann Measurement, Quantum.
An Introduction to Quantum Computation Sandy Irani Department of Computer Science University of California, Irvine.
Quantum Computation Stephen Jordan. Church-Turing Thesis ● Weak Form: Anything we would regard as “computable” can be computed by a Turing machine. ●
Quantum Computer Simulation Alex Bush Matt Cole James Hancox Richard Inskip Jan Zaucha.
Speaker: Nansen Huang VLSI Design and Test Seminar (ELEC ) March 9, 2016 Simulation-Based Equivalence Checking.
1 An Introduction to Quantum Computing Sabeen Faridi Ph 70 October 23, 2007.
Beginner’s Guide to Quantum Computing Graduate Seminar Presentation Oct. 5, 2007.
Quantum Bits (qubit) 1 qubit probabilistically represents 2 states
Richard Cleve DC 3524 Introduction to Quantum Information Processing CS 467 / CS 667 Phys 667 / Phys 767 C&O 481 / C&O 681 Lecture.
Introduction to Quantum Computing Lecture 1 of 2
A low cost quantum factoring algorithm
A Ridiculously Brief Overview
Plamen Kamenov Physics 502 Advanced Quantum Mechanics
Introduction to Quantum logic (2)
OSU Quantum Information Seminar
Quantum Ensemble Computing
Improving Quantum Circuit Dependability
Sajib Kumar Mitra, Lafifa Jamal and Hafiz Md. Hasan Babu*
Presentation transcript:

Improving Gate-Level Simulation of Quantum Circuits George F. Viamontes, Igor L. Markov, and John P. Hayes Advanced Computer Architecture Laboratory University of Michigan, EECS DARPA

Problem Simulation of quantum computing on a classical computer –Requires exponentially growing time and memory resources Goal: Improve classical simulation Our Solution: Quantum Information Decision Diagrams (QuIDDs)

Outline Background QuIDD Structure QuIDD Operations Simulation Results Complexity Analysis Results Ongoing Work

Quantum Data Classical bit –Two possible states: 0 or 1 –Measurement is straightforward Qubit (properties follow from Q. M.) –Quantum state –Can be in states 0 or 1, but also in a superposition of 0 and 1 –n qubits represents different values simultaneously –Measurement is probabilistic and destructive

Implementations Liquid and solid state nuclear magnetic resonance (NMR) – nuclear spins Ion traps – electron energy levels Electrons floating on liquid helium – electron spins Optical technologies – photon polarizations Focus of this work: common mathematical description

Qubit Notation Qubits expressed in Dirac notation Vector representation: and are complex numbers called probability amplitudes s.t.

Data Manipulation Qubits are manipulated by operators –Analogous to logic gates Operators are unitary matrices Matrix-vector multiplication describes operator functionality U

Operations on Multiple Qubits Tensor product of operators/qubits HH

Previous Work Traditional array-based representations are insensitive to the values stored Qubit-wise multiplication –1-qubit operator and n-qubit state vector –State vector requires exponential memory BDD techniques –Multi-valued logic for q. circuit synthesis [1] –Shor’s algorithm simulator (SHORNUF) [8]

Redundancy in Quantum Computing Matrix/vector representation of quantum gates/state vectors contains block patterns The tensor product propagates block patterns in vectors and matrices

Example of Propagated Block Patterns

Outline Background QuIDD Structure QuIDD Operations Simulation Results Complexity Analysis Results Ongoing Work

Data Structure that Exploits Redundancy Binary Decision Diagrams (BDDs) exploit repeated sub-structure BDDs have been used to simulate classical logic circuits efficiently [6,2] Example: f = a AND b a f b 10 Assign value of 1 to variable x Assign value of 0 to variable x

BDDs in Linear Algebra Algebraic Decision Diagrams (ADDs) treat variable nodes as matrix indices [2], also MTBDDs ADDs encode all matrix elements a ij –Input variables capture bits of i and j –Terminals represent the value of a ij CUDD implements linear algebra for ADDs (without decompression)

Quantum Information Decision Diagrams (QuIDDs) QuIDDs: an application of ADDs to quantum computing QuIDD matrices : row (i), column (j) vars QuIDD vectors: column vars only Matrix-vector multiplication performed in terms of QuIDDs

QuIDD Vectors f Terminal value array 0 + 0i 1 + 0i 0 1

QuIDD Matrices f 1 0

QuIDDs and ADDs All dimensions are 2 n Row and column variables are interleaved Terminals are integers which map into an array of complex numbers

Outline Background QuIDD Structure QuIDD Operations Simulation Results Complexity Analysis Results Conclusions

QuIDD Operations Based on the Apply algorithm [4,5] –Construct new QuIDDs by traversing two QuIDD operands based on variable ordering –Perform “op” when terminals reached (op is *, +, etc.) –General Form: f op g where f and g are QuIDDs, and x and y are variables in f and g, respectively:

Tensor Product Given A B –Every element of a matrix A is multiplied by the entire matrix B QuIDD Implementation: Use Apply –Operands are A and B –Variables of operand B are shifted –“op” is defined to be multiplication

Other Operations Matrix multiplication –Modified ADD matrix multiply algorithm [2] –Support for terminal array –Support for row/column variable ordering Matrix addition –Call to Apply with “op” set to addition Qubit measurement –DFS traversal or measurement operators

Outline Background QuIDD Structure QuIDD Operations Simulation Results Complexity Analysis Results Ongoing Work

H H H Oracle H H Conditional Phase Shift H H H |0> |1> Grover’s Algorithm - Search for items in an unstructured database of N items - Contains n = log N qubits and has runtime

Number of Iterations Use formulation from Boyer et al. [3] Exponential runtime (even on an actual quantum computer) Actual Quantum Computer Performance: ~ O(1.41 n ) time and O(n) memory

Simulation Results for Grover’s Algorithm Linear memory growth (numbers of nodes shown)

Results: Oracle 1 Linear Growth using QuIDDPro

Oracle 1: Runtime (s) No. Qubits (n)OctaveMATLABBlitz++QuIDDPro e e e32.55e e41.06e e46.76e > 24 hrs 1.35e > 24 hrs 4.09e > 24 hrs 1.23e > 24 hrs 3.67e > 24 hrs 1.09e426.2

Oracle 1: Peak Memory Usage (MB) No. Qubits (n)OctaveMATLABBlitz++QuIDDPro e-21.05e-23.52e-29.38e e-22.07e-28.20e e e Linear Growth using QuIDDPro

Validation of Results SANITY CHECK: Make sure that QuIDDPro achieves highest probability of measuring the item(s) to be searched using the number of iterations predicted by Boyer et al. [3]

Consistency with Theory

Grover Results Summary Asymptotic performance –QuIDDPro: ~ O(1.44 n ) time and O(n) memory –Actual Quantum Computer ~ O(1.41 n ) time and O(n) memory Outperforms other simulation techniques –MATLAB:  (2 n ) time and  (2 n ) memory –Blitz++:  (4 n ) time and  (2 n ) memory

What about errors? Do the errors and mixed states that are encountered in practical quantum circuits cause QuIDDs to explode and lose significant performance?

NIST Benchmarks NIST offers a multitude of quantum circuit descriptions containing errors/decoherence and mixed states NIST also offers a density matrix C++ simulator called QCSim How does QuIDDPro compare to QCSim on these circuits?

QCSim vs. QuIDDPro dsteaneZ: 13-qubit circuit with initial mixed state that implements the Steane code to correct phase flip errors –QCSim: seconds, 512.1MB –QuIDDPro: seconds, MB

QCSim vs. QuIDDPro (2) dsteaneX: 12-qubit circuit with initial mixed state that implements the Steane code to correct bit flip errors –QCSim: 53.2 seconds, 128.1MB –QuIDDPro: 0.33 seconds, MB

Outline Background QuIDD Structure QuIDD Operations Simulation Results Complexity Analysis Results Ongoing Work

Recall the Tensor Product

Key Formula Given QuIDDs, the tensor product QuIDD contains nodes

Persistent Sets A set is persistent if and only if the set of n pair-wise products of its elements is constant (i.e. the pair-wise product n times) Consider the tensor product of two matrices whose elements form a persistent set –The number of unique elements in the resulting matrix will be a constant with respect to the number of unique elements in the operands

Relevance to QuIDDs Tensor products with n QuIDDs whose terminals form a persistent set produce QuIDDs whose sets of terminals do not increase with n

Main Results Given a persistent set and a constant C, consider n QuIDDs with at most C nodes each and terminal values from. The tensor product of those QuIDDs has O(n) nodes and can be computed in O(n) time. Matrix multiplication with QuIDDs A and B as operands requires time and produces a result with nodes [2]

Applied to Grover’s Algorithm Since O(1.41 n ) Grover iterations are required, and thus O(1.41 n ) matrix multiplications, does Grover’s algorithm induce exponential memory complexity when using QuIDDs? Answer: NO! –The internal nodes of the state vector/density matrix QuIDD is the same at the end of each Grover iteration –Runtime and memory requirements are therefore polynomial in the size of the oracle QuIDD

Outline Background QuIDD Structure QuIDD Operations Simulation Results Complexity Analysis Results Ongoing Work

Explore error/decoherence models Simulate Shor’s algorithm –QFT and its inverse are exponential in size as QuIDDs –Other operators are linear in size as QuIDDs –QFT and its inverse are an asymptotic bottleneck Limitations of quantum computing

Relevant Work G. Viamontes, I. Markov, J. Hayes, “Improving Gate-Level Simulation of Quantum circuits,” Los Alamos Quantum Physics Archive, Sept (quant-ph/ ) G. Viamontes, M. Rajagopalan, I. Markov, J. Hayes, “Gate- Level Simulation of Quantum Circuits,” Asia South Pacific Design Automation Conference, pp , January 2003 G. Viamontes, M. Rajagopalan, I. Markov, J. Hayes, ‘Gate- Level Simulation of Quantum Circuits,” 6 th Intl. Conf. on Quantum Communication, Measurement, and Computing, pp , July 2002

References [1] A. N. Al-Rabadi et al., “Multiple-Valued Quantum Logic,” 11 th Intl. Workshop on Post Binary ULSI, Boston, MA, May [2] R. I. Bahar et al., “Algebraic Decision Diagrams and their Applications”, In Proc. IEEE/ACM ICCAD, pp , [3] M. Boyer et al., “Tight Bounds on Quantum Searching”, Fourth Workshop on Physics and Computation, Boston, Nov [4] R. Bryant, “Graph-Based Algorithms for Boolean Function Manipulation”, IEEE Trans. On Computers, vol. C-35, pp , Aug [5] E. Clarke et al., “Multi-Terminal Binary Decision Diagrams and Hybrid Decision Diagrams”, In T. Sasao and M. Fujita, eds, Representations of Discrete Functions, pp , Kluwer, 1996.

References [6] C.Y. Lee, “Representation of Switching Circuits by Binary Decision Diagrams,” Bell System Technical Jour., 38: , [7] D. Gottesman, “The Heisenberg Representation of Quantum Computers,” Plenary Speech at the 1998 Intl. Conf. on Group Theoretic Methods in Physics, ph/ http://xxx.lanl.gov/abs/quant- ph/ [8] D. Greve, “QDD: A Quantum Computer Emulation Library,”