Design of new quantum primitives

Slides:



Advertisements
Similar presentations
Reversible Gates in various realization technologies
Advertisements

CS6800 Advanced Theory of Computation
A Transformation Based Algorithm for Reversible Logic Synthesis D. Michael Miller Dmitri Maslov Gerhard W. Dueck Design Automation Conference, 2003.
Derivatives of Perkowski’s Gate k f2 g h t t De Vos gates  f1f1  A B P Q Feynman gates A B P f 2f 2  C Q R Toffoli gates Q P f 2 A C R B S D 0.
A new crossover technique in Genetic Programming Janet Clegg Intelligent Systems Group Electronics Department.
Use of Simulated Annealing in Quantum Circuit Synthesis Manoj Rajagopalan 17 Jun 2002.
Engineering Models and Design Methods for Quantum State Machines.
April 25, A Constructive Group Theory based Algorithm for Reversible Logic Synthesis.
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
Design of Regular Quantum Circuits
Authors Faisal Shah Khan Marek A. Perkowski Slides prepared by Faisal Shah Khan.
Introduction to Quantum logic (2) Yong-woo Choi.
New Approach to Quantum Calculation of Spectral Coefficients Marek Perkowski Department of Electrical Engineering, 2005.
Research Potential We should develop a set of unified standardized CAD tools for synthesizing, verifying, testing and simulating of quantum computers.
Genetic Programming.
Classical Versus Quantum. Goal: Fast, low-cost implementation of useful algorithms using standard components (gates) and design techniques Classical Logic.
Genetic Algorithm.
Genetic Algorithms and Ant Colony Optimisation
Computer Implementation of Genetic Algorithm
Soft Computing Lecture 18 Foundations of genetic algorithms (GA). Using of GA.
SOFT COMPUTING (Optimization Techniques using GA) Dr. N.Uma Maheswari Professor/CSE PSNA CET.
Intro. ANN & Fuzzy Systems Lecture 36 GENETIC ALGORITHM (1)
Lecture 8: 24/5/1435 Genetic Algorithms Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
Zorica Stanimirović Faculty of Mathematics, University of Belgrade
An Introduction to Genetic Algorithms Lecture 2 November, 2010 Ivan Garibay
Computational Complexity Jang, HaYoung BioIntelligence Lab.
GENETIC ALGORITHM A biologically inspired model of intelligence and the principles of biological evolution are applied to find solutions to difficult problems.
1 Genetic Algorithms and Ant Colony Optimisation.
Genetic Algorithms Przemyslaw Pawluk CSE 6111 Advanced Algorithm Design and Analysis
Genetic Algorithms. 2 Overview Introduction To Genetic Algorithms (GAs) GA Operators and Parameters Genetic Algorithms To Solve The Traveling Salesman.
Chapter 12 FUSION OF FUZZY SYSTEM AND GENETIC ALGORITHMS Chi-Yuan Yeh.
EE749 I ntroduction to Artificial I ntelligence Genetic Algorithms The Simple GA.
Mining Evolutionary Model MEM Rida E. Moustafa And Edward J. Wegman George Mason University Phone:
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.
D Nagesh Kumar, IIScOptimization Methods: M8L5 1 Advanced Topics in Optimization Evolutionary Algorithms for Optimization and Search.
CLASSICAL LOGIC SRFPGA layout With I/O pins.
Quantum Cost Calculation of Reversible Circuit Sajib Mitra MS/ Department of Computer Science and Engineering University of Dhaka
An Introduction to Genetic Algorithms Lecture 2 November, 2010 Ivan Garibay
What is a quantum computer? A quantum computer is any device for computation that makes use of quantum mechanical phenomena to perform operations on data,
Genetic Algorithm Dr. Md. Al-amin Bhuiyan Professor, Dept. of CSE Jahangirnagar University.
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal Evolutionary Computation.
1 Comparative Study of two Genetic Algorithms Based Task Allocation Models in Distributed Computing System Oğuzhan TAŞ 2005.
Genetic Algorithms. Solution Search in Problem Space.
Beginner’s Guide to Quantum Computing Graduate Seminar Presentation Oct. 5, 2007.
Genetic Algorithms And other approaches for similar applications Optimization Techniques.
Genetic Algorithm. Outline Motivation Genetic algorithms An illustrative example Hypothesis space search.
Chapter 14 Genetic Algorithms.
Genetic Algorithm in TDR System
Genetic Algorithms.
Bulgarian Academy of Sciences
Fredkin/Toffoli Templates for Reversible Logic Synthesis
Artificial Intelligence Project 2 Genetic Algorithms
CS621: Artificial Intelligence
Basics of Genetic Algorithms (MidTerm – only in RED material)
Example: Applying EC to the TSP Problem
Quantum Computing Dorca Lee.
A Ridiculously Brief Overview
Introduction to Operators
Introduction to Quantum logic (2)
OSU Quantum Information Seminar
Basics of Genetic Algorithms
EE368 Soft Computing Genetic Algorithms.
Boltzmann Machine (BM) (§6.4)
Searching for solutions: Genetic Algorithms
A Gentle introduction Richard P. Simpson
Genetic Algorithm Soft Computing: use of inexact t solution to compute hard task problems. Soft computing tolerant of imprecision, uncertainty, partial.
Sajib Kumar Mitra, Lafifa Jamal and Hafiz Md. Hasan Babu*
Beyond Classical Search
Population Based Metaheuristics
Presentation transcript:

Evolving Quantum Circuits with Genetic Algorithms and through Exhaustive space search

Design of new quantum primitives Outline Technology Constraints Design of new quantum primitives Evolutionary and Frame based Generator Exhaustive Search Results Future directions Possible projects

Technology for Quantum Computing

What size of (binary) Quantum Computers can be build in year 2003? dicarbonylcyclopentadienyl (perfluorobutadien-2-yl) iron (C11H5F5O2Fe ) Each fluorine and 2 Carbones can be used for computation What size of (binary) Quantum Computers can be build in year 2003? 7 bits

Qbits, ¬ bits In binary quantum logic, the notation for the superposition is |0> + |1>. These intermediate states cannot be distinguished, rather a measurement will yield that the qubit is in one of the basis states, |0>, or |1>. The probability that a measurement of a qudit yields state |0> is ||2, and the probability is ||2 for state |1>. The sum of these probabilites is one. The absolute values are required, since in general,  and  are complex quantities.

Quantum Circuit Synthesis is Technology dependent

Constraints based on the properties of physical implementation of quantum circuits( technology constraints, gate costs) We would like to assume that any two quantum wires can interact, but we are limited by the realization (layout) constraints Structure of atomic bonds in the molecule determines neighborhoods in the circuit. This is similar to restricted routing in FPGA layout - link between logic and layout synthesis known from CMOS design now appears in quantum.

Decoherence plays an important role  minimization circuit length Minimization of cascade’s width but each bit counts (more critical than in reversible synthesis) At first, we will be interested only in the so-called “permutation circuits” - their unitary quantum matrices are permutation matrices One solution to layout constraint problem in quantum NMR computers is to take into account in logic synthesis phase only those gate and their placements that are technology-realizable

Even if conceptually we use higher complexity gates, ultimately we have to build from 2-qubit gates. Another possibility is to assume only primitives for the future algorithms are only 2-qubit gates then the optimal circuit will be the shortest Bottom line is that basic gate in quantum logic is a 2*2 (2-qubit gate). 3*3 Toffoli, Fredkin, de Vos, Kerntopf, Margolus are not directly realizable as a primitive

Molecule - Driven Layout and Logic Synthesis B C D A atoms B C D bonds Allowed gate neighborhood for 2 q-bit gates

A schematics with two binary Toffoli gates Quantum wires A and C are not neighbors A schematics with two binary Toffoli gates B A C D A B C D P=A Q=B C D This is a result of our ESOP minimizer program, but this is not realizable in NMR for the above molecule, because there is no connection between A and C, for instance, in the molecule.

So we have to modify the schematics as follows b c d a b c d Costs 3 Feynman gates

Design of new (complex) quantum gates and their costs

= Design a Toffoli Gate from 2-qbit quantum primitives abc c = V & V+ are root square of NOT and its hermitian (complex) conjugate such as V*V =NOT V : C_V: q-bit 2 unchanged unless q-bit 1 equals to 1

Example: Optimal Solution to Miller Function (AC  BC AB)  (A  B) = AC’  AB  BC’ AB h B AC C i * A g AC  BC AC (AC  BC AB)  (A  C) = AC  AB’  B’C Cost in Gates: 4*1+5 = 9 Cost = 1 Toffoli + 4 Feynman gates

2-qubit quantum realization of Miller Gate Toffoli Cost in Gates: 9*1 = 9 V V+ Cost in Gates: 7*1 = 7 V V+ V V+ Cost in Gates: 7*1 = 7

= Fredkin Gate build from Toffoli and Feynman gates Cost in Gates: 2+5 = 7 bc ab a’c=ac ba’ To = ca(b c)=c ab ac=ca’ ac

Transforms a b c V V V+ Cost in Gates: 7*1 = 7 a b c V V V+

Evolutionary and Frame-based gate generators

Genetic Algorithm A set of elements being modified according to evolutionary rules: Selection (based on the fitness function) Crossing Over Mutation Replication These operators are made in generation steps Process stops when the solution is found Important in GA Encoding of the elements/individuals Complex with a lot of parameters Simple, task specific no parameters Fitness function Simple Including layout specific constraints Cost of gates

Circuit Encoding Circuit matrix representation - Kronecker product Toffoli Wire Feynman Walsh Feynman Circuit matrix representation - Kronecker product  - Matrix product Wire Feynman Feynman 4 /PWCCNOT/P /PFHH/P /PFF/P Toffoli Walsh Feynman Walsh

GA for quantum circuit synthesis Set of elements: randomly generated q-circuits encoded in string representation H W H H 5PWSWWPPHWCPPWSWWP

H W X Example Pauli X gate Wire Hadamard gate XOR or CNOT

W H X W Evaluation

Calculation H W

Operations Mutation Crossing over 2 Cn X /P H Y W 2 X /P H W Y 2 X /P

Overview * - for circuits having only same number of I/O Mutation Gates Blocks Position (block/circuit) Cross-Over* Segments Experimental (unitary matrices) Reproduction Circuits Best gates Best Circuits * - for circuits having only same number of I/O

GA’s settings SUS, Roulette wheel Fitness: Goal: Fitness: H W X

Peres gate - the cheapest 3-qubit gate Frame-based search starting from Peres gate Peres gate - the cheapest 3-qubit gate V V+ a ab ab c b c Adding Feynman gates on all possible pairs of wires on which Feynman is realizable V V+ a ab ab c b c ab ab c=(a+b) c C=0(A+b) C=1 (a+b)’=a’b’

a) b) Other frame search examples A = a  c B = a  b C = ab  ac  bc V V+ a) Cost in Gates: 5*1 = 5 a b c V V+ C = ab  ac  bc A = a  c B = a’b  a’c  bc b) Cost in Gates: 5*1 = 5

Exhaustive Search

Searching all gates in a very limited space of permutation 1015-1018 Exhaustive gate search Searching all gates in a very limited space of permutation 1015-1018 Up to 7 segments circuits 3 I/O circuits Comparing to gates such as Toffoli, Fredkin, de Vos, Kerntopf, etc.

Idea: to look for all possible equivalent gates in a certain category Exhaustive gate search Idea: to look for all possible equivalent gates in a certain category Using specified gates in different technologies Find the minimal possible cost of the gate

Results

Unitary gate search examples No starting set restriction H 1 1 1 2 1 -1 Generations: 10 Mutation rate: 0.3 1 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0 Generations: 20 Mutation rate: 0.3

Other gates search Generations: 100 Mutation rate: 0.4

Random circuit search EPR producing circuit Generations: 450 Mutation: 0.3 H 4 /PWWHW/P /PWWF/P /PWSW/P /PWFW/P /PSWW/P /PFWW/P /PSWW/P /PWSW/P H W

Random circuit search “Send” circuit Generations: 150 Mutation: 0.3 H 3 /PWWH/P /PWF/P /PFW/P /PHWW/P H W

Examples for Toffoli V V V+ V+ V V V V V+ V ¬ ¬ V V V+

Experimental results 1 - input <50 0.4 0.6 < 30 seconds <100 Number of inputs per q-gate Number of generations pM pC Real time (average 20 runs) pM<0.2 Number of generations Real time (average 20 runs) Population size 1 - input <50 0.4 0.6 < 30 seconds <100 < 1 minute 50 2 - inputs 3 - inputs 50 - 200 <1 minute <200 < 3 minutes 60

Experimental results (cont.) Problem searched Solution found F1/F6 Time of search in number of generations F1/F6 Toffoli YES/YES <2000 / <50000 Fredkin <1000 / <75000 Margolus YES/NO <1000 / <100000

. . P Q B A Generalized n*n Fredkin Gate Q P A C R B S D A n-1 f ‘n-1 (A1, …., A n-1 ) + A n f n-1 (A1, …., A n-1 ) A n-1 f n-1 (A1, …., A n-1 ) + A n f ‘n-1 (A1, …., A n-1 ) . A1 A n-2 fn-1 A n A n-1 1 Generalized n*n Fredkin Gate Q P f2 A C R B S 1 D Generalized 4*4 Fredkin Gate f1  A B P Q Generalized Feynman Gate A B P f2  C Q R Generalized Ternary 3*3 Toffoli Gate f 2 A C Q R B P S D *  1 Generalized 4*4 Kerntopf Gate A n f n-1 (A1, …, An-1 ) A1 A n-1 fn-1  An . Generalized n*n Toffoli Gate

Future Perspectives

Standard GA Darwinian evolution Population Population Population Crossover Mutation Evaluation Replication New Generation Genotype Population Population Crossover Mutation New Generation Genotype: I.e Polarity of GRM Population Phenotype: Logic expression Darwinian evolution Evaluation Replication Circuit

Lamarckian optimization Population Crossover Mutation Evaluation Replication New Generation Genotype: I.e Polarity of GRM Circuit Phenotype: Logic expression Logic Minimizer Modification of the chromosome An alternative approach to this problem can be the use of Lamarckian approach to the GA. When a solution is found, the genotype is modified in order to be more precise for a given term-wise polarity set and the given function. Consequently the search for this individual will induce smallest search space

Baldwinian learning GA Heuristics Phenotype Genotype Min Cost Min Cost GRM1,1 . GRM1,n Min Cost (polarity1, fitness1) . (polarityr, fitnessr) GRMr,1 . GRMr,n Min Cost Learning Polarity Learning Product terms

Possible projects

Statistical analysis of non linearity in synthesized circuits During synthesis fitness of circuits is highly non linear and non proportional to the distance from the final gate Goal: analyze a set of known gates (provided) and make a statistical analysis on the changes of the fitness function of the gates Finally establishing a table of results where the known gates will be represented as curves of fitness function

Evolving Fitness function for QC synthesis Inversely to the classical approach the goal is to synthesize a set of parameters fitting on the non linearity present in the fitness function evaluating quantum circuits Parameters evolved can be either taken from already existing fitness function or a completely new fitness function can be evolved

Pareto optimality GA and QC synthesis We want to test how will a GA with Pareto optimal evaluation evolve new quantum circuits. Minimal parameters are the size of the circuit and the error as a measure of the distance from the goal. More parameters can be used as cost, complexity, etc. Use ranking method to select the best individuals to the next generation

Pareto optimality GA and QC synthesis