Use of Simulated Annealing in Quantum Circuit Synthesis Manoj Rajagopalan 17 Jun 2002.

Slides:



Advertisements
Similar presentations
Informed search algorithms
Advertisements

Heuristic Search techniques
Local Search Algorithms
G5BAIM Artificial Intelligence Methods
ECE 667 Synthesis and Verification of Digital Circuits
Neural and Evolutionary Computing - Lecture 4 1 Random Search Algorithms. Simulated Annealing Motivation Simple Random Search Algorithms Simulated Annealing.
1 Transportation problem The transportation problem seeks the determination of a minimum cost transportation plan for a single commodity from a number.
Simulated Annealing General Idea: Start with an initial solution
Acoustic design by simulated annealing algorithm
Non-Linear Problems General approach. Non-linear Optimization Many objective functions, tend to be non-linear. Design problems for which the objective.
1 Chapter 5 Advanced Search. 2 Chapter 5 Contents l Constraint satisfaction problems l Heuristic repair l The eight queens problem l Combinatorial optimization.
KEG PARTY!!!!!  Keg Party tomorrow night  Prof. Markov will give out extra credit to anyone who attends* *Note: This statement is a lie.
DARPA Scalable Simplification of Reversible Circuits Vivek Shende, Aditya Prasad, Igor Markov, and John Hayes The Univ. of Michigan, EECS.
Optimization via Search CPSC 315 – Programming Studio Spring 2009 Project 2, Lecture 4 Adapted from slides of Yoonsuck Choe.
MAE 552 – Heuristic Optimization Lecture 6 February 6, 2002.
An Algebraic Foundation for Quantum Programming Languages Andrew Petersen & Mark Oskin Department of Computer Science The University of Washington.
Simulated Annealing 10/7/2005.
Classical and Quantum Circuit Synthesis An Algorithmic Approach.
MAE 552 – Heuristic Optimization Lecture 10 February 13, 2002.
Quantum Search Algorithms for Multiple Solution Problems EECS 598 Class Presentation Manoj Rajagopalan.
Planning operation start times for the manufacture of capital products with uncertain processing times and resource constraints D.P. Song, Dr. C.Hicks.
D Nagesh Kumar, IIScOptimization Methods: M1L4 1 Introduction and Basic Concepts Classical and Advanced Techniques for Optimization.
A Fault-tolerant Architecture for Quantum Hamiltonian Simulation Guoming Wang Oleg Khainovski.
Introduction to Simulated Annealing 22c:145 Simulated Annealing  Motivated by the physical annealing process  Material is heated and slowly cooled.
Optimization via Search CPSC 315 – Programming Studio Spring 2008 Project 2, Lecture 4 Adapted from slides of Yoonsuck Choe.
By Rohit Ray ESE 251.  Most minimization (maximization) strategies work to find the nearest local minimum  Trapped at local minimums (maxima)  Standard.
Elements of the Heuristic Approach
Escaping local optimas Accept nonimproving neighbors – Tabu search and simulated annealing Iterating with different initial solutions – Multistart local.
Genetic Algorithm.
Efficient Model Selection for Support Vector Machines
Modeling and simulation of systems Simulation optimization and example of its usage in flexible production system control.
Heuristic Optimization Methods
CS 484 – Artificial Intelligence1 Announcements Lab 3 due Tuesday, November 6 Homework 6 due Tuesday, November 6 Lab 4 due Thursday, November 8 Current.
Local Search Algorithms This lecture topic Chapter Next lecture topic Chapter 5 (Please read lecture topic material before and after each lecture.
Dr.Abeer Mahmoud ARTIFICIAL INTELLIGENCE (CS 461D) Dr. Abeer Mahmoud Computer science Department Princess Nora University Faculty of Computer & Information.
Optimization Problems - Optimization: In the real world, there are many problems (e.g. Traveling Salesman Problem, Playing Chess ) that have numerous possible.
Simulated Annealing.
Heuristic Optimization Methods Greedy algorithms, Approximation algorithms, and GRASP.
Mathematical Models & Optimization?
2005MEE Software Engineering Lecture 11 – Optimisation Techniques.
Thursday, May 9 Heuristic Search: methods for solving difficult optimization problems Handouts: Lecture Notes See the introduction to the paper.
Iterative Improvement Algorithm 2012/03/20. Outline Local Search Algorithms Hill-Climbing Search Simulated Annealing Search Local Beam Search Genetic.
C OMPARING T HREE H EURISTIC S EARCH M ETHODS FOR F UNCTIONAL P ARTITIONING IN H ARDWARE -S OFTWARE C ODESIGN Theerayod Wiangtong, Peter Y. K. Cheung and.
Solving the Maximum Cardinality Bin Packing Problem with a Weight Annealing-Based Algorithm Kok-Hua Loh University of Maryland Bruce Golden University.
A local search algorithm with repair procedure for the Roadef 2010 challenge Lauri Ahlroth, André Schumacher, Henri Tokola
Announcement "A note taker is being recruited for this class. No extra time outside of class is required. If you take clear, well-organized notes, this.
Ramakrishna Lecture#2 CAD for VLSI Ramakrishna
Simulation in Healthcare Ozcan: Chapter 15 ISE 491 Fall 2009 Dr. Burtner.
Local Search Algorithms and Optimization Problems
Can small quantum systems learn? NATHAN WIEBE & CHRISTOPHER GRANADE, DEC
Simulated Annealing To minimize the wire length. Combinatorial Optimization The Process of searching the solution space for optimum possible solutions.
Intro. ANN & Fuzzy Systems Lecture 37 Genetic and Random Search Algorithms (2)
Metaheuristics for the New Millennium Bruce L. Golden RH Smith School of Business University of Maryland by Presented at the University of Iowa, March.
Multi-cellular paradigm The molecular level can support self- replication (and self- repair). But we also need cells that can be designed to fit the specific.
Genetic Algorithm. Outline Motivation Genetic algorithms An illustrative example Hypothesis space search.
Local search algorithms In many optimization problems, the path to the goal is irrelevant; the goal state itself is the solution State space = set of "complete"
Optimization via Search
Heuristic Optimization Methods
Local Search Algorithms
By Rohit Ray ESE 251 Simulated Annealing.
Artificial Intelligence (CS 370D)
CSE 589 Applied Algorithms Spring 1999
Temperature Parallel Simulated Annealing with Adaptive Neighborhood for Continuous Optimization problem Mitsunori MIKI Tomoyuki HIROYASU Masayuki KASAI.
Quantum Computation and Information Chap 1 Intro and Overview: p 28-58
More on Search: A* and Optimization
Boltzmann Machine (BM) (§6.4)
Xin-She Yang, Nature-Inspired Optimization Algorithms, Elsevier, 2014
Md. Tanveer Anwar University of Arkansas
Local Search Algorithms
Area Coverage Problem Optimization by (local) Search
Presentation transcript:

Use of Simulated Annealing in Quantum Circuit Synthesis Manoj Rajagopalan 17 Jun 2002

Outline Overview Simulated Annealing: the idea used Implementation Results Conclusions and Future Work

Quantum Circuit Synthesis Input-output transformation specified Objective: Gates and their arrangement into a circuit to achieve this transformation Methods: –Factorization (Cybenko) –Enumeration (exhaustive, B&B) –Genetic Algorithms (Williams+, Yabuki+) –Simulated Annealing ( )

Synthesis by SA Choose whole circuit every time Use equivalent transformations (optimization) Incremental modification (ends of circuit) –Computationally efficient! –But is it good enough? Hey, what is Simulated Annealing?

Optimization Problems State variables: –Reflect the system state –May not be directly modified Control variables (degrees of freedom): –Affect the state –Directly modified Constraints on state and control (equality/inequality) Objective: Solve for optimum of scalar objective function

Optimization Heuristics Search space is too large for exhaustive enumeration, too complex to visualize Pick random solutions and evaluate performance index (PI) Filter good/best solution(s) Perturb these and re-evaluate PI Incorporate means to avoid local minima

Simulated Annealing: Basic Idea Objective: minimize scalar function subject to given constraints Select one initial solution and evaluate cost Perturb the solution and calculate new cost Improvement in cost? –Yes: Copy perturbed solution to initial solution –No: Probabilistically accept perturbed solution (to avoid local minima)

Quantum Circuit Synthesis as an Optimization Problem Select type, number and location of gates (control) Evaluate equivalent unitary operator (state) Constraint: Operator == given unitary Objective: Minimize number of gates

Outline Overview Simulated Annealing: the idea used –Incremental perturbation Implementation Results Conclusions and Future Work

SA: Quantum Circuit Synthesis Assume given operator can be synthesized Number of qubits known for given operator Choose entire circuits in each perturbation? –How many gates? –What location? –Need to ‘multiply’ all gates to get equivalent operator each time! Alternative: Incremental modification (at ends of circuit each time): NOP, ADD, REM, REP Qubits handled independently

SA: Incremental Perturbation H T S H H #0 #1 #2 #3 ADD: Hadamard Gate to #1

H T S H H H #0 #1 #2 #3 SA: Incremental Perturbation

Equivalent Operator =

H T S H H #0 #1 #2 #3 SA: Incremental Perturbation REMove: Hadamard Gate from #0

SA: Incremental Perturbation H T S H H REMove: Hadamard Gate from #0 #0 #1 #2 #3

SA: Incremental Perturbation Equivalent Operator =

SA: Incremental Perturbation H T S H H #0 #1 #2 #3 REPlace: T Gate on #2 with X Gate

SA: Incremental Perturbation H T S H H #0 #1 #2 #3 REPlace: T Gate on #2 with X Gate

SA: Incremental Perturbation Equivalent Operator =

SA: Incremental Perturbation H T S H H #0 #1 #2 #3 REPlace: CNOT on #1-3 with CNOT on #3-2

SA: Incremental Perturbation H T S H #0 #1 #2 #3 REPlace: CNOT on #1-3 with CNOT on #3-2 H

SA: Incremental Perturbation H T S H #0 #1 #2 #3 REPlace: CNOT on #1-3 with CNOT on #3-2 H

SA: Incremental Perturbation Equivalent Operator =

Outline Overview Simulated Annealing: the idea used Implementation –Data Structures –Algorithm –Annealer Configuration –Hardware and Software Platforms Results Conclusions and Future Work

Data Structures Class qgate: Quantum gates & operators Qubit: list Circuit:Array of qubits qgate instance for CNOTs duplicated on control and target qubits

SA Algorithm Initial circuit = empty Initial operator = I For each qubit –For head and tail of qubit, each Choose one out of 4 moves: NOP, ADD, REM, REP in a non- conflicting manner. Choose gates required for these, if applicable Evaluate new operator, guarding special cases Calculate (frobenius) norm of deviation from given unitary

SA Algorithm Out of a few (10) such moves, choose move with minimum deviation norm Is this below tolerance (10 -6 ) ? –Yes: Synthesis complete! Return. –No: Is this ‘cost’ better than that previously accepted? Yes: Accept this move into circuit No: Accept this move with probability e (-  cost / T)

SA Algorithm Repeat this procedure for a few (10) trials. Change temperature according to schedule. Iterate whole procedure till temperature lower limit is reached.

Annealer Configuration Moves: –4 equiprobable changes at each end of qubit: NOP, ADD, REM, REP 1 or 10 moves per trial 1 or 10 trials per iteration 1001 iterations: –Tstart = 1 –Tend = –Temperature schedule = linear with step Objective: Simply minimize deviation norm (no circuit size reduction yet) (tolerance = )

Platforms proton.eecs.umich.edu AMD 1194 MHz 256kB cache Debian linux (kernel v2.4.18) Coded in C++ g with –O3 optimization Timing and peak memory tracking using getrusage()

Outline Overview Simulated Annealing: the idea used Implementation Results –Single qubit circuits –Circuits with CNOT gates Conclusions and Future Work

Results: simple {H,X,Z} circuits TEST I –Randomly generated, 3 qubits, 30 gates –Optimal equivalent: X X Z Z

Results(1/2): TEST I Using {H, X, Z}Using {H, X} # gatesTime(s)# gatesTime(s) Min Max Avg % success rate 61% success rate

Results(2/2): TEST I Using {H, Z}Using {H, X, S} # gatesTime(s)# gatesTime(s) Min Max Avg % success rate 54% success rate

Results: Simple {H, X, Z} circuits TEST II –Randomly generated –5 qubits, 300 gates

Results(1/3): TEST II Using {H, X, Z}Using {H, X, S} # gatesTime(s)# gatesTime(s) Min Max Avg % success rate 82% success rate

Results(2/3): TEST II Using {H, Z}Using {H, X} # gatesTime(s)# gatesTime(s) Min Max Avg % success rate 81% success rate

Results(3/3): TEST II Using {H, S}Using {H, T} # gatesTime(s)# gatesTime(s) Min Max Avg % success rate 1 % success rate

{H, X, Z}: Conclusions Easily synthesized Optimal equivalents detected Average number of gates is impressive! Versatility of annealer: wide variety of gate libraries Fast!

Results: Circuits with CNOTs Brassard’s teleportation circuit –Careful with the gates (especially S and T) ! R L S T S SenderReceiver

Results(1/3): Send Circuit Using {L, CNOT, R}Using {CNOT, H, S NC } # gatesTime(s)# gatesTime(s) Min Max Avg % success rate 8 % success rate

Results (2/3): Send Circuit Using {CNOT, H, X}Using {CNOT, H, Z} # gatesTime(s)# gatesTime(s) Min Max Avg % success rate 45 % success rate

Results(3/3): Send Circuit Using {CNOT, H, X, S NC, T NC } Using {R, S, T, L, X, CNOT} # gatesTime(s)# gatesTime(s) Min-- Max-- Avg-- 0 % success rate? % success rate

Send Circuit: Conclusions Difficult to synthesize with overspecified gate library Using 10 trials per iteration instead of the usual 1 improves chances of getting an equivalent circuit and may even detect optimal one but takes much more time and may show worse average performance

Results(1/2): Receiver Circuit Using {S, CNOT, T}Using {CNOT, H, S NC } # gatesTime(s)# gatesTime(s) Min4040 Max Avg % success rate 83% find optimum 100 % success rate 68% find optimum

Results(2/2): Receiver Circuit Using {S NC, CNOT, T NC, X, H} Using {R, S, T, L, X, CNOT} # gatesTime(s)# gatesTime(s) Min30 Max Avg % success rate 44% find optimum ? % success rate ? % find optimum

Receiver Circuit: Conclusions A lot easier to synthesize than the send circuit Variety of gate libraries can be used Overspecified gate library not a problem Annealer finds optimum quite often.

Teleportation circuit: Previous Work Williams and Gray –Objective: minimize discrepancy, sum of absolute value of matrix of differences –Send and receive minimal circuits have 4 gates each. Achieved. 3 using N&C gates Yabuki and Iba –Receive circuit needs minimum of 3 gates. We get 4 using given library and 3 using N&C gates

Outline Overview Simulated Annealing: the idea used Implementation Results Conclusions and Future Work

Overall Conclusions Annealer is versatile over a range of discrete gate sets using a very simple configuration Incremental perturbation works very well (Igor rules!)

Future Work Optimizations –Compose single qubit gates into one operator Ideas –Optimal synthesis: include # gates in PI –Circuits equivalent upto a nonzero global phase –Annealer configurations (types and probabilities of moves, temperature schedule) based on plots of quality of solution against iterations –More challenging problems: Toffoli gates (increased interqubit interaction), single qubit rotations (continuous values)