Qubit allocation for quantum circuit compilers

Similar documents
ECE 468/573 Midterm 1 September 28, 2012

In the last lecture, we discussed how valid tokens may be specified by regular expressions.

Solving Problems by Searching. CS 486/686: Introduction to Artificial Intelligence

CS 430 Spring Mike Lam, Professor. Parsing

Systems I. Logic Design I. Topics Digital logic Logic gates Simple combinational logic circuits

Solving Problems by Searching. CS 486/686: Introduction to Artificial Intelligence Winter 2016

ΕΠΛ323 - Θεωρία και Πρακτική Μεταγλωττιστών

Announcements. CS 188: Artificial Intelligence Fall Recap: Search. Today. General Tree Search. Uniform Cost. Lecture 3: A* Search 9/4/2007

Languages. L((a (b)(c))*) = { ε,a,bc,aa,abc,bca,... } εw = wε = w. εabba = abbaε = abba. (a (b)(c)) *

Today. CS 188: Artificial Intelligence Fall Recap: Search. Example: Pancake Problem. Example: Pancake Problem. General Tree Search.

CS 241. Fall 2017 Midterm Review Solutions. October 24, Bits and Bytes 1. 3 MIPS Assembler 6. 4 Regular Languages 7.

Definition of Regular Expression

Fig.25: the Role of LEX

Should be done. Do Soon. Structure of a Typical Compiler. Plan for Today. Lab hours and Office hours. Quiz 1 is due tonight, was posted Tuesday night

Lecture 10 Evolutionary Computation: Evolution strategies and genetic programming

CS321 Languages and Compiler Design I. Winter 2012 Lecture 5

CS412/413. Introduction to Compilers Tim Teitelbaum. Lecture 4: Lexical Analyzers 28 Jan 08

Tries. Yufei Tao KAIST. April 9, Y. Tao, April 9, 2013 Tries

Today. Search Problems. Uninformed Search Methods. Depth-First Search Breadth-First Search Uniform-Cost Search

Announcements. CS 188: Artificial Intelligence Fall Recap: Search. Today. Example: Pancake Problem. Example: Pancake Problem

From Dependencies to Evaluation Strategies

TO REGULAR EXPRESSIONS

Fault injection attacks on cryptographic devices and countermeasures Part 2

ΕΠΛ323 - Θεωρία και Πρακτική Μεταγλωττιστών. Lecture 3b Lexical Analysis Elias Athanasopoulos

Topic 2: Lexing and Flexing

Complete Coverage Path Planning of Mobile Robot Based on Dynamic Programming Algorithm Peng Zhou, Zhong-min Wang, Zhen-nan Li, Yang Li

CSCI 446: Artificial Intelligence

Lexical Analysis: Constructing a Scanner from Regular Expressions

Lexical analysis, scanners. Construction of a scanner

Midterm 2 Sample solution

2 Computing all Intersections of a Set of Segments Line Segment Intersection

AI Adjacent Fields. This slide deck courtesy of Dan Klein at UC Berkeley

PARALLEL AND DISTRIBUTED COMPUTING

Sample Midterm Solutions COMS W4115 Programming Languages and Translators Monday, October 12, 2009

Presentation Martin Randers

Fall Compiler Principles Lecture 1: Lexical Analysis. Roman Manevich Ben-Gurion University of the Negev

Digital Signal Processing: A Hardware-Based Approach

Slides for Data Mining by I. H. Witten and E. Frank

Compression Outline :Algorithms in the Real World. Lempel-Ziv Algorithms. LZ77: Sliding Window Lempel-Ziv

CMPSC 470: Compiler Construction

CSc 453. Compilers and Systems Software. 4 : Lexical Analysis II. Department of Computer Science University of Arizona

CS143 Handout 07 Summer 2011 June 24 th, 2011 Written Set 1: Lexical Analysis

Implementing Automata. CSc 453. Compilers and Systems Software. 4 : Lexical Analysis II. Department of Computer Science University of Arizona

Self-Adjusting Output Data Compression: An Efficient BIST Technique for RAMs

Course Administration

Distributed Systems Principles and Paradigms

COMP 423 lecture 11 Jan. 28, 2008

Address Register Assignment for Reducing Code Size

Suffix trees, suffix arrays, BWT

CS 432 Fall Mike Lam, Professor a (bc)* Regular Expressions and Finite Automata

It consists of two cold rooms, each with their own evaporator but sharing the same cooling flui d R134a system ( compressor, condenser...).

PPS: User Manual. Krishnendu Chatterjee, Martin Chmelik, Raghav Gupta, and Ayush Kanodia

Dr. D.M. Akbar Hussain

Taming Subgraph Isomorphism for RDF Query Processing

Digital Design. Chapter 6: Optimizations and Tradeoffs

CS481: Bioinformatics Algorithms

Compiling a Parallel DSL to GPU

An introduction to model checking

CS 221: Artificial Intelligence Fall 2011

box Boxes and Arrows 3 true 7.59 'X' An object is drawn as a box that contains its data members, for example:

CMSC 331 First Midterm Exam

From Indexing Data Structures to de Bruijn Graphs

Agenda & Reading. Class Exercise. COMPSCI 105 SS 2012 Principles of Computer Science. Arrays

Compilers Spring 2013 PRACTICE Midterm Exam

Efficient K-NN Search in Polyphonic Music Databases Using a Lower Bounding Mechanism

Efficient Regular Expression Grouping Algorithm Based on Label Propagation Xi Chena, Shuqiao Chenb and Ming Maoc

Stack Manipulation. Other Issues. How about larger constants? Frame Pointer. PowerPC. Alternative Architectures

Combinatorial synthesis approach employing graph networks

Finite Automata. Lecture 4 Sections Robb T. Koether. Hampden-Sydney College. Wed, Jan 21, 2015

this grammar generates the following language: Because this symbol will also be used in a later step, it receives the

A Sparse Grid Representation for Dynamic Three-Dimensional Worlds

CS 321 Programming Languages and Compilers. Bottom Up Parsing

Lexical Analysis. Amitabha Sanyal. ( as) Department of Computer Science and Engineering, Indian Institute of Technology, Bombay

A Tautology Checker loosely related to Stålmarck s Algorithm by Martin Richards

Accelerating 3D convolution using streaming architectures on FPGAs

A dual of the rectangle-segmentation problem for binary matrices

Approximate computations

CSCI 3130: Formal Languages and Automata Theory Lecture 12 The Chinese University of Hong Kong, Fall 2011

Algorithm Design (5) Text Search

Computer Arithmetic Logical, Integer Addition & Subtraction Chapter

Dynamic Programming. Andreas Klappenecker. [partially based on slides by Prof. Welch] Monday, September 24, 2012

ECEN 468 Advanced Logic Design Lecture 36: RTL Optimization

A Comparison of High-Level Approaches for Speeding Up Pathfinding

Symbol Table management

COMBINATORIAL PATTERN MATCHING

Topological Queries on Graph-structured XML Data: Models and Implementations

Engineer-to-Engineer Note

Engineer To Engineer Note

A REINFORCEMENT LEARNING APPROACH TO SCHEDULING DUAL-ARMED CLUSTER TOOLS WITH TIME VARIATIONS

CS311H: Discrete Mathematics. Graph Theory IV. A Non-planar Graph. Regions of a Planar Graph. Euler s Formula. Instructor: Işıl Dillig

TOWARDS GRADIENT BASED AERODYNAMIC OPTIMIZATION OF WIND TURBINE BLADES USING OVERSET GRIDS

CPSC 213. Polymorphism. Introduction to Computer Systems. Readings for Next Two Lectures. Back to Procedure Calls

Basics of Logic Design Arithmetic Logic Unit (ALU)

LING/C SC/PSYC 438/538. Lecture 21 Sandiway Fong

Information Retrieval and Organisation

CSEP 573 Artificial Intelligence Winter 2016

UNIT 11. Query Optimization

Unit #9 : Definite Integral Properties, Fundamental Theorem of Calculus

CS 340, Fall 2014 Dec 11 th /13 th Final Exam Note: in all questions, the special symbol ɛ (epsilon) is used to indicate the empty string.

Memory-Optimized Software Synthesis from Dataflow Program Graphs withlargesizedatasamples

Transcription:

Quit lloction for quntum circuit compilers Nov. 10, 2017 JIQ 2017 Mrcos Yukio Sirichi Sylvin Collnge Vinícius Fernndes dos Sntos Fernndo Mgno Quintão Pereir

Compilers for quntum computing The first genertion of usle quntum computers is here e.g. IBM Quntum Experience Enles experimentl computer science Existing nd ner-future rchitectures: 10s to 50 quits No error correction Low-level constrints on circuits: set of gtes, quit connectivity Need compilers of circuits down to lowlevel gtes Mny differences from clssicl compilers Algorithms Quntum circuits Quntum circuit compiler Quntum microrchitecture Quntum computing hrdwre

Focus: the quit lloction phse Mp logicl quits to physicl quits Need to meet hrdwre constrints: connectivity etween physicl quits Trnsform circuit to fit on given quntum computer Minimize runtime nd gte count to minimize noise Softwre: circuit on logicl quits rdwre: physicl quits 3

Agend The quit lloction prolem An exct lgorithm A greedy heuristic Comprison of lloction ccurcy Future directions 4

Level of strction: quntum circuits Input: reversile quntum circuits descried t gte level 0 X 0 T Between initiliztion nd mesurement : unitry gtes only After decomposition into single-quit nd CNOT gtes Expressed in QASM lnguge qreg l[2]; creg c[2]; x l[0]; h l[0]; cx l[0] l[1]; t l[1]; mesure l[0] -> c[0]; mesure l[1] -> c[1]; 5

Limited-connectivity quntum computer Trget: superconducting quit sed quntum computers Constrints on which quits re llowed to interct e.g. IBM QX2, 5 quits Quits Possile CNOT gtes e.g. IBM QX5, 16 quits 6

The quit ssignment prolem Cn we lel logicl quits with physicl quits so tht ll gtes oey mchine connectivity constrints? Esy prt of quit lloction Alredy NP-Complete (sugrph isomorphism) l0 l1 l2 l3 l4 l4 l0 l2 l3 l1 emed? Circuit Dependencies on logicl quits Connectivity of physicl quits In prctice, most circuits will need trnsformtions to fit the connectivity grph 7

Circuit trnsformtion primitives CNOT reversl Trnsformtion Effect on dependency grph (ssuming no other dependency) Bridge ` c c c Swp Chnge mpping! 8

The quit lloction prolem Quit lloction with swps only Minimize numer of swps inserted NP-Complete (Token Swpping prolem) Generl quit lloction prolem Use CNOT reversl, ridge nd swp Minimize cost of circuit trnsformtions Suprolem of depth d Circuit depth := numer of CNOT gtes Strts nd ends with logicl-to-physicl quit mppings initil L Q mpping Slice of depth d finl L Q mpping Slice of depth d+1 9

......... Exct lgorithm: dynmic progrmming Assume we know prtil solutions of depth d with finl mpping M nd their cost, for ll M Compute solutions of depth d+1 with finl mpping M, for ll M Select the (solution of depth d) + (permuttion) tht minimizes cost Solutions of depth d: cost Cost of permuttion from Mi to Mj Solutions of depth d+1... Solutions for full circuit M0 22 29 3 6 M1 26 0 25 1 10 3 M2 20 6 26 3 28 Unfesile solutions hve cost Finl solution: minimum cost 10

......... Exct lgorithm: dynmic progrmming Solutions of depth d: cost Cost of permuttion from Mi to Mj Solutions of depth d+1... Solutions for full circuit M0 22 29 3 6 M1 26 0 25 1 10 3 M2 20 6 26 3 28 Unfesile solutions hve cost Finl solution: minimum cost Complexity O((n!) 2 m) for n quits nd circuit depth m Suitle for 8 quits Gives n optiml reference to compre heuristics 11

The Weighted Prtil Mtching heuristic 1. Find good initil mpping Fvor most-often used dependencies 2. Extend the mpping, trnsforming circuit s needed Perform swp when it cn e mortized Use CNOT reversl on ckwrd edges If we hve 2-step pth through nother quit, use Bridge If ll else fils, insert s mny swps s needed 12

Results: cost on IBM QX2, ctul circuits Exct lgorithm Other heuristics from the literture Our heuristic with rndom initil mpping Our heuristic quiter heuristic with improved initil mpping euristic outperforms stte of the rt in this 5-quit configurtion Exct lgorithm shows heuristics hve potentil for improvement Both in initil mpping choice nd migrtion strtegy 13

Next steps for quit lloction Improved heuristics Seek run-time vs. ccurcy trdeoffs Specilize for regulr quntum computer structures Tke dvntge of quntum circuit properties: spcil, temporl loclity Coordinte circuit optimiztion with quit lloction e.g. optimize wy redundnt dmrd gtes when plcing reverse CNOT next to gtes Recycle ncille quits Quit with completely known equl stte re interchngele (e.g. 0 ) Sttic nlysis to find quit equlities? Optimize for device chrcteristics Different quits nd couplings hve different noise levels 14

Compiler optimiztion for quntum circuits Mpping high-level gtes to hrdwre-supported gtes Single-quit gtes: ccurcy/cost trdeoffs Toffoli gtes: exploit freedom on reltive phse Time/spce trdeoffs Adpt numer of ncille quits to resource vilility Formliztion Which semntics for quntum progrms nd quntum computers? Which intermedite representtion for quntum circuits? Correctness proofs of compiler trnsformtions 15