SlideShare a Scribd company logo
1 of 55
Download to read offline
Quantum Computing
for CS students: the
unitary circuit model
Bruno FEDRICI, PhD
21/05/19 – EPITECH Lyon
What does it mean to compute ?
Church-Turing thesis: Any algorithmic process can be simulated
efficiently using a Turing machine
Deutsch (1985): Can we justify C-T thesis using laws of physics ?
Quantum mechanical processes seems to be very hard to
simulate on a classical computer
Might it be that computers exploiting quantum physics laws
are not efficiently simulatable on a Turing machine ?
(Violation of C-T thesis !)
Candidate universal computer: quantum computer
What does it mean to compute ?
Church-Turing-Deutsch principle: Any physical process can be
efficiently simulated on a universal quantum computer
Models of quantum computation
A more convenient model is
the quantum circuit model
(QCircuits). This model is
mathematically equivalent to
the QTM model, but the
former is better suited for
algebraic problems than the
latter.
There are also many other
interesting alternate models
of quantum computation
(see Figure 2).
Historically, the first model of quantum computation was the
quantum Turing machine (QTM), based on classical Turing
machine.
Representing classical bits as a vector
One bit with the value 0, also written as (Dirac notation):
One bit with the value 1, also written as :
Review: matrix multiplication
Operations on one classical bit (cbit)
0 0
Identity
1 1
0 0
Negation
1 1
0 0
Constant-0
1 1
0 0
Constant-1
0 1
Reversible computing
Reversible means given the operation and output value, you can
find the input value
For , given and , you can uniquely find
Operations which permute are reversible; operations which erase
or overwrite are not
Identity and Negation are reversible
Constant-0 and Constant-1 are not
Quantum algorithms rely only on reversible operations, so we will
only care about those
In fact, all quantum operators are “their own inverses”
(unitarity of quantum theory)
Review: tensor product of vectors
Representing multiple cbits
We call this tensored representation the product state
We can factor the product state back into the individual state
representation
The product state of n bits is a vector of size 2n
Operations on multiple cbits: CNOT
Operates on a pair of bits: the “control” bit and the “target” bit
If the control bit is 1, then the target bit is flipped
If the control bit is 0, then the target bit is left unchanged
The control bit is always unchanged
00 00
01 01
10 11
11 10
Operations on multiple cbits: CNOT
Operations on multiple cbits: CNOT
Recap cbits
We represent classical bits in vector form as for 0 and
for 1
Operations on bits are represented by matrix multiplication on
bit vectors
Quantum algorithms rely only on reversible operations
Multi-bit states are written as the tensor product of single-bit
vectors
The CNOT gate is a fundamental building block of reversible
computing
Qbits and superposition
Surprise ! We've actually been using single qbits all along !
The cbit vectors we've been using are just special cases of
qbit vectors
A qbit is represented by a vector where a and b are
complex numbers and:
complex numbers and:
The cbit vectors and fit within this definition
Example qbit values:
Qbits and superposition
How can a qbit to have a value which is not 0 or 1 ? This is
called coherent superposition, enabling quantum parallelism
When we measure the qbit, it collapses to an actual value of 0
or 1
We usually do this at the end of a quantum algorithm to get
the result
If a qbit has value then it collapses to 0 with a probability
and 1 with a probability
For example, has a chance of collapsing
to 0 or 1
The qbit has a 100% chance of collapsing to 0
Qbits and superposition
Multiple qbits are similarly represented by the tensor product
Note that
For example, the system (note that
and )
There's a ¼ chance each of collapsing to or
Operations on qbits
How do we operate on qbits ? The same way we operate on
cbits: with matrices !
All the matrix operators we have seen also work on qbits (bit
flip, CNOT, etc)
Matrix operators model the effect of devices acting on qbit
observables like spin or polarization without measuring and
collapsing qbit states:
There are several important matrix operators which only make
sense in a quantum context
Operations on qbits: the Hadamard gate
The Hadamard gate takes a 0- or 1-bit and puts it into exactly
equal superposition:
Operations on qbits: the Hadamard gate
The Hadamard gate also takes a qbit in exactly-equal
superposition, and transforms it into a 0- or 1-bit (this should
be unsurprising – remember operations are their own inverse):
We can transition out of a superposition without measurement !
We can thus structure quantum computation deterministically
instead of probabilistically
The unit circle state machine
The unit circle state machine
Recap qbits
Cbits are just a special case of qbits, which are 2-vectors of
complex numbers
Qbits can be in superposition, enabling parallelism, and are
probabilistically collapsed to cbits by measurement
Multi-qbit systems are tensor product of single-qbit systems,
like with cbits
Matrices represent operations on qbits, same as with cbits
The Hadamard gate take 0- and 1-bits to equal superposition,
and back
We can think of qbits and their operations as forming a state
machine on the unit circle
Actually the unit sphere if we use complex amplitudes
The Deutsch oracle
Imagine someone gives you a black box containing a function
on one bit
Recall ! What are the four possible functions on one bit ?
You don't know which function is inside the box, but you can try
inputs and see outputs
How many queries would it take to determine the function on a
classical computer ? (Answer: 2)
How many on a quantum computer ? (Answer: 2; quantum
computation requires something more than just parallelism)
The Deutsch oracle
What if you want to check now whether or not the function is
constant, or variable ?
Constant-0 and Constant-1 are constant, Identity and
Negation are variable
How many queries would it take to determine the function on a
classical computer ? (Answer: 2)
How many on a quantum computer ? (Answer: 1)
The Deutsch oracle
How can it be done in a single query !?
We combine quantum parallelism with interferences
First, we have to define what each of the four functions look
like on a quantum computer
We have an immediate problem with the constant functions
(remember, Constant-0 and Constant-1 are non reversible
operations !)
The Deutsch oracle
How do we write non-reversible functions in a reversible way ?
Common hack: add an additional auxiliary qbit to which the
function is applied (target register)
We thus have to rewire our black box:
before: after:
The black box leaves input data unchanged, writing function
output to the target register
BBData Target
Target
register
Data
register
BB
The Deutsch oracle: Constant-0
Target
register
Data
register
BB
Target
register
Data
register
Constant-0:
Black box:
The Deutsch oracle: Constant-1
Target
register
Data
register
BB
Target
register
Data
register
Constant-1:
Black box:
The Deutsch oracle: Identity
Target
register
Data
register
BB
Target
register
Data
register
Identity:
Black box:
The Deutsch oracle: Negation
Target
register
Data
register
BB
Target
register
Data
register
Negation:
Black box:
The Deutsch oracle
How do we solve it with a quantum algorithm in one query ?
If the black box function is constant, system will be in state
after the measurement
If the black box function is variable, system will be in state
after the measurement
Target
register
Data
register
BB
preprocessing post-processing
The Deutsch oracle: Preprocessing
Target register:Data register:
The Deutsch oracle: Constant-0
Target
register
Data
register
BB
Target
register
Data
register
Constant-0:
Black box:
The Deutsch oracle: Constant-0
Target register:Data register:
Output:
The Deutsch oracle: Constant-1
Target
register
Data
register
BB
Target
register
Data
register
Constant-1:
Black box:
The Deutsch oracle: Constant-1
Target register:Data register:
Output:
The Deutsch oracle: Identity
Target
register
Data
register
BB
Target
register
Data
register
Identity:
Black box:
The Deutsch oracle: Identity
The Deutsch oracle: Identity
Target register:Data register:
Output:
The Deutsch oracle: Negation
Target
register
Data
register
BB
Target
register
Data
register
Negation:
Black box:
The Deutsch oracle: Negation
Target register:Data register:
Output:
The Deutsch oracle
We did it ! We determined whether the function is constant or
variable in a single query !
Intuition: the difference within the categories was neutralized
(negation), while the difference between the categories was
magnified (CNOT)
This problem seems pretty contrived (and it was when it was
published)
A generalized version with an n-bit black box also exists
(Deutsch-Josza algorithm)
Determine whether the function returns the same value for
2n
inputs (i.e. constant)
Bonus topics
Quantum entanglement
Quantum teleportation
Entanglement
If the product state of two qbits cannot be factored, they are
said to be entangled
The system of equations has no solution, so we cannot factor
the quantum state !
The state has a 50% chance of collapsing to and a 50%
chance of collapsing to
Entanglement
How can we reach an entangled state ? Easy !
Teleportation
Quantum teleportation is the process by which an unknown qbit
state is transferred from one location to another by means of
two other entangled qbits
You can transfer qbit states (cut & paste) but you cannot clone
them (copy & paste)
This comes from the No-cloning theorem
The teleportation is not faster-than-light, because some
classical information must be sent during the protocol
Teleportation
Teleportation
Teleportation
Teleportation
Teleportation
Teleportation
Further learning goals
Deutsch-Jozsa algorithm and Simon's periodicity problem
Former yields oracle separation between EQP(1)
and P(2)
, later
between BQP(3)
and BPP(4)
Shor's algorithm and Grover's algorithm
Quantum cryptographic key exchange and no cloning theorem
How qbits, gates, and measurement are actually implemented
Quantum error correction
Quantum programming language design (QISkit, Q#, ...)
(1)
: The class of decision problems solvable by a quantum computer which outputs the correct answer with probability 1 and runs in
polynomial time
(2)
: The class of decision problems solvable by a deterministic Turing machine in polynomial time
(3)
: The class of decision problems solvable by a quantum computer in polynomial time, with an error probability of at most 1/3 for all
instances
(4)
: The class of decision problems solvable by a probabilistic Turing machine in polynomial time with an error probability bounded away from
1/3 for all instances
Further reading
Nielsen, Michael A.; Chuang, Isaac L. (2010). Quantum
Computation and Quantum Information (2nd ed.). Cambridge:
Cambridge University Press. ISBN 978-1-107-00217-3.
Preskill, John (2018). Quantum Computing in the NISQ era and
beyond. arXiv:1801.00862v3
Fingerhuth, Mark; Babej, Tomáš; Wittek, Peter (2018). Open
source software in quantum computing. arXiv:1812.09167v1

More Related Content

What's hot

Quantum Computers.pptx
Quantum Computers.pptxQuantum Computers.pptx
Quantum Computers.pptxNavin Sood
 
Quantum computing
Quantum computingQuantum computing
Quantum computingRitwik MG
 
Engineers and their inventions that defined robotics
Engineers and their inventions that defined roboticsEngineers and their inventions that defined robotics
Engineers and their inventions that defined roboticsVivianAlegre
 
Robots for the disabled
Robots for the disabledRobots for the disabled
Robots for the disablede-twinning
 
Quantum Entanglement
Quantum EntanglementQuantum Entanglement
Quantum EntanglementAlexis Diaz
 
Quantum computers
Quantum   computersQuantum   computers
Quantum computersOmkar Cool
 
Quantum computation - Introduction
Quantum computation - IntroductionQuantum computation - Introduction
Quantum computation - IntroductionAakash Martand
 
Quantum Machine Learning for IBM AI
Quantum Machine Learning for IBM AIQuantum Machine Learning for IBM AI
Quantum Machine Learning for IBM AISasha Lazarevic
 
Quantum computation with superconductors
Quantum computation with superconductorsQuantum computation with superconductors
Quantum computation with superconductorsGabriel O'Brien
 
Quantum computer
Quantum computerQuantum computer
Quantum computerNikhil Eg
 

What's hot (20)

Quantum computing
Quantum computingQuantum computing
Quantum computing
 
Quantum Computers.pptx
Quantum Computers.pptxQuantum Computers.pptx
Quantum Computers.pptx
 
Quantum Computer
Quantum ComputerQuantum Computer
Quantum Computer
 
Quantum computers
Quantum computersQuantum computers
Quantum computers
 
Quantum computing
Quantum computingQuantum computing
Quantum computing
 
Motion
MotionMotion
Motion
 
Engineers and their inventions that defined robotics
Engineers and their inventions that defined roboticsEngineers and their inventions that defined robotics
Engineers and their inventions that defined robotics
 
Quantum entaglement
Quantum entaglementQuantum entaglement
Quantum entaglement
 
Robots for the disabled
Robots for the disabledRobots for the disabled
Robots for the disabled
 
Quantum Entanglement
Quantum EntanglementQuantum Entanglement
Quantum Entanglement
 
Quantum computers
Quantum   computersQuantum   computers
Quantum computers
 
Introduction to Quantum Computer
Introduction to Quantum ComputerIntroduction to Quantum Computer
Introduction to Quantum Computer
 
Quantum Computers
Quantum ComputersQuantum Computers
Quantum Computers
 
Quantum photonics
Quantum photonicsQuantum photonics
Quantum photonics
 
Quantum Computing
Quantum ComputingQuantum Computing
Quantum Computing
 
Quantum computation - Introduction
Quantum computation - IntroductionQuantum computation - Introduction
Quantum computation - Introduction
 
Quantum Machine Learning for IBM AI
Quantum Machine Learning for IBM AIQuantum Machine Learning for IBM AI
Quantum Machine Learning for IBM AI
 
Quantum computation with superconductors
Quantum computation with superconductorsQuantum computation with superconductors
Quantum computation with superconductors
 
Quantum computer
Quantum computerQuantum computer
Quantum computer
 
digital Counter
digital Counterdigital Counter
digital Counter
 

Similar to Quantum computing for CS students: the unitary circuit model

Quantum Computation simplified.pptx
Quantum Computation simplified.pptxQuantum Computation simplified.pptx
Quantum Computation simplified.pptxSundarappanKathiresa
 
Lecture 2 - Bit vs Qubits.pptx
Lecture 2 - Bit vs Qubits.pptxLecture 2 - Bit vs Qubits.pptx
Lecture 2 - Bit vs Qubits.pptxNatKell
 
Quantum Computing 101, Part 1 - Hello Quantum World
Quantum Computing 101, Part 1 - Hello Quantum WorldQuantum Computing 101, Part 1 - Hello Quantum World
Quantum Computing 101, Part 1 - Hello Quantum WorldAaronTurner9
 
Technological Survey on Quantum Computing
Technological Survey on Quantum ComputingTechnological Survey on Quantum Computing
Technological Survey on Quantum ComputingIRJET Journal
 
Matt Purkeypile's Doctoral Dissertation Defense Slides
Matt Purkeypile's Doctoral Dissertation Defense SlidesMatt Purkeypile's Doctoral Dissertation Defense Slides
Matt Purkeypile's Doctoral Dissertation Defense Slidesmpurkeypile
 
Quantum Computing: The Why and How
Quantum Computing: The Why and HowQuantum Computing: The Why and How
Quantum Computing: The Why and Howinside-BigData.com
 
Sthack 2015 - Renaud "@nono2357" Lifchitz - Quantum computing in practice
Sthack 2015 - Renaud "@nono2357" Lifchitz - Quantum computing in practiceSthack 2015 - Renaud "@nono2357" Lifchitz - Quantum computing in practice
Sthack 2015 - Renaud "@nono2357" Lifchitz - Quantum computing in practiceStHack
 
Quantum computing - A Compilation of Concepts
Quantum computing - A Compilation of ConceptsQuantum computing - A Compilation of Concepts
Quantum computing - A Compilation of ConceptsGokul Alex
 
Quantum Computing and its security implications
Quantum Computing and its security implicationsQuantum Computing and its security implications
Quantum Computing and its security implicationsInnoTech
 

Similar to Quantum computing for CS students: the unitary circuit model (20)

Quantum computing
Quantum computingQuantum computing
Quantum computing
 
Quantum Computation simplified.pptx
Quantum Computation simplified.pptxQuantum Computation simplified.pptx
Quantum Computation simplified.pptx
 
Computer Science Final Project
Computer Science Final ProjectComputer Science Final Project
Computer Science Final Project
 
2017 10 17_quantum_program_v2
2017 10 17_quantum_program_v22017 10 17_quantum_program_v2
2017 10 17_quantum_program_v2
 
OPTICALQuantum
OPTICALQuantumOPTICALQuantum
OPTICALQuantum
 
Quantum computing
Quantum computingQuantum computing
Quantum computing
 
Quantum Computation For AI
Quantum Computation For AIQuantum Computation For AI
Quantum Computation For AI
 
Lecture 2 - Bit vs Qubits.pptx
Lecture 2 - Bit vs Qubits.pptxLecture 2 - Bit vs Qubits.pptx
Lecture 2 - Bit vs Qubits.pptx
 
Quantum Computing 101, Part 1 - Hello Quantum World
Quantum Computing 101, Part 1 - Hello Quantum WorldQuantum Computing 101, Part 1 - Hello Quantum World
Quantum Computing 101, Part 1 - Hello Quantum World
 
Quantum programming
Quantum programmingQuantum programming
Quantum programming
 
Technological Survey on Quantum Computing
Technological Survey on Quantum ComputingTechnological Survey on Quantum Computing
Technological Survey on Quantum Computing
 
Matt Purkeypile's Doctoral Dissertation Defense Slides
Matt Purkeypile's Doctoral Dissertation Defense SlidesMatt Purkeypile's Doctoral Dissertation Defense Slides
Matt Purkeypile's Doctoral Dissertation Defense Slides
 
Quantum Computing: The Why and How
Quantum Computing: The Why and HowQuantum Computing: The Why and How
Quantum Computing: The Why and How
 
Documents
Documents Documents
Documents
 
Des2017 quantum computing_final
Des2017 quantum computing_finalDes2017 quantum computing_final
Des2017 quantum computing_final
 
Quantum computer
Quantum computerQuantum computer
Quantum computer
 
Sthack 2015 - Renaud "@nono2357" Lifchitz - Quantum computing in practice
Sthack 2015 - Renaud "@nono2357" Lifchitz - Quantum computing in practiceSthack 2015 - Renaud "@nono2357" Lifchitz - Quantum computing in practice
Sthack 2015 - Renaud "@nono2357" Lifchitz - Quantum computing in practice
 
Quantum computing - A Compilation of Concepts
Quantum computing - A Compilation of ConceptsQuantum computing - A Compilation of Concepts
Quantum computing - A Compilation of Concepts
 
Quantum Computing and its security implications
Quantum Computing and its security implicationsQuantum Computing and its security implications
Quantum Computing and its security implications
 
Quantum computer
Quantum computerQuantum computer
Quantum computer
 

Recently uploaded

TOTAL CHOLESTEROL (lipid profile test).pptx
TOTAL CHOLESTEROL (lipid profile test).pptxTOTAL CHOLESTEROL (lipid profile test).pptx
TOTAL CHOLESTEROL (lipid profile test).pptxdharshini369nike
 
Scheme-of-Work-Science-Stage-4 cambridge science.docx
Scheme-of-Work-Science-Stage-4 cambridge science.docxScheme-of-Work-Science-Stage-4 cambridge science.docx
Scheme-of-Work-Science-Stage-4 cambridge science.docxyaramohamed343013
 
Call Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCR
Call Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCRCall Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCR
Call Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCRlizamodels9
 
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptxSOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptxkessiyaTpeter
 
Harmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms PresentationHarmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms Presentationtahreemzahra82
 
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptxTHE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptxNandakishor Bhaurao Deshmukh
 
insect anatomy and insect body wall and their physiology
insect anatomy and insect body wall and their  physiologyinsect anatomy and insect body wall and their  physiology
insect anatomy and insect body wall and their physiologyDrAnita Sharma
 
Module 4: Mendelian Genetics and Punnett Square
Module 4:  Mendelian Genetics and Punnett SquareModule 4:  Mendelian Genetics and Punnett Square
Module 4: Mendelian Genetics and Punnett SquareIsiahStephanRadaza
 
‏‏VIRUS - 123455555555555555555555555555555555555555
‏‏VIRUS -  123455555555555555555555555555555555555555‏‏VIRUS -  123455555555555555555555555555555555555555
‏‏VIRUS - 123455555555555555555555555555555555555555kikilily0909
 
Neurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 trNeurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 trssuser06f238
 
Bentham & Hooker's Classification. along with the merits and demerits of the ...
Bentham & Hooker's Classification. along with the merits and demerits of the ...Bentham & Hooker's Classification. along with the merits and demerits of the ...
Bentham & Hooker's Classification. along with the merits and demerits of the ...Nistarini College, Purulia (W.B) India
 
Analytical Profile of Coleus Forskohlii | Forskolin .pdf
Analytical Profile of Coleus Forskohlii | Forskolin .pdfAnalytical Profile of Coleus Forskohlii | Forskolin .pdf
Analytical Profile of Coleus Forskohlii | Forskolin .pdfSwapnil Therkar
 
Analytical Profile of Coleus Forskohlii | Forskolin .pptx
Analytical Profile of Coleus Forskohlii | Forskolin .pptxAnalytical Profile of Coleus Forskohlii | Forskolin .pptx
Analytical Profile of Coleus Forskohlii | Forskolin .pptxSwapnil Therkar
 
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.PraveenaKalaiselvan1
 
Recombinant DNA technology( Transgenic plant and animal)
Recombinant DNA technology( Transgenic plant and animal)Recombinant DNA technology( Transgenic plant and animal)
Recombinant DNA technology( Transgenic plant and animal)DHURKADEVIBASKAR
 
Temporomandibular joint Muscles of Mastication
Temporomandibular joint Muscles of MasticationTemporomandibular joint Muscles of Mastication
Temporomandibular joint Muscles of Masticationvidulajaib
 
zoogeography of pakistan.pptx fauna of Pakistan
zoogeography of pakistan.pptx fauna of Pakistanzoogeography of pakistan.pptx fauna of Pakistan
zoogeography of pakistan.pptx fauna of Pakistanzohaibmir069
 
Microphone- characteristics,carbon microphone, dynamic microphone.pptx
Microphone- characteristics,carbon microphone, dynamic microphone.pptxMicrophone- characteristics,carbon microphone, dynamic microphone.pptx
Microphone- characteristics,carbon microphone, dynamic microphone.pptxpriyankatabhane
 
Call Girls in Aiims Metro Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Aiims Metro Delhi 💯Call Us 🔝9953322196🔝 💯Escort.Call Girls in Aiims Metro Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Aiims Metro Delhi 💯Call Us 🔝9953322196🔝 💯Escort.aasikanpl
 
Cytokinin, mechanism and its application.pptx
Cytokinin, mechanism and its application.pptxCytokinin, mechanism and its application.pptx
Cytokinin, mechanism and its application.pptxVarshiniMK
 

Recently uploaded (20)

TOTAL CHOLESTEROL (lipid profile test).pptx
TOTAL CHOLESTEROL (lipid profile test).pptxTOTAL CHOLESTEROL (lipid profile test).pptx
TOTAL CHOLESTEROL (lipid profile test).pptx
 
Scheme-of-Work-Science-Stage-4 cambridge science.docx
Scheme-of-Work-Science-Stage-4 cambridge science.docxScheme-of-Work-Science-Stage-4 cambridge science.docx
Scheme-of-Work-Science-Stage-4 cambridge science.docx
 
Call Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCR
Call Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCRCall Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCR
Call Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCR
 
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptxSOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
 
Harmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms PresentationHarmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms Presentation
 
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptxTHE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
 
insect anatomy and insect body wall and their physiology
insect anatomy and insect body wall and their  physiologyinsect anatomy and insect body wall and their  physiology
insect anatomy and insect body wall and their physiology
 
Module 4: Mendelian Genetics and Punnett Square
Module 4:  Mendelian Genetics and Punnett SquareModule 4:  Mendelian Genetics and Punnett Square
Module 4: Mendelian Genetics and Punnett Square
 
‏‏VIRUS - 123455555555555555555555555555555555555555
‏‏VIRUS -  123455555555555555555555555555555555555555‏‏VIRUS -  123455555555555555555555555555555555555555
‏‏VIRUS - 123455555555555555555555555555555555555555
 
Neurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 trNeurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 tr
 
Bentham & Hooker's Classification. along with the merits and demerits of the ...
Bentham & Hooker's Classification. along with the merits and demerits of the ...Bentham & Hooker's Classification. along with the merits and demerits of the ...
Bentham & Hooker's Classification. along with the merits and demerits of the ...
 
Analytical Profile of Coleus Forskohlii | Forskolin .pdf
Analytical Profile of Coleus Forskohlii | Forskolin .pdfAnalytical Profile of Coleus Forskohlii | Forskolin .pdf
Analytical Profile of Coleus Forskohlii | Forskolin .pdf
 
Analytical Profile of Coleus Forskohlii | Forskolin .pptx
Analytical Profile of Coleus Forskohlii | Forskolin .pptxAnalytical Profile of Coleus Forskohlii | Forskolin .pptx
Analytical Profile of Coleus Forskohlii | Forskolin .pptx
 
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
BIOETHICS IN RECOMBINANT DNA TECHNOLOGY.
 
Recombinant DNA technology( Transgenic plant and animal)
Recombinant DNA technology( Transgenic plant and animal)Recombinant DNA technology( Transgenic plant and animal)
Recombinant DNA technology( Transgenic plant and animal)
 
Temporomandibular joint Muscles of Mastication
Temporomandibular joint Muscles of MasticationTemporomandibular joint Muscles of Mastication
Temporomandibular joint Muscles of Mastication
 
zoogeography of pakistan.pptx fauna of Pakistan
zoogeography of pakistan.pptx fauna of Pakistanzoogeography of pakistan.pptx fauna of Pakistan
zoogeography of pakistan.pptx fauna of Pakistan
 
Microphone- characteristics,carbon microphone, dynamic microphone.pptx
Microphone- characteristics,carbon microphone, dynamic microphone.pptxMicrophone- characteristics,carbon microphone, dynamic microphone.pptx
Microphone- characteristics,carbon microphone, dynamic microphone.pptx
 
Call Girls in Aiims Metro Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Aiims Metro Delhi 💯Call Us 🔝9953322196🔝 💯Escort.Call Girls in Aiims Metro Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Aiims Metro Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
 
Cytokinin, mechanism and its application.pptx
Cytokinin, mechanism and its application.pptxCytokinin, mechanism and its application.pptx
Cytokinin, mechanism and its application.pptx
 

Quantum computing for CS students: the unitary circuit model

  • 1. Quantum Computing for CS students: the unitary circuit model Bruno FEDRICI, PhD 21/05/19 – EPITECH Lyon
  • 2. What does it mean to compute ? Church-Turing thesis: Any algorithmic process can be simulated efficiently using a Turing machine Deutsch (1985): Can we justify C-T thesis using laws of physics ? Quantum mechanical processes seems to be very hard to simulate on a classical computer Might it be that computers exploiting quantum physics laws are not efficiently simulatable on a Turing machine ? (Violation of C-T thesis !) Candidate universal computer: quantum computer
  • 3. What does it mean to compute ? Church-Turing-Deutsch principle: Any physical process can be efficiently simulated on a universal quantum computer
  • 4. Models of quantum computation A more convenient model is the quantum circuit model (QCircuits). This model is mathematically equivalent to the QTM model, but the former is better suited for algebraic problems than the latter. There are also many other interesting alternate models of quantum computation (see Figure 2). Historically, the first model of quantum computation was the quantum Turing machine (QTM), based on classical Turing machine.
  • 5. Representing classical bits as a vector One bit with the value 0, also written as (Dirac notation): One bit with the value 1, also written as :
  • 7. Operations on one classical bit (cbit) 0 0 Identity 1 1 0 0 Negation 1 1 0 0 Constant-0 1 1 0 0 Constant-1 0 1
  • 8. Reversible computing Reversible means given the operation and output value, you can find the input value For , given and , you can uniquely find Operations which permute are reversible; operations which erase or overwrite are not Identity and Negation are reversible Constant-0 and Constant-1 are not Quantum algorithms rely only on reversible operations, so we will only care about those In fact, all quantum operators are “their own inverses” (unitarity of quantum theory)
  • 10. Representing multiple cbits We call this tensored representation the product state We can factor the product state back into the individual state representation The product state of n bits is a vector of size 2n
  • 11. Operations on multiple cbits: CNOT Operates on a pair of bits: the “control” bit and the “target” bit If the control bit is 1, then the target bit is flipped If the control bit is 0, then the target bit is left unchanged The control bit is always unchanged 00 00 01 01 10 11 11 10
  • 12. Operations on multiple cbits: CNOT
  • 13. Operations on multiple cbits: CNOT
  • 14. Recap cbits We represent classical bits in vector form as for 0 and for 1 Operations on bits are represented by matrix multiplication on bit vectors Quantum algorithms rely only on reversible operations Multi-bit states are written as the tensor product of single-bit vectors The CNOT gate is a fundamental building block of reversible computing
  • 15. Qbits and superposition Surprise ! We've actually been using single qbits all along ! The cbit vectors we've been using are just special cases of qbit vectors A qbit is represented by a vector where a and b are complex numbers and: complex numbers and: The cbit vectors and fit within this definition Example qbit values:
  • 16. Qbits and superposition How can a qbit to have a value which is not 0 or 1 ? This is called coherent superposition, enabling quantum parallelism When we measure the qbit, it collapses to an actual value of 0 or 1 We usually do this at the end of a quantum algorithm to get the result If a qbit has value then it collapses to 0 with a probability and 1 with a probability For example, has a chance of collapsing to 0 or 1 The qbit has a 100% chance of collapsing to 0
  • 17. Qbits and superposition Multiple qbits are similarly represented by the tensor product Note that For example, the system (note that and ) There's a ¼ chance each of collapsing to or
  • 18. Operations on qbits How do we operate on qbits ? The same way we operate on cbits: with matrices ! All the matrix operators we have seen also work on qbits (bit flip, CNOT, etc) Matrix operators model the effect of devices acting on qbit observables like spin or polarization without measuring and collapsing qbit states: There are several important matrix operators which only make sense in a quantum context
  • 19. Operations on qbits: the Hadamard gate The Hadamard gate takes a 0- or 1-bit and puts it into exactly equal superposition:
  • 20. Operations on qbits: the Hadamard gate The Hadamard gate also takes a qbit in exactly-equal superposition, and transforms it into a 0- or 1-bit (this should be unsurprising – remember operations are their own inverse): We can transition out of a superposition without measurement ! We can thus structure quantum computation deterministically instead of probabilistically
  • 21. The unit circle state machine
  • 22. The unit circle state machine
  • 23. Recap qbits Cbits are just a special case of qbits, which are 2-vectors of complex numbers Qbits can be in superposition, enabling parallelism, and are probabilistically collapsed to cbits by measurement Multi-qbit systems are tensor product of single-qbit systems, like with cbits Matrices represent operations on qbits, same as with cbits The Hadamard gate take 0- and 1-bits to equal superposition, and back We can think of qbits and their operations as forming a state machine on the unit circle Actually the unit sphere if we use complex amplitudes
  • 24. The Deutsch oracle Imagine someone gives you a black box containing a function on one bit Recall ! What are the four possible functions on one bit ? You don't know which function is inside the box, but you can try inputs and see outputs How many queries would it take to determine the function on a classical computer ? (Answer: 2) How many on a quantum computer ? (Answer: 2; quantum computation requires something more than just parallelism)
  • 25. The Deutsch oracle What if you want to check now whether or not the function is constant, or variable ? Constant-0 and Constant-1 are constant, Identity and Negation are variable How many queries would it take to determine the function on a classical computer ? (Answer: 2) How many on a quantum computer ? (Answer: 1)
  • 26. The Deutsch oracle How can it be done in a single query !? We combine quantum parallelism with interferences First, we have to define what each of the four functions look like on a quantum computer We have an immediate problem with the constant functions (remember, Constant-0 and Constant-1 are non reversible operations !)
  • 27. The Deutsch oracle How do we write non-reversible functions in a reversible way ? Common hack: add an additional auxiliary qbit to which the function is applied (target register) We thus have to rewire our black box: before: after: The black box leaves input data unchanged, writing function output to the target register BBData Target Target register Data register BB
  • 28. The Deutsch oracle: Constant-0 Target register Data register BB Target register Data register Constant-0: Black box:
  • 29. The Deutsch oracle: Constant-1 Target register Data register BB Target register Data register Constant-1: Black box:
  • 30. The Deutsch oracle: Identity Target register Data register BB Target register Data register Identity: Black box:
  • 31. The Deutsch oracle: Negation Target register Data register BB Target register Data register Negation: Black box:
  • 32. The Deutsch oracle How do we solve it with a quantum algorithm in one query ? If the black box function is constant, system will be in state after the measurement If the black box function is variable, system will be in state after the measurement Target register Data register BB preprocessing post-processing
  • 33. The Deutsch oracle: Preprocessing Target register:Data register:
  • 34. The Deutsch oracle: Constant-0 Target register Data register BB Target register Data register Constant-0: Black box:
  • 35. The Deutsch oracle: Constant-0 Target register:Data register: Output:
  • 36. The Deutsch oracle: Constant-1 Target register Data register BB Target register Data register Constant-1: Black box:
  • 37. The Deutsch oracle: Constant-1 Target register:Data register: Output:
  • 38. The Deutsch oracle: Identity Target register Data register BB Target register Data register Identity: Black box:
  • 40. The Deutsch oracle: Identity Target register:Data register: Output:
  • 41. The Deutsch oracle: Negation Target register Data register BB Target register Data register Negation: Black box:
  • 42. The Deutsch oracle: Negation Target register:Data register: Output:
  • 43. The Deutsch oracle We did it ! We determined whether the function is constant or variable in a single query ! Intuition: the difference within the categories was neutralized (negation), while the difference between the categories was magnified (CNOT) This problem seems pretty contrived (and it was when it was published) A generalized version with an n-bit black box also exists (Deutsch-Josza algorithm) Determine whether the function returns the same value for 2n inputs (i.e. constant)
  • 45. Entanglement If the product state of two qbits cannot be factored, they are said to be entangled The system of equations has no solution, so we cannot factor the quantum state ! The state has a 50% chance of collapsing to and a 50% chance of collapsing to
  • 46. Entanglement How can we reach an entangled state ? Easy !
  • 47. Teleportation Quantum teleportation is the process by which an unknown qbit state is transferred from one location to another by means of two other entangled qbits You can transfer qbit states (cut & paste) but you cannot clone them (copy & paste) This comes from the No-cloning theorem The teleportation is not faster-than-light, because some classical information must be sent during the protocol
  • 54. Further learning goals Deutsch-Jozsa algorithm and Simon's periodicity problem Former yields oracle separation between EQP(1) and P(2) , later between BQP(3) and BPP(4) Shor's algorithm and Grover's algorithm Quantum cryptographic key exchange and no cloning theorem How qbits, gates, and measurement are actually implemented Quantum error correction Quantum programming language design (QISkit, Q#, ...) (1) : The class of decision problems solvable by a quantum computer which outputs the correct answer with probability 1 and runs in polynomial time (2) : The class of decision problems solvable by a deterministic Turing machine in polynomial time (3) : The class of decision problems solvable by a quantum computer in polynomial time, with an error probability of at most 1/3 for all instances (4) : The class of decision problems solvable by a probabilistic Turing machine in polynomial time with an error probability bounded away from 1/3 for all instances
  • 55. Further reading Nielsen, Michael A.; Chuang, Isaac L. (2010). Quantum Computation and Quantum Information (2nd ed.). Cambridge: Cambridge University Press. ISBN 978-1-107-00217-3. Preskill, John (2018). Quantum Computing in the NISQ era and beyond. arXiv:1801.00862v3 Fingerhuth, Mark; Babej, Tomáš; Wittek, Peter (2018). Open source software in quantum computing. arXiv:1812.09167v1