SlideShare a Scribd company logo
1 of 10
Challenge # 04
Circuit
Decomposition
By Iqra Naz
Software Engineering Dept.
Circuit Decomposition
• A set of quantum gates is said to be universal if any unitary
transformation of the quantum data can be efficiently
approximated arbitrarily well as a sequence of gates in the
set.
• These gates can easily be transpiled by using C-NOT (Cx)
gates and hadamard gates with single qubit rotations.
• These forms universal gate set as well as any unitary can be
implemented using them.
• Our task is to form an efficient unitary matrix that can be
decomposed into lesser number of known quantum gates.
Unitary
• Unitarmy atrices are the complex analog of real orthogonal
matrices.
• A unitary matrix is a matrix whose inverse equals it conjugate
transpose.
• U is unitary, the it holds following properties:
• U is invertible and U− 1 = U*.
• The columns of U form an orthonormal basis.
• The rows of U form an orthonormal basis.
• U is an isometry with respect to the inner product determined
by U.
• U is a normal matrix with eigenvalues lying on the unit circle. .
Isometry
• an isometry is a transformation which maps elements to the
same or another metric space such that the distance
between the image elements in the new metric space is
equal to the distance between the elements in the original
metric space.
• An isometric surjective linear operator on a Hilbert space is
called a unitary operator.
Transpilation
• It is defined as source-to-source compilation. Tools have
been written to do this and they are called transpilers.
Transpilers take the source code and convert it into another
language.
• The ouput is generally understandable by a human.
• This output still has to go through a compiler or interpreter
to be able to run on the machine.
Compilation Vs Transpilation
• It is an umbrella term to
describe a program that
takes source code written in
one language and produce a
(or many) output file in
some other language.
• compiler such as gcc which
takes in C code as input and
produces a binary
executable (machine code)
as output.
• They are a subset of
compilers which take in a
source code file and convert
it to another source code
file in some other language
or a different version of the
same language.
• The output is generally
understandable by a human.
This output still has to go
through a compiler or
interpreter.
Cost
• Cost is the most crucial factor for designing or
implementation of any circuit.
• when it comes to quantum circuits it becomes the most
unavoidable part of design technique.
• The hadamard-unitary sandwich technique has an amazing
cost reduction potential in quantum circuits.
Circuit Cost
• Here we will look at the number of CNOT-gates, and the
number of u3-gates, to determine the cost of our
decomposition.
• We used only two gates Hadamard (u3-gate) and Controlled-
Not (Cx) gate in the circuit.
• We determined the cost as:
Cost = 10. ncx + nu3
THANK YOU
Iqra -IBM Quantum Challenge Webinar

More Related Content

Similar to Iqra -IBM Quantum Challenge Webinar

Similar to Iqra -IBM Quantum Challenge Webinar (20)

Loop parallelization & pipelining
Loop parallelization & pipeliningLoop parallelization & pipelining
Loop parallelization & pipelining
 
Halide - 2
Halide - 2 Halide - 2
Halide - 2
 
Cc module 3.pptx
Cc module 3.pptxCc module 3.pptx
Cc module 3.pptx
 
Physical organization of parallel platforms
Physical organization of parallel platformsPhysical organization of parallel platforms
Physical organization of parallel platforms
 
A guide to common automation terms
A guide to common automation termsA guide to common automation terms
A guide to common automation terms
 
VHDL_Lec1.pptx
VHDL_Lec1.pptxVHDL_Lec1.pptx
VHDL_Lec1.pptx
 
Realizing Robust and Scalable Evolutionary Algorithms toward Exascale Era
Realizing Robust and Scalable Evolutionary Algorithms toward Exascale EraRealizing Robust and Scalable Evolutionary Algorithms toward Exascale Era
Realizing Robust and Scalable Evolutionary Algorithms toward Exascale Era
 
Lecture6
Lecture6Lecture6
Lecture6
 
Introduction to Compiler
Introduction to CompilerIntroduction to Compiler
Introduction to Compiler
 
Digital_system_design_A (1).ppt
Digital_system_design_A (1).pptDigital_system_design_A (1).ppt
Digital_system_design_A (1).ppt
 
Lec16 - Autoencoders.pptx
Lec16 - Autoencoders.pptxLec16 - Autoencoders.pptx
Lec16 - Autoencoders.pptx
 
Lecture syn 024.cpld-fpga
Lecture syn 024.cpld-fpgaLecture syn 024.cpld-fpga
Lecture syn 024.cpld-fpga
 
Parallel Algorithms
Parallel AlgorithmsParallel Algorithms
Parallel Algorithms
 
VHDL-PRESENTATION.ppt
VHDL-PRESENTATION.pptVHDL-PRESENTATION.ppt
VHDL-PRESENTATION.ppt
 
Basics of Digital Design and Verilog
Basics of Digital Design and VerilogBasics of Digital Design and Verilog
Basics of Digital Design and Verilog
 
Introduction Of C++
Introduction Of C++Introduction Of C++
Introduction Of C++
 
P J020
P J020P J020
P J020
 
C program execution and algorithm
C program execution and algorithm C program execution and algorithm
C program execution and algorithm
 
Fpga & VHDL
Fpga & VHDLFpga & VHDL
Fpga & VHDL
 
Introduction to multicore .ppt
Introduction to multicore .pptIntroduction to multicore .ppt
Introduction to multicore .ppt
 

Recently uploaded

Breaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfBreaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
UK Journal
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
UXDXConf
 

Recently uploaded (20)

Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - Questionnaire
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджера
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfThe Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
 
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptxBT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
 
ERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage IntacctERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage Intacct
 
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties ReimaginedEasier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
 
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxWSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
 
Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
 
Syngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdf
 
AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
ECS 2024 Teams Premium - Pretty Secure
ECS 2024   Teams Premium - Pretty SecureECS 2024   Teams Premium - Pretty Secure
ECS 2024 Teams Premium - Pretty Secure
 
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfBreaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
 
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024
 

Iqra -IBM Quantum Challenge Webinar

  • 1. Challenge # 04 Circuit Decomposition By Iqra Naz Software Engineering Dept.
  • 2. Circuit Decomposition • A set of quantum gates is said to be universal if any unitary transformation of the quantum data can be efficiently approximated arbitrarily well as a sequence of gates in the set. • These gates can easily be transpiled by using C-NOT (Cx) gates and hadamard gates with single qubit rotations. • These forms universal gate set as well as any unitary can be implemented using them. • Our task is to form an efficient unitary matrix that can be decomposed into lesser number of known quantum gates.
  • 3. Unitary • Unitarmy atrices are the complex analog of real orthogonal matrices. • A unitary matrix is a matrix whose inverse equals it conjugate transpose. • U is unitary, the it holds following properties: • U is invertible and U− 1 = U*. • The columns of U form an orthonormal basis. • The rows of U form an orthonormal basis. • U is an isometry with respect to the inner product determined by U. • U is a normal matrix with eigenvalues lying on the unit circle. .
  • 4. Isometry • an isometry is a transformation which maps elements to the same or another metric space such that the distance between the image elements in the new metric space is equal to the distance between the elements in the original metric space. • An isometric surjective linear operator on a Hilbert space is called a unitary operator.
  • 5. Transpilation • It is defined as source-to-source compilation. Tools have been written to do this and they are called transpilers. Transpilers take the source code and convert it into another language. • The ouput is generally understandable by a human. • This output still has to go through a compiler or interpreter to be able to run on the machine.
  • 6. Compilation Vs Transpilation • It is an umbrella term to describe a program that takes source code written in one language and produce a (or many) output file in some other language. • compiler such as gcc which takes in C code as input and produces a binary executable (machine code) as output. • They are a subset of compilers which take in a source code file and convert it to another source code file in some other language or a different version of the same language. • The output is generally understandable by a human. This output still has to go through a compiler or interpreter.
  • 7. Cost • Cost is the most crucial factor for designing or implementation of any circuit. • when it comes to quantum circuits it becomes the most unavoidable part of design technique. • The hadamard-unitary sandwich technique has an amazing cost reduction potential in quantum circuits.
  • 8. Circuit Cost • Here we will look at the number of CNOT-gates, and the number of u3-gates, to determine the cost of our decomposition. • We used only two gates Hadamard (u3-gate) and Controlled- Not (Cx) gate in the circuit. • We determined the cost as: Cost = 10. ncx + nu3