You are on page 1of 29

Both Toffoli and CNOT

need little help to do


universal QC
(following a paper by the
same title by Yaoyun Shi)

Abstract
Well known fact:
{CNOT,S} is universal when S is an irrational
one qubit rotation

Less well known fact:


S really only needs to not square to something
classical

Another less well known fact:


{Toffoli, Hadamard} is universal

The Agenda
Background

Completeness vs. Universality


Kitaev-Solovay Theorem
Another result by Kitaev

Completeness (existence) proofs


Completeness: an explicit construction
Conclusion

Universality
A (real) gate library G is universal if
it can approximate any unitary
(orthogonal) operator if constant inputs
from the computational basis are
allowed
for example, a TOFFOLI gate can
approximate a CNOT gate in this sense

Completeness
A gate library G is complete if
it can approximate any unitary operator
in U(2k) for some k
no extra wires or constant inputs
allowed

Completeness => Universality

Why completeness?
The Kitaev-Solovay Theorem:
Any complete gate library can

efficiently approximate any 1 qubit


unitary operator
specifically, one can get within in
polylog(1/) gates

Another theorem of Kitaev


Suppose:
M is a (real) Hilbert space of dimension >
2
is a unit vector
H SO(M ) is the stabilizer of span()
v O(M ), not an eigenvector of v

Then:

the subgroup generated by H v-1Hv is


dense in SO(M )

The Agenda
Background
Completeness (existence) proofs

CNOTs and Rotations


Eigenvectors & Eigenvalues
Whos Dense

Completeness: an explicit construction


Conclusion

A CNOT and a rotation


Fix an arbitrary one qubit rotation S
about an angle

if / is irrational, we know from general


theory that {CNOT, S} is complete

So, suppose is a rational multiple of


pi

A CNOT and a rotation


Finally, suppose S2 does not have both
0 and 1 as eigenvectors

a theorem of Gottesman-Knill implies that:


for an S failing this condition, any {S, CNOT}
circuit may be efficiently simulated by a
classical computer

thus, such an S is not universal for QC

Then {S, CNOT} is complete.

A sketch of the proof:


Let U be the operator be computed by
S

Apply the Kitaev lemma several times


Q.E.D.

Eigenvectors & Eigenvalues


Calculating Us eigenvalues gives them as

1, 1, ei, e-i
is incommensurable with pi

Let i be the orthonormal eigenvectors


U restricted to span(1, 2) is the identity
U restricted to span(3, 4):=H1 is a rotation
through the angle

Whos Dense
U generates a dense subgroup of H1
Call SO(span(2, 3, 4)) H2
H1 H2 is the stabilizer of span(2)
one CNOT, C1 fixes 1, and moves
span(2)

Whos Dense
The Kitaev lemma applies: {U, C1}
generates a dense subset of H 2

A similar argument shows {U, C1, C2}


generates a dense subset of SO(4)

So, {U, C1, C2} is complete

The Agenda
Background
Completeness (existence) proofs
Completeness: an explicit construction

Barenkos Reduction
the Z gate
Grovers Algorithm

Conclusion

An Explicit Construction
Recall {CNOT, S} is complete
when S2 doesnt have both basis states
as eigenvectors

It is true that {TOFFOLI, S} is


complete

when S doesnt have both basis states


as eigenvectors
a similar proof exists

An Explicit Construction
Additionally, Shi explicitly {TOFFOLI,
S} approximates an arbitrary one
qubit gate

By Barenkos decomposition, this is

sufficient to approximate an arbitrary


unitary matrix

Some preliminaries
Define Ut to be rotation by the angle t
Let S be the one-qubit gate in our library
define by S = U

Let W be the desired one qubit operator


define by W = U

Reduction of the problem


It suffices to approximate
the Z gate
a gate W/2 s.t. W /20k = U/2 0 0k-1

Using these gates and the TOFFOLI,

one may simulate a gate W satisfying


W ( 0k-1) = U 0k-1

The Z Gate
How to use S to flip a sign
Suppose = pi/4
One can use a well known trick:
Z
=
1

This works because: XUpi/41=-Upi/41

The Z Gate
For arbitrary , its more difficult
XU1 could be anywhere relative to
U1

The Z Gate
A similar construction exists, however
U0U1 = a(11-00) + b01 +
c10

swap the basis vectors 11, 00


this is within sqrt(b2+c2) of a sign flip
sqrt(b2+c2) < 1, so do a lot of these

The W /2 Gate
Want: W /20k = U/2 0 0k-1

Idea ?

Prelude to Grovers
Algorithm
Let 0 = 02k
Use S, CNOT, to build a T such that
0T0 is small and positive
define = T0

Let 1 be the vector perpendicular to


0 in the plane spanned by 0 ,

Using Grovers Algorithm


The system begins in the state 00
apply IT
the state = 0

Iteratively reflect about 1 ala


Grover

want: -> cos(/2 )1 + sin(/2 )0


state = 0(cos(/2 )1 + sin(/2 )0)

Using Grovers Algorithm


Apply an appropriately conjugated
2k-cnot to flip the first bit if the
remaining 2k are orthogonal to 0

state = 11cos(/2 ) + 00sin(/2 )

Apply a controlled-T-1 : 11 -> 10


state = (cos(/2 )1 + sin(/2 )0)0

The Agenda
Background
Completeness (existence) proofs
Completeness: an explicit
construction
Conclusion

Conclusion
The CNOT needs only a one qubit rotation
whose square is nonclassical to form a
complete library

The Toffoli can partner with any

nonclassical gate for a complete library

In the second case, we have an explicit


approximation algorithm

Questions?

You might also like