SlideShare ist ein Scribd-Unternehmen logo
1 von 28
Downloaden Sie, um offline zu lesen
1
COntext-Sensitive and Duration-Aware
Qubit Mapping for Various NISQ Devices
Yu Zhang Hao-wei Deng Quan-xi Li
School of Computer Science & Technology
University of Science & Technology of China
PLanQC 2020, New Orleans, Jan. 19, 2020
2
Quantum
Algorithms
QC: Multidisciplinary Intersection
Quantum
Algorithms
Quantum
Algorithms
Key Potential
Applications
Chemistry
Optimization
Machine
Learning
Material
Science
Unknown
Problems
gartner.com/smarterwithgartner
100-200 qubits
100s-1000s qubits
100s-1000s qubits
100s-1000s qubits
100, 000+ qubits
Algorithm
slgorithms
Quantum
Devices
Trapped Ion
Quantum
Information, UMD
Full software stack
for QC
Program at
higher-levels
of abstraction
Consider various
constraints of
quantum devices
Google’s Sycamore (54-Qubit)
Quantum Supremacy Using a
Programmable Superconducting Processor
Oct 23 2019 Nature
Sep 18, 2019
The opening of the
first IBM Quantum
Computation Center
in Poughkeepsie, NY
 Q53 Rochester
Intel’s 49-Qubit Chip
Tangle Lake
Jan 9 2018
May 5, 2018
3
Most Existing QP Systems
Low-level quantum circuit
qreg q[3];
h q[0];
h q[1];
CX q[1], q[2];
CX q[0], q[2];
H q;
OpenQASM
Host language
+
Embedded DSL
High-level
Quantum
Compilation
ProjectQ
Low-level quantum circuit
Low-level
Quantum
Compilation
Hardware instructions (Pulse)
4
Quantum Chips
 Superconducting  IonQ (Trapped ions)
IBM QX4 Tenerife
IBM Q20
IBM Q16 Melbourne
IonQ Q5
IonQ Q11
IBM Q53 Rochester
Google Q54 Sycamore
Quantum chips have various qubit coupling maps.
5
Qubit Mapping Problem
CNOT
SWAP① CNOT②
Compiler need to insert SWAP into the quantum
circuit to fit the connection limitation in NISQ
hardware.
qreg q[3];
h q[0];
h q[1];
CX q[1], q[2];
CX q[0], q[2];
H q;
OpenQASM
NP-Complete
[CGO2018] Marcos Yukio Siraichi et al. Qubit Allocation.
6
 Superconducting
X, Y, Z, H, S, T CNOT
Gate duration
 1-qubit: 80ns
 2-qubit: ~170ns
 Ion Trap
Ra
q , XX
Gate duration
 1-qubit: 20ms
 2-qubit: ~250ms
Various Quantum System Features
7
How to insert SWAPs
 obtain feasible quantum circuits
for various NISQ devices
8
 Formulate the qubit mapping problem into an equivalent
mathematical problem and apply a (SMT) Solver, e.g.
Unscalable, can only be applied to small-size cases
 Use heuristic search to obtain approximate results
Better in runtime especially when the circuit is in a large scale
Previous Solutions
 Ignore gate/operation duration difference
 Rarely consider the impact of program context on parallelism
9
 Propose a Quantum Abstract Machine to abstract the
characteristics of different NISQ architectures
QAM here is distinct from that in the literature [arxiv1608.03355], which
refers to an abstract machine architecture for classical/quantum
computations
 Propose a heuristic search algorithm CODAR considering
Gate duration difference
Program context
to explore more parallelism of the quantum program
Our Main Idea
[arxiv1608.03355] Robert S. Smith, Michael J. Curtis, William J. Zeng. A Practical Quantum Instruction
Set Architecture. Feb 2017.
CODAR: COntext-sensitive and Duration-Aware Remapping algorithm
10
Which qubit pair is chosen to swap?
The earlier it can start, the better
Motivating Examples
11
Which qubit pair is chosen to swap?
The earlier it can start, the better
 Impact of Program Context
Motivating Examples
cost 9 cycles
cost 8 cycles
Cycle
12
Which qubit pair is chosen to swap?
The earlier it can start, the better
 Impact of Gate Duration Difference
Motivating Examples
cost 10 cycles
cost 9 cycles
13
maQAM: Multi-architecture Adaptive
Quantum Abstract Machine
14
Parameter info. of QC devices
15
maQAM: Static +Dynamic Parts
Physical qubits,Elementary quantum operations
Qubit coupling map, Gate durations,
Distance between each qubit pair
Qubit map
Commutative front gate set
……
16
Key Design on the CODAR Algorithm
17
 Generate an executable gate sequence for a given input
OpenQASM program by
adjusting the gate sequence
inserting the swap operation
with the program semantics unchanged
Main Idea of CODAR
Fit quantum hardware limitation
Have better parallelism to reduce the weighted depth of the circuit
18
Qubit Lock Mechanism
Each physical qubit has a Qubit Lock Tend.
A qubit's Tend is updated when a gate is
applied to this qubit.
By comparing each qubits' Tend with current time, CODAR is aware of which physical
qubits are occupied by previous gates and remap through free qubits. Different gates
with different duration will update Tend with different value. So CODAR is aware of the
gate duration difference.
19
 Commutativity between gates gA , gB can be resolved by
checking the relevant unitary operators ΑB=BA.
Commutativity Detection
Definition 1 (Commutative Forward Gate, CF gate). Given a gate sequence I=[g1 , g2 , ..., gk , ...],
∀gk ∈ I, gk is a commutative forward gate iff ∀j, 0 < j < k, gj and gk are commutative.
Choosing CF gates as logically-executable gates can expose more future contextual gates
for the heuristic search to determine better remapping solutions.
20
Overview of the CODAR Algorithm
A gate is directly executable only when all its associate physical qubits are free and fit the
connectivity limitation. For example,
Q
Tend > Current Time
Busy QFree
Tend ≤ Current Time
Gate Gate
QQ Q
Gate
QQ
Gate
Busy Free
QQ
Gate
Free Free
21
An Example to Explain CODAR
Hbasic<0
q5
q1
q2q3
q0
q4
0
0
0
00
0
Blocked
Blocked
Cycle 0
1: CX q0,q2;
2: T q1
3: CX q0,q3;
Given
Hbasic<0 means the SWAP won’t shorten
the total distance of CF gates according to
our heuristic cost function
22
An Example to Explain CODAR
Hbasic<0 means the SWAP won’t shorten
the total distance of CF gates according to
our heuristic cost function
1: CX q0,q2;
2: T q1
3: CX q0,q3;
Given
q5
q1
q2q3
q0
q4
1
0 2
00
2
Hbasic<0
q5
q1
q2q3
q0
q4
1
0
2
00
2
No SWAP
insert
Blocked
Blocked
Cycle 0 endCycle 0 start
23
An Example to Explain CODAR
1: CX q0,q2;
2: T q1
3: CX q0,q3;
1: CX q0,q2;
2: T q1;
3: SWAP q3,q1;
4: CX q0,q3;
Given Generate
q5
q1
q2q3
q0
q4
1
0 2
00
2
q5
q1
q3
q0
q4
1
0
2
00
2
Highest
priority
Hbasic<0
q5
q1
q2q3
q0
q4
1
0
2
00
2
No SWAP
insert
Blocked
Blocked
Hbasic<0
q2
Blocked
free
now
Cycle 0 end Cycle 1 startCycle 0 start
24
An Example to Explain CODAR
q5
q1
q2q3
q0
q4
1
0 2
00
2
q5
q1
q3
q0
q4
1
0
2
00
2
Highest
priority
Hbasic<0
q5
q1
q2q3
q0
q4
1
0
2
00
2
No SWAP
insert
Blocked
Blocked
Hbasic<0
q2
Blocked
free
now
q5
q3
q2q1
q0
q4
7
7 2
0
2
insert SWAP
0
Cycle 0 end Cycle 1 startCycle 0 start Cycle 1 end
1: CX q0,q2;
2: T q1
3: CX q0,q3;
1: CX q0,q2;
2: T q1;
3: SWAP q3,q1;
4: CX q0,q3;
Given Generate
25
Evaluation and Conclution
26
 Comparison with SABRE
Evaluation
The size of the benchmarks ranges from using 3 qubits up to using 36 qubits and about 30,000
gates. The average speedup ratio of CODAR on four architecture models, IBM Q16 Melbourne,
Enfield 6ⅹ6, IBM Q20 Tokyo and Google Q54 are respectively 1.212, 1.241, 1.214 and 1.258.
27
 Conclusion
The design of qubit lock and commutativity detection make CODAR aware
of program context and the gate duration difference, helping CODAR find
the remapping with good parallelism and reduce QC’s weighted depth
 Ongoing and Future Work
The impact of noise: noise of a gate cannot be accumulated sometimes
Are there any noise effect patterns?
The impact of sub-circuit patterns in high-level algorithms
Conclusion and Ongoing Work
28
Yu Zhang (张昱)
yuzhang@ustc.edu.cn
CS@USTC
Thank you and any question?

Weitere ähnliche Inhalte

Was ist angesagt?

Derived clock-journal
Derived clock-journalDerived clock-journal
Derived clock-journal
Mylinza Lonod
 
Project report - Hypergraph states
Project report - Hypergraph statesProject report - Hypergraph states
Project report - Hypergraph states
Henry Costello
 
Inferring Types by Mining Class Usage Frequency from Inline Caches
Inferring Types by Mining Class Usage Frequency from Inline CachesInferring Types by Mining Class Usage Frequency from Inline Caches
Inferring Types by Mining Class Usage Frequency from Inline Caches
ESUG
 

Was ist angesagt? (20)

2017 07 04_cmmse_quantum_programming_v1
2017 07 04_cmmse_quantum_programming_v12017 07 04_cmmse_quantum_programming_v1
2017 07 04_cmmse_quantum_programming_v1
 
Quantum computation: past-now-future - 2021-06-19
Quantum computation: past-now-future - 2021-06-19Quantum computation: past-now-future - 2021-06-19
Quantum computation: past-now-future - 2021-06-19
 
Good news, everybody! Guile 2.2 performance notes (FOSDEM 2016)
Good news, everybody! Guile 2.2 performance notes (FOSDEM 2016)Good news, everybody! Guile 2.2 performance notes (FOSDEM 2016)
Good news, everybody! Guile 2.2 performance notes (FOSDEM 2016)
 
NSC #2 - D1 05 - Renaud Lifchitz - Quantum computing in practice
NSC #2 - D1 05 - Renaud Lifchitz - Quantum computing in practiceNSC #2 - D1 05 - Renaud Lifchitz - Quantum computing in practice
NSC #2 - D1 05 - Renaud Lifchitz - Quantum computing in practice
 
Quantum for Healthcare - 2020-07-14
Quantum for Healthcare - 2020-07-14Quantum for Healthcare - 2020-07-14
Quantum for Healthcare - 2020-07-14
 
Quantum computing
Quantum computingQuantum computing
Quantum computing
 
Queuing theory 3
Queuing theory 3Queuing theory 3
Queuing theory 3
 
Quantum computing - 2021-01-09
Quantum computing - 2021-01-09Quantum computing - 2021-01-09
Quantum computing - 2021-01-09
 
Optimizing with persistent data structures (LLVM Cauldron 2016)
Optimizing with persistent data structures (LLVM Cauldron 2016)Optimizing with persistent data structures (LLVM Cauldron 2016)
Optimizing with persistent data structures (LLVM Cauldron 2016)
 
Derived clock-journal
Derived clock-journalDerived clock-journal
Derived clock-journal
 
Knit, Chisel, Hack: Building Programs in Guile Scheme (Strange Loop 2016)
Knit, Chisel, Hack: Building Programs in Guile Scheme (Strange Loop 2016)Knit, Chisel, Hack: Building Programs in Guile Scheme (Strange Loop 2016)
Knit, Chisel, Hack: Building Programs in Guile Scheme (Strange Loop 2016)
 
Code_Saturne流体解析入門講習会 講習会資料
Code_Saturne流体解析入門講習会 講習会資料Code_Saturne流体解析入門講習会 講習会資料
Code_Saturne流体解析入門講習会 講習会資料
 
Project report - Hypergraph states
Project report - Hypergraph statesProject report - Hypergraph states
Project report - Hypergraph states
 
gcov和clang中的实现
gcov和clang中的实现gcov和clang中的实现
gcov和clang中的实现
 
Re-engineering Eclipse MDT/OCL for Xtext
Re-engineering Eclipse MDT/OCL for XtextRe-engineering Eclipse MDT/OCL for Xtext
Re-engineering Eclipse MDT/OCL for Xtext
 
QCrypt
QCryptQCrypt
QCrypt
 
Inferring Types by Mining Class Usage Frequency from Inline Caches
Inferring Types by Mining Class Usage Frequency from Inline CachesInferring Types by Mining Class Usage Frequency from Inline Caches
Inferring Types by Mining Class Usage Frequency from Inline Caches
 
Highly Scalable Java Programming for Multi-Core System
Highly Scalable Java Programming for Multi-Core SystemHighly Scalable Java Programming for Multi-Core System
Highly Scalable Java Programming for Multi-Core System
 
Customization of LES turbulence model in OpenFOAM
Customization of LES turbulence	 model in OpenFOAMCustomization of LES turbulence	 model in OpenFOAM
Customization of LES turbulence model in OpenFOAM
 
Ibm mq dqm setups
Ibm mq dqm setupsIbm mq dqm setups
Ibm mq dqm setups
 

Ähnlich wie Planqc2020 codar

Novel Tree Structure Based Conservative Reversible Binary Coded Decimal Adder...
Novel Tree Structure Based Conservative Reversible Binary Coded Decimal Adder...Novel Tree Structure Based Conservative Reversible Binary Coded Decimal Adder...
Novel Tree Structure Based Conservative Reversible Binary Coded Decimal Adder...
VIT-AP University
 
Designing Conservative Reversible N-Bit Binary Comparator for Emerging Quantu...
Designing Conservative Reversible N-Bit Binary Comparator for Emerging Quantu...Designing Conservative Reversible N-Bit Binary Comparator for Emerging Quantu...
Designing Conservative Reversible N-Bit Binary Comparator for Emerging Quantu...
VIT-AP University
 

Ähnlich wie Planqc2020 codar (20)

Area-Delay Efficient Binary Adders in QCA
Area-Delay Efficient Binary Adders in QCAArea-Delay Efficient Binary Adders in QCA
Area-Delay Efficient Binary Adders in QCA
 
QGATE 0.3: QUANTUM CIRCUIT SIMULATOR
QGATE 0.3: QUANTUM CIRCUIT SIMULATORQGATE 0.3: QUANTUM CIRCUIT SIMULATOR
QGATE 0.3: QUANTUM CIRCUIT SIMULATOR
 
IQM slide pitch deck
IQM slide pitch deckIQM slide pitch deck
IQM slide pitch deck
 
Novel Tree Structure Based Conservative Reversible Binary Coded Decimal Adder...
Novel Tree Structure Based Conservative Reversible Binary Coded Decimal Adder...Novel Tree Structure Based Conservative Reversible Binary Coded Decimal Adder...
Novel Tree Structure Based Conservative Reversible Binary Coded Decimal Adder...
 
1 s2.0-s2090447917300291-main
1 s2.0-s2090447917300291-main1 s2.0-s2090447917300291-main
1 s2.0-s2090447917300291-main
 
Designing Conservative Reversible N-Bit Binary Comparator for Emerging Quantu...
Designing Conservative Reversible N-Bit Binary Comparator for Emerging Quantu...Designing Conservative Reversible N-Bit Binary Comparator for Emerging Quantu...
Designing Conservative Reversible N-Bit Binary Comparator for Emerging Quantu...
 
Implementation of Non-restoring Reversible Divider Using a Quantum-Dot Cellul...
Implementation of Non-restoring Reversible Divider Using a Quantum-Dot Cellul...Implementation of Non-restoring Reversible Divider Using a Quantum-Dot Cellul...
Implementation of Non-restoring Reversible Divider Using a Quantum-Dot Cellul...
 
Design of Binary to BCD Code Converter using Area Optimized Quantum Dot Cellu...
Design of Binary to BCD Code Converter using Area Optimized Quantum Dot Cellu...Design of Binary to BCD Code Converter using Area Optimized Quantum Dot Cellu...
Design of Binary to BCD Code Converter using Area Optimized Quantum Dot Cellu...
 
A Novel Parity Preserving Reversible Binary-to-BCD Code Converter with Testab...
A Novel Parity Preserving Reversible Binary-to-BCD Code Converter with Testab...A Novel Parity Preserving Reversible Binary-to-BCD Code Converter with Testab...
A Novel Parity Preserving Reversible Binary-to-BCD Code Converter with Testab...
 
preskill.pptx
preskill.pptxpreskill.pptx
preskill.pptx
 
Low-Cost Synthesis Approach for Reversible Authenticator Circuits in QCA Envi...
Low-Cost Synthesis Approach for Reversible Authenticator Circuits in QCA Envi...Low-Cost Synthesis Approach for Reversible Authenticator Circuits in QCA Envi...
Low-Cost Synthesis Approach for Reversible Authenticator Circuits in QCA Envi...
 
Report-Implementation of Quantum Gates using Verilog
Report-Implementation of Quantum Gates using VerilogReport-Implementation of Quantum Gates using Verilog
Report-Implementation of Quantum Gates using Verilog
 
A Novel and Efficient Design for Squaring Units by Quantum-Dot Cellular Automata
A Novel and Efficient Design for Squaring Units by Quantum-Dot Cellular AutomataA Novel and Efficient Design for Squaring Units by Quantum-Dot Cellular Automata
A Novel and Efficient Design for Squaring Units by Quantum-Dot Cellular Automata
 
A novel vedic divider based crypto-hardware for nanocomputing paradigm: An ex...
A novel vedic divider based crypto-hardware for nanocomputing paradigm: An ex...A novel vedic divider based crypto-hardware for nanocomputing paradigm: An ex...
A novel vedic divider based crypto-hardware for nanocomputing paradigm: An ex...
 
Des2017 quantum computing_final
Des2017 quantum computing_finalDes2017 quantum computing_final
Des2017 quantum computing_final
 
Lecture_2_v2_qc.pptx
Lecture_2_v2_qc.pptxLecture_2_v2_qc.pptx
Lecture_2_v2_qc.pptx
 
Echi isca2007
Echi isca2007Echi isca2007
Echi isca2007
 
Quantum Computing
Quantum ComputingQuantum Computing
Quantum Computing
 
開発者が語る NVIDIA cuQuantum SDK
開発者が語る NVIDIA cuQuantum SDK開発者が語る NVIDIA cuQuantum SDK
開発者が語る NVIDIA cuQuantum SDK
 
Implementation of quantum gates using verilog
Implementation of quantum gates using verilogImplementation of quantum gates using verilog
Implementation of quantum gates using verilog
 

Kürzlich hochgeladen

The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
masabamasaba
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
VictoriaMetrics
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
masabamasaba
 

Kürzlich hochgeladen (20)

The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
Harnessing ChatGPT - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT  - Elevating Productivity in Today's Agile EnvironmentHarnessing ChatGPT  - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT - Elevating Productivity in Today's Agile Environment
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 

Planqc2020 codar

  • 1. 1 COntext-Sensitive and Duration-Aware Qubit Mapping for Various NISQ Devices Yu Zhang Hao-wei Deng Quan-xi Li School of Computer Science & Technology University of Science & Technology of China PLanQC 2020, New Orleans, Jan. 19, 2020
  • 2. 2 Quantum Algorithms QC: Multidisciplinary Intersection Quantum Algorithms Quantum Algorithms Key Potential Applications Chemistry Optimization Machine Learning Material Science Unknown Problems gartner.com/smarterwithgartner 100-200 qubits 100s-1000s qubits 100s-1000s qubits 100s-1000s qubits 100, 000+ qubits Algorithm slgorithms Quantum Devices Trapped Ion Quantum Information, UMD Full software stack for QC Program at higher-levels of abstraction Consider various constraints of quantum devices Google’s Sycamore (54-Qubit) Quantum Supremacy Using a Programmable Superconducting Processor Oct 23 2019 Nature Sep 18, 2019 The opening of the first IBM Quantum Computation Center in Poughkeepsie, NY  Q53 Rochester Intel’s 49-Qubit Chip Tangle Lake Jan 9 2018 May 5, 2018
  • 3. 3 Most Existing QP Systems Low-level quantum circuit qreg q[3]; h q[0]; h q[1]; CX q[1], q[2]; CX q[0], q[2]; H q; OpenQASM Host language + Embedded DSL High-level Quantum Compilation ProjectQ Low-level quantum circuit Low-level Quantum Compilation Hardware instructions (Pulse)
  • 4. 4 Quantum Chips  Superconducting  IonQ (Trapped ions) IBM QX4 Tenerife IBM Q20 IBM Q16 Melbourne IonQ Q5 IonQ Q11 IBM Q53 Rochester Google Q54 Sycamore Quantum chips have various qubit coupling maps.
  • 5. 5 Qubit Mapping Problem CNOT SWAP① CNOT② Compiler need to insert SWAP into the quantum circuit to fit the connection limitation in NISQ hardware. qreg q[3]; h q[0]; h q[1]; CX q[1], q[2]; CX q[0], q[2]; H q; OpenQASM NP-Complete [CGO2018] Marcos Yukio Siraichi et al. Qubit Allocation.
  • 6. 6  Superconducting X, Y, Z, H, S, T CNOT Gate duration  1-qubit: 80ns  2-qubit: ~170ns  Ion Trap Ra q , XX Gate duration  1-qubit: 20ms  2-qubit: ~250ms Various Quantum System Features
  • 7. 7 How to insert SWAPs  obtain feasible quantum circuits for various NISQ devices
  • 8. 8  Formulate the qubit mapping problem into an equivalent mathematical problem and apply a (SMT) Solver, e.g. Unscalable, can only be applied to small-size cases  Use heuristic search to obtain approximate results Better in runtime especially when the circuit is in a large scale Previous Solutions  Ignore gate/operation duration difference  Rarely consider the impact of program context on parallelism
  • 9. 9  Propose a Quantum Abstract Machine to abstract the characteristics of different NISQ architectures QAM here is distinct from that in the literature [arxiv1608.03355], which refers to an abstract machine architecture for classical/quantum computations  Propose a heuristic search algorithm CODAR considering Gate duration difference Program context to explore more parallelism of the quantum program Our Main Idea [arxiv1608.03355] Robert S. Smith, Michael J. Curtis, William J. Zeng. A Practical Quantum Instruction Set Architecture. Feb 2017. CODAR: COntext-sensitive and Duration-Aware Remapping algorithm
  • 10. 10 Which qubit pair is chosen to swap? The earlier it can start, the better Motivating Examples
  • 11. 11 Which qubit pair is chosen to swap? The earlier it can start, the better  Impact of Program Context Motivating Examples cost 9 cycles cost 8 cycles Cycle
  • 12. 12 Which qubit pair is chosen to swap? The earlier it can start, the better  Impact of Gate Duration Difference Motivating Examples cost 10 cycles cost 9 cycles
  • 14. 14 Parameter info. of QC devices
  • 15. 15 maQAM: Static +Dynamic Parts Physical qubits,Elementary quantum operations Qubit coupling map, Gate durations, Distance between each qubit pair Qubit map Commutative front gate set ……
  • 16. 16 Key Design on the CODAR Algorithm
  • 17. 17  Generate an executable gate sequence for a given input OpenQASM program by adjusting the gate sequence inserting the swap operation with the program semantics unchanged Main Idea of CODAR Fit quantum hardware limitation Have better parallelism to reduce the weighted depth of the circuit
  • 18. 18 Qubit Lock Mechanism Each physical qubit has a Qubit Lock Tend. A qubit's Tend is updated when a gate is applied to this qubit. By comparing each qubits' Tend with current time, CODAR is aware of which physical qubits are occupied by previous gates and remap through free qubits. Different gates with different duration will update Tend with different value. So CODAR is aware of the gate duration difference.
  • 19. 19  Commutativity between gates gA , gB can be resolved by checking the relevant unitary operators ΑB=BA. Commutativity Detection Definition 1 (Commutative Forward Gate, CF gate). Given a gate sequence I=[g1 , g2 , ..., gk , ...], ∀gk ∈ I, gk is a commutative forward gate iff ∀j, 0 < j < k, gj and gk are commutative. Choosing CF gates as logically-executable gates can expose more future contextual gates for the heuristic search to determine better remapping solutions.
  • 20. 20 Overview of the CODAR Algorithm A gate is directly executable only when all its associate physical qubits are free and fit the connectivity limitation. For example, Q Tend > Current Time Busy QFree Tend ≤ Current Time Gate Gate QQ Q Gate QQ Gate Busy Free QQ Gate Free Free
  • 21. 21 An Example to Explain CODAR Hbasic<0 q5 q1 q2q3 q0 q4 0 0 0 00 0 Blocked Blocked Cycle 0 1: CX q0,q2; 2: T q1 3: CX q0,q3; Given Hbasic<0 means the SWAP won’t shorten the total distance of CF gates according to our heuristic cost function
  • 22. 22 An Example to Explain CODAR Hbasic<0 means the SWAP won’t shorten the total distance of CF gates according to our heuristic cost function 1: CX q0,q2; 2: T q1 3: CX q0,q3; Given q5 q1 q2q3 q0 q4 1 0 2 00 2 Hbasic<0 q5 q1 q2q3 q0 q4 1 0 2 00 2 No SWAP insert Blocked Blocked Cycle 0 endCycle 0 start
  • 23. 23 An Example to Explain CODAR 1: CX q0,q2; 2: T q1 3: CX q0,q3; 1: CX q0,q2; 2: T q1; 3: SWAP q3,q1; 4: CX q0,q3; Given Generate q5 q1 q2q3 q0 q4 1 0 2 00 2 q5 q1 q3 q0 q4 1 0 2 00 2 Highest priority Hbasic<0 q5 q1 q2q3 q0 q4 1 0 2 00 2 No SWAP insert Blocked Blocked Hbasic<0 q2 Blocked free now Cycle 0 end Cycle 1 startCycle 0 start
  • 24. 24 An Example to Explain CODAR q5 q1 q2q3 q0 q4 1 0 2 00 2 q5 q1 q3 q0 q4 1 0 2 00 2 Highest priority Hbasic<0 q5 q1 q2q3 q0 q4 1 0 2 00 2 No SWAP insert Blocked Blocked Hbasic<0 q2 Blocked free now q5 q3 q2q1 q0 q4 7 7 2 0 2 insert SWAP 0 Cycle 0 end Cycle 1 startCycle 0 start Cycle 1 end 1: CX q0,q2; 2: T q1 3: CX q0,q3; 1: CX q0,q2; 2: T q1; 3: SWAP q3,q1; 4: CX q0,q3; Given Generate
  • 26. 26  Comparison with SABRE Evaluation The size of the benchmarks ranges from using 3 qubits up to using 36 qubits and about 30,000 gates. The average speedup ratio of CODAR on four architecture models, IBM Q16 Melbourne, Enfield 6ⅹ6, IBM Q20 Tokyo and Google Q54 are respectively 1.212, 1.241, 1.214 and 1.258.
  • 27. 27  Conclusion The design of qubit lock and commutativity detection make CODAR aware of program context and the gate duration difference, helping CODAR find the remapping with good parallelism and reduce QC’s weighted depth  Ongoing and Future Work The impact of noise: noise of a gate cannot be accumulated sometimes Are there any noise effect patterns? The impact of sub-circuit patterns in high-level algorithms Conclusion and Ongoing Work