Professional Documents
Culture Documents
Quantum Logic and Computing - I: Atulya Kumar Verma Mihir Vahanwala
Quantum Logic and Computing - I: Atulya Kumar Verma Mihir Vahanwala
Autumn 2021
1/29
Motivation Preliminaries Quantum Logic Gates Deutsch-Jozsa Algorithm Next Time
Outline
Motivation
Preliminaries
Deutsch-Jozsa Algorithm
Next Time
2/29
Motivation Preliminaries Quantum Logic Gates Deutsch-Jozsa Algorithm Next Time
Computing
3/29
Motivation Preliminaries Quantum Logic Gates Deutsch-Jozsa Algorithm Next Time
Digital Logic
4/29
Motivation Preliminaries Quantum Logic Gates Deutsch-Jozsa Algorithm Next Time
Quantum Problems
5/29
Motivation Preliminaries Quantum Logic Gates Deutsch-Jozsa Algorithm Next Time
Quantum Solutions
6/29
Motivation Preliminaries Quantum Logic Gates Deutsch-Jozsa Algorithm Next Time
How powerful?
7/29
Motivation Preliminaries Quantum Logic Gates Deutsch-Jozsa Algorithm Next Time
The Qubit
• The classical bit is an abstraction of the two states a
transistor could be in.
α0 , α1 ∈ C, |α0 |2 + |α1 |2 = 1
9/29
Motivation Preliminaries Quantum Logic Gates Deutsch-Jozsa Algorithm Next Time
The System
• The state of a single qubit is a unit vector in C2 . From the
previous slide,
α
|ψi = 0 ; hψ| = α¯0 α¯1 ; hψ|ψi = 1
α1
n
• The state of a system of n qubits is a unit vector in C2 : a
superposition of 2n basis states, each described by n-bit binary
numbers, from |0i to |2n − 1i.
Remark
Although we sometimes represent |ψi = |ψ1 ψ2 i as
|ψ1 i |ψ2 i = |ψ1 i ⊗ |ψ2 i, one must think of n qubits as one
interacting, entangled system, rather than independent
components of the logical circuit. In particular, by measurement,
we mean that we let the entire system collapse into one of its 2n
basis states.
10/29
Motivation Preliminaries Quantum Logic Gates Deutsch-Jozsa Algorithm Next Time
Operations
Remark
The j th column of this matrix describes what superposition the
gate/operation takes the basis state |ji to.
11/29
Motivation Preliminaries Quantum Logic Gates Deutsch-Jozsa Algorithm Next Time
Infinite Information?
12/29
Motivation Preliminaries Quantum Logic Gates Deutsch-Jozsa Algorithm Next Time
No Cloning Theorem
Theorem
Let |σi be any fixed state. It is impossible to transform an
arbitrary state |ψi |σi to |ψi |ψi.
Remark
The proof is elementary and observes that any (unitary!) operator
that attempts to do so can only clone a finite subset of states.
13/29
Motivation Preliminaries Quantum Logic Gates Deutsch-Jozsa Algorithm Next Time
LHS = hσ| hψ| U ∗ U |ϕi |σi = hσ| hψ|ϕi |σi = hσ|σi hψ|ϕi = hψ|ϕi
14/29
Motivation Preliminaries Quantum Logic Gates Deutsch-Jozsa Algorithm Next Time
Introduction
15/29
Motivation Preliminaries Quantum Logic Gates Deutsch-Jozsa Algorithm Next Time
Quantum Circuits
• The circuit is to be read from left to right: this is the
direction of evolution of the system.
• The single lines, or “wires” represent the evolution of qubits.
Double lines are classical channels carrying regular bits.
• Loops, fan-ins, and fan-outs are not allowed for qubits.
• Fan-ins violate reversibility, fan-outs violate the no-cloning
theorem.
Hadamard Gate
17/29
Motivation Preliminaries Quantum Logic Gates Deutsch-Jozsa Algorithm Next Time
1
H ⊗n |ji = √ |0i + (−1)j1 |1i . . . |0i + (−1)jn |1i
2 n
18/29
Motivation Preliminaries Quantum Logic Gates Deutsch-Jozsa Algorithm Next Time
CNOT Gate
•
1 0 0 0
0 1 0 0
UCN =
0
0 0 1
0 0 1 0
• The CNOT gate, along with the set of all single qubit gates,
is universal to build all quantum circuits.
• Classical intuition: the target qubit (unshaded) is flipped only
if the control qubit (bold dot) is set to 1.
19/29
Motivation Preliminaries Quantum Logic Gates Deutsch-Jozsa Algorithm Next Time
Toffoli Gate
• Similar to CNOT: “target” bit is flipped only if the two
“control” bits are set to 1.
• Permutation matrix: basis states |000i through |101i are
mapped to themselves, |110i and |111i are interchanged.
• Can be simulate NAND and fanout for classical logic, and
hence, quantum computers are at least as powerful as classical
counterparts.
20/29
Motivation Preliminaries Quantum Logic Gates Deutsch-Jozsa Algorithm Next Time
Controlled-U Gate
• Let U be any gate that operates on a system of n qubits.
• Define the unitary 2n+1 × 2n+1
I O
Uc =
O U
• This has the effect of taking the basis state |0i |ji to itself,
and |1i |ji to |1i U |ji.
• Classical intuition: generalisation of CNOT: U acts on
“target” qubits only if “control” qubit is 1
Boolean Oracle
• Let f be a Boolean function in n variables. The Boolean
oracle Uf acts on an n + 1 qubit system.
• Its action on the basis states is given by
Uf |xi |y i = |xi |y ⊕ f (x)i
⊕ denotes logical XOR. One can see that this is a
permutation of basis states, hence unitary.
• If y = |0i−|1i
√ , then Uf |xi |y i = (−1)f (x) |xi |y i
2
The Problem
Problem
Bob has a function f : {0, 1}n → {0, 1}, that is either “constant”
or “balanced”: i.e. 0 on exactly an arbitrary half the input, and 1
on the other half. Alice wants to be completely certain which is
the case. How many times does she have to query Bob?
Remark
This is a toy problem, simply to illustrate the quintessential
algorithm that uses superposition and interference. Note that in
the classical case, Alice always needs 2n−1 + 1 queries to be
completely sure. In the quantum case, we show that Alice needs
just one query.
23/29
Motivation Preliminaries Quantum Logic Gates Deutsch-Jozsa Algorithm Next Time
• The system starts in |0i |1i. The initial Hadamard gates take
it to
2Xn −1
√1 |0i − |1i
|ji √
2n j=0 2
• Now, there is something special about the bottom input to
Uf ... 24/29
Motivation Preliminaries Quantum Logic Gates Deutsch-Jozsa Algorithm Next Time
27/29
Motivation Preliminaries Quantum Logic Gates Deutsch-Jozsa Algorithm Next Time
References so far
28/29
Motivation Preliminaries Quantum Logic Gates Deutsch-Jozsa Algorithm Next Time
29/29