Professional Documents
Culture Documents
Charles H.Bennett
IBM Research
7
9
9
1
Gilles Brassard
Universit
e de Montr
eal
on Computing
on quantum
computing)
of Quantum Computing
Ethan Bernstein
Microsoft Corporation
Umesh Vazirani
UC Berkeley
12 December 1996
Abstract
Recently
a sequence
a great
on quantum
computation following
are more
powerful
than classical probabilistic computers. Following Shors result that factoring and the
natural to ask whether allof NP can be effi ciently solved inquantum polynomial time.
u
q
Inthis
paper, we address
n/2
chosen uniformly
with probability
ona quantum
at random,
1,the class
NP
coNP
chosen
uniformly
at
r
random,
cannot be
with probability
a
1,
solved
the class
onaNP
quantum
n/3
).The former
oracle
on
a quantum computer
O(2
n/2
intime
).
1
Microsoft Way, Redmond, WA 980526399,
nserc
and
Qu ebecs fcar.
e de Montr
eal, C.P.
of
Introduction
Quantum
exciting
computational
new area
foun-dations
of
that
both
complexity
touches
theoretical
is
upon
an
the
computer
science
and quantum
eighties,
Feynman
on a
require
In the early
time;
he
quantum
defined
general
computation:
appear to
overhead
that
the
computer.
quantum
is
model
that
quantum
of
this
is
to design
out
pointed
clas-sical computer
simulation
exponential
simulated
[12]
simulations
straightforward
mechanics
physics
Deutsch
of
[9]
quantum
Turing
machine.
an effi cient
this by proving
that
quan-
equivalent
to quantum
are
Turing
machines.
The
computational
Turing machines
by
several
Deutsch
exploit
researchers.
and
some
power
(QTMs)
Jozsa
Early
[11]
inherently
of
quantum
showed
quantum
how
by
to
mechanical
features
conj
of
unction
Berthiaume
Their
QTMs.
subse-quent
with
and Brassard
the existence
computational problems
we
require
classical
to produce
machine
results
by
which there
can
that QTMs
time with
in
of oracles under
in polynomial
results,
cer-tainty,
solve
whereas
probabilistic
if
Turing
answer
the correct
are
with
on some
computational
problems
to the
relative
same
are
oracle,
hand, these
in
and
analogue
class BQP
there-fore
sense.
The
the
quantum
[5]. Bernstein
and Vazirani
that
conclusively
that
BQP
6=
[4]
thus
prove
BPP
to
BPP
le
to conclus
ively the
provmajor
e tha t
BQP
6= BPP
without
resolving
open
problem
P
?
= PSPACE.
that
BQP
They also
6=
gave
BPP
are more
powerful
than
quantum
polynomial-time
Tu ring ma chin
probabilistic
es are mo Turing
re po
werful
machines),
than
by
proving
the
existence
are
by
restricted
to running
probabilistic
as
BPP is regarded
problems)
this
powerful
than
of
an
even
cannot
are
simulated
run
machines
allowed
to
Simons
paper
important
new
that
Turing
1/3
Simon
[16]
by
proving
the
to which BQP
by
for
also
probabilistic
n/2
steps.
introduced
In
an
technique
can
in
oracle relative
be
that
more
computers
way.
evidence
addition,
evidence
inherently
classical
model-independent
existence
machines
steps. Since
(computational
provided
computers
this
in
error
quantum
strengthened
o(log n)
in
languages
computable
problems
probability
an
of
(languages)
machines
(for
all
with
error
inputs).
probability
Using
bounded
standard
by
boosting
techniques,
error
can
then be made
small in k by iterating
the algorithm
the
exponentially
probability
answer.
is
BQP
(languages)
that
the
can
quantum
Turing
bounded
by
1/3
as
is the
with
prove
problems
error
probability
see
[4] for
error
paper
in Section 4 of this
can be made
of BQP machines
decision
all inputs)
(for
We
case
of
machines
formal definition.
that,
class
probability
exponentially
small.
2
which
was
remarkable
Shor
one
result
logarithm
problems
have
presumed
BQP;
i.e.
been well-studied,
forms
cryptography.
by
polynomial-time
problems
intractability
much of modern
in
subsequently
gave
algorithms
discrete
ingredients
proved
[15]. Shor
quantum
the
of
the
and
two
and their
basis
of
In view
of
to ask whether NP
can quantum
to ask
computers
whether
solve
NP
NPcomplete
In this
paper, we
address
this question
an oracle
chosen
uniformly
that relative
at
uniformly
to
on a quantum
n/2).
permutation
random,
with
1,
We also show
oracle chosen
probability
the
uniforml
class NP
y at
ran
coNP
dom,cannot
wit h proba
be solved
bilityon
1
n/3
the
a quantum
class NP
Turing
co N
machine
Pca nnot
in time
be solv
o(2
ed on
)
The
a
former bound is tight since recent work
of
Grover
NP
[13] shows
relative
computer
in
to
any
time
how to accept
O(2
the class
on a quantum
oracle
n/2).
See
[7]
for
is the
relevance
We should emphasize
of
no
black-box
uniquely
approach
problems
oracle
that they do
that NP BQP.
NPcomplete
these
by
quantum- mechanical
is that there
to
solving
using
features
some
of
QTMs. That
was a
this
real possibility
is
black-box
to solving
approach
as
in square-root
problems
NPcomplete
much time
as
is
required classically.
One
way to
think
special subroutine
costs
unit
no
has
that
any
bits
residual
can
calls
pose a
leaves
as a
only
of QTMs,
information
achieved
any
the
open
whether
deterministic
subroutine
to show
answer
the
BQP
more
computation
so
remain.
However,
general
machine
can
subroutines
any
BQP
this
question
be used
how
because
with different
for deterministic
classical
and
answer,
paths
input
is
otherwise
since
oracle
the subroutine
easily
an
In the context
time
subroutine
of
machine
of
as a
paper
can
is
be
into
modified
tidy
tape configuration
and the single
subroutines,
BQP
answer.
can
this
these
The result
tidy
used
safely
us to
show
as
that
also justifies
we now
Since
be
allows
= BQP.
BQP
whose
almost entirely of
containing
bit
machines
BQP
machine
BQP
that
give.
it is not
Actually
even
clear whether
BQP
NP
BPPAct ;
ually
i.e. it
it is
is not
unclear
ev en
whether
clear wh
nondeterminism
eth er BQP
together
BPP
with
quantum
Vazi-ranis
They
games
[1] with
evidence
does not
Fourier
even
a time
unrelativized
stated
an
can
and
above.
oracle, the
be solved in
be solved by Arthur-Merlin
bound of
cannot
o(logn)
on top
They conjecture
sampling
to
problem
that nondeterminism
help).
than
that relative
sampling
to simulate
In fact, Bernstein
is stronger
proved
Fourier
is suffi cient
machines.
[4] result
actually
recursive
randomness
Turing
even
(thus giving
of probabilism
be
polynomial-time hierarchy.
solved
in the
Machines
In this
assume
Turing
section
without
machine
and
the
loss of generality
alphabet
(for
tape)
we
next,
shall
that
each
track
denotes
the
or
the
track
blank or
symbol.
tap e)is
Initially
{0,1,#},
all
where
tapes
# are
d enotes
blank
the
except
blank
that
symbol.
the input tape contains the actual
input surrounded
by blanks. We shall
use
to
denote {0,1}.
In the classical setting,
described informally
some
Boolean
function
arguments,
arbitrary
an
as a device
A
at
oracle
may
be
for evaluating
unit
cost
on
per
,
evaluation.
on ar bitrThis
ar y argu
allows
ments,
to formulate
at unit cost
questions
pe re
such
as
if A
Turing
languages)
Turing
were
machine,
could
ma-chines?
be effi ciently
computed
In the quantum
by
(or
by
setting,
an equivalent
we
quantum
oracle
define
can be
question
sectionand
provided
An oracle
for
single
may
rules
QTM has
block
of
oracle
allow
are
blank except
non-blank
this
region
and
executed
Oracle
a post-query state qa
whenever
no-op
directly
change.
to
can be written
grow
string
in the form
b , and denotes
a pre-query
A
query
enters
machine
post-query
query
into
have
state
passes
no
with
is nonempty,
xb where
is
the
string is empty,
the
and
QTMs
machine
query
and
the
If the
the
If the
occurs,
In
machine
it from fragmenting
blocks.
pre-query state.
cells.
to
state
we
query tape
special
this
quantum
paper.
well-formed
in
be composedwhich
(or track)
do
machines
bounded-error
can
Turing machines
Turing
we
appropriatelywhich
asked, provided
it
concatenation.
xb w he re
In that
x
case,
the result
of
call
on
oracle
A is that
that
internal
c ase,
control
the resul
passes
t o fto
a call
the on
post-query
while the contents
of the
query
state
tape changes
denotes
from
|x
the
exclusive-or
bi t o |x
Except
for the
the
de notes
(addition
(b
A(x)
modulo
)i,where
2)
tape
exquery
clusive -or
(adand
ditioninternal
during the
is supplied
state
will
query.
in initial
be
|A(x)i,
If the target
bit
do
|bi
n
as
just
in
final
classical
final
oracle
sta
machine.
te will bConversely,
e |A(x) i,just
if the
as in
target
a clasbit
sica
is
already
orac le in
mastate
chi ne.
|A(x)i,
C onverse
calling
ly,
the
if the
oracle
target
will
b
reset
it tody
|0i.
ability
tocalling
uncompute
it
is
alrea
in sThis
tate |A(x
)i,
the ora
reset
willwill
often
it to |0
i.
This ability
to un
co
prove
essential
to allow
proper
mput
interference
e will
among
computation
the
above
machines yields
ourselves
that
in particular
the post-query
of
to
easy to see
oracle
Turing
to machines
other respects,
as
definition
paths
are
pre-query
state.
well-formed
in
evolving unitarily
power
The
their
from
superpo-sition
oracle
of quantum
machines
ability
follow
of computation
quantum
from the
to
ability
computers
comes
coherent
paths. Similarly
derive
great
power
to perform superpositions
of
when the
query tape
x |x0i,
where
query
x tape
are is
complex
in state coeffi
|0i
cients,
is in state |0i
corresponding
|x 0i,w heto
re an
x arbitrary
queries
with
a constant
an
to thisarbitrary
In
case,
4
This
generality
allowing
superposition of
restriction
and
superposition
it
can
can
only machines
be made
be
verified
that make
of
bit
quer
without
loss
syntactically
sure
of
by
they do not
4
after the
query,
the
query
Px
x |x A(x)i.
It is
Px
superposition.
ditional
phase
For example,
inversion
used
the
con-
in Grovers
can
algorithm
be
achieved
by performing
2.
queries
superposition
with
th e tar
(|0i
get
bit
|1i)/
b inth enon
It clas
can
readily be
an
verified that
query tape
in state
leaves
the
machine
with the state,
qu ery ta
including
pe in sta the
te x
query
lea
unchanged
state
= 0, and
if A(x)
unchanged
while
It is often convenient
on
as
(x, i)
This
as
defining
interpreting
is
th
the i
to think of
easily
the oracle
any
interpreted
as a
n
an
by
the pair
as a binary
value
string
function.
length-preserving
function,
n
length-pr
eservi ngon
fun
ctio
0 as
a permutation
n,ac
Henceforth,
ts fo r
when
each no
n
mutation
shall
use
onA(x)
length-preserving
oracle
function
accomplished
answer on
pairing
oracle is
phase
a Boolean
standard
permutation
length-preserving
introducing
= 1.
factor 1 if A(x)
oracle
entire
ves
tape,
th
A rather
confusion
0 as
amay
per arise,
to
denote
function
than
we
the
associated
the Boolean
with
function
us
Let
define
sets of languages
at least 2/3 by
running
time
on
bound
by
whose
T(n).
This
time applies
to each
on
average.
just
the
or not
upon
might depend
be
the
is
the oracle
a BQP-machine
while
Note:
oracle
The
for
above
an
but
not
as
with probability
bounded
might
oracle QTM M
whether
BQP-machine
is
input,
that
Athus
accepted
some
the running
individual
Notice
BQTime(T(n))
the
perform
suggests
that
broader
perform
hiding
a quantum
function
of the present
unitary
will
paper,
computers
to
transformations
definition,
which
may
be
more
operations
computational
of
Boolean
of quantum
general
useful in other
unitary
purposes
ability
definition
arbitrary
learning
information
general,
have
been
theory
against
non-Boolean
considered
[8]
classical
and
in
for
queries
[14].
Most broadly,
defined
as a device
unitary
fixed
current
a quantum
oracle
may
be
transformation
to
the
contents
a fixed u
|zi
nitar
of
y trthe
ansfor
query
ma tion
tape,
U
o
replacing
the c urr
it en
by U|zi.
t contents
Such an
|zi
oracle
of the
U
query
must tap
be
defined
repla cing
on ita
Hilbert
countably
space,
as
such
...,
infinite-dimensional
that
spanned
by
the
he
|11i,
bina
|000i,
ry basis
vecwhere
tors |
i,|0i,
denotes
|1i,|00i
the,|01i,|1
empty
still
yields
unitary
oracle
well-formed
Naturally,
use
these oracles
superpositions
of
can map
outputs,
evolution
Turing
even
and
for
machines.
inputs onto
vice
versa,
be length-preserving.
in the
tape,
one
might
require
make
that
in
inite
U|zi have
chang amplitude
es in the tape,
zeroone
onmall
ight
but
requir
finitely
e th
at
many
U|zi
basis
ha ve
vectors.
am plitude
(One
zero
could
on even
all but
insist
uniform
and effective
version of the
on
above
restriction.)
may
involution,
oracle call
the
Another
same
can
= I,so
proper
that
the
a further
be undone by
interference
may
on
be crucial to
in
to evaluating
corresponds
an
unitary
of
considered
transformation
of
call
an
case
special
one
restriction
U is that it be
allow
which
natural
upon
wish to impose
this
paper,
classical
Nondeterminism
The
their
power
computational
ability
expo-nentially
tempting
parallelism
However,
to maintain
large
to try
to
there
of
QTMs
to
use
lies
and compute
superpositions.
simulate
are
on QTMs
this
in
with
It
is
exponential
non-determinism.
inherent
constraints
on
scope
the
imposed
by
5
mechanics.
this
of
parallelism,
the
formalism
In this section,
quantum
of
we
are
which
some
explore
of these constraints.
To
not
see
up
speed
exponentially,
distinguishing
from
an
unknown string
oracle,
y of
never
and
probability
to
query
one query
quantum
respecting
be
single
yes
distinct
random
n(i.e. A(y)
on an empty
its
success
yes on a nonempty
computer
a success
can do no
nbit
probability
better
do
at
strings
1/2
after
computer
of
= 0)
better,
can
while
unitary,
nonempty
to maximize
and k/2
problem
of answering
random, giving
the
oracle (x A(x)
known length
answer
x 6=y
seek
oracle. A classical
than
but
containing
computer
can
consider
the empty
oracle
interference
quadratically
quantum
why
NP problems
and,
oracle,
in
all
computation
computation
with
paths
empty
querying
they
would
quantum
would
for
of 2
collapse
the
the
of
an
in
n
classical
This yields
same as
the
parallelism.
the state
with
and th
an
vector
query
computer.
whether
location
1/2
the
However,
between
after k interactions
by asking
probability
classical
Our goal
the separation
paths,
a success
algorithm
the nonempty
had found
A direct
equally-weighted
the superposition
query
as
exactly
oracle?
computation
on
string
different
evolve
an empty
analog
start
superposition
locations
with
the state
vector
an empty
oracle, and
|k i
|k (y)i after
ankem
interactions
pty oracl
e
oracle
statenonempty
vect
or | atk (an
y)i
unknown
after
location
y.
with
Starting
uniform
superposition
|0 i
it is easily
seen that
1
2
Xx
|xi,
n
one
query
a unitary
is maximized by
|1 (y)i
evolution to
Xx
(1)
x,y
|xi
= |0
|yi.
n
with |0 i
we obtain
a success
1
|h0 |1 (y)i|
5
There
is
exponential
and
the fact
probability
domains.
case,
superficial
parallelism
that
The difference
of
quantum-mechanical
therefore
paths
it is
superposition
at each
between
quantum
computations
exponentially
is that
this
computation
yield
large
in the probabilistic
case,
it
is possible
step to accurately
for
several
destructively,
to keep track
system.
to interfere
necessary
4/21
similarity
random choicesone
computational
over
agrees
probability
probabilistic
distributions
the computational
sequence
in
state
and
of the entire
simulate
the
approximately
times
four
interaction
the
is
same
oracle.
as
The
difference
in the
the state
way
only
one
the
only
a modest
overwhelmingly
vector
after
oracle is almost
after interaction
after
concentrate
still
a nonempty
with
than
allowed
parallelism gives
but
to fail because
likely
better
we are
an empty
with
of producing
query
would
large
be
to
query,
which cannot
after
achieved
one query,
be increased
strategies
(called
Grover
[13])
is
change
the
same
about
to
the phase
difference,
sign
as
but
the
perform
unitary
separation
that separation
queries? Various
be imagined,
inversion
amplitude
can
by subsequent
can
oracle-independent
as to
the maximum
how best
good
average
one
by
an
transformation
so
into
an
difference
leaving the
term with
terms
but
magnitude
approximately
threefold
larger
Subsequent
phase-inverting
interactions
with
cause
conversions,
the
distance
pha se-tobetween
am plitude
|0 i
and
conver
|k (y)i
sio ns,caus
to grow
N /2.
2
n
linearly
the di sta
with
nce k,
be tween
approximately
|0 i
a nd as
2k/ to
| k (y)i
N/2.
row
when
link
ear
ly
growth
as 2k/
the
w
he
of
proof
success
n
k
4k
/2
probability,
for
small
k. The
is essentially
can
with
Thisk,
results
approximate
in a quadratic
as
approximately
more
gain
success
NP-type
algorithm
probability
algorithms,
no quantum
optimal:
when
questions
to
attempting
formulated
in
factor
to
compared
classical
answer
relative
to
random oracle.
3.1
Lower Bounds
on Quantum
Search
We
will
measure
calculating
sometimes
the
find
accuracy
of
the Euclidean
it
convenient
to
simulation
by
distance
between
target
the
and
The following
theorem
the simulation
worse
are
samples
If two
two
Definition
unit-length
distance
distance
superpositions
from distributions
total variation
which
are
gives
within
3.2 Let |i i
be the superposition
on input x at
time i.
We denote by
of squared
of configurations
of M which
magnitudes
are
of
oracle
configurations
on string y.
of Mwhich
We refer to
magnitude
of
y in |i
qy
in |i i
querying
the
(|i i) as the
i.
at most 4.
qy
of(|i
M i) the sum
query
that
is at most 4 times
within Euclidean
observ-ing the
accuracy
3.1
superpositions
then
superpositions
Theorem
of M
simulation
Theorem
Let
be the
of
M
on3.3
input
x|i
ati
time
i.
super
Let >0.
Let F [0,T 1]
be a set of
P(i,y)F
qy
LetT F [0,T 1]
6
and |i
7
P(i,y)F
Px
as (
Px
1/2
x |)
|x
x |xi
P
Px
distributions
Now
Px
|xi is defined
Px
(|i i)
Dand D
suppose
the
F is modified
(these
answers
oracle).
Let |
(th ese answe
is
|D(x) D
answer to
to
(x)|.
some
each
query
arbitrary
(i,y)
fixed ai,y
with
i
be thed
time
superposition
r
snee
not bi
ec
onsistent
M
input Let
x |with
Ai
modified
anon
oracle).
i
beoracle
the time
su
stated above. Then ||T i
|
operator of M
F then
Ai (y)
=then
A(y).
Let
that
if (i,y)
F
A i
time
Fevolution
then Ai
operator
as
time evolution
Let Ai denote
of
wi
i| .
A.
an
an oracle
= ai,y
such
and if (i,y)
Ui be the
unitary
an d
if (i,y
of M
Ai
Let |i i
be
the superposition of M
We define
caused
by
replacing
on input x
Le
at
ttime
| ii
b
i.
|Ei i
to be the
the
error
th
in the i
oracle
step
with
Ai
Then
= Ui |i i U|i
|Ei i
i.
So we have
T1
= U|T1
|T i
= UT
= =
|T1 i
|ET1 i
Xi=0
UT
U1
Since
|0 i
Xi=0
Ui
UT1
are
all of the Ui
|Ei i.
unitary,
|UT1
= ||Ei i|.
|Ei i|
The
sum
of squared
magnitudes
of all of
P(i,y)F
the
Ei
therefore
UT1
is
however,
U
at most
at most
Ui |Ei is
qy
to
equal
(|i i)
and
P(i,y )F
In the worst
could interfere
case,
the
constructively;
the
squared
magnitude
their
sum is
i
|E i
is co uld
inter fer of
econ
structive
T times
magnitudes,
i.e.
the
2.
sum
Therefore
of their
squared
||T i |
i|
3.4
Corollary
alphabet
. For
such that
time
Let
y Ay
6=
(x)
isuperposition
an
be
let Ay
= A(x).
of M
over
oracle
be
any
oracle
Let |i i
be the
on
input
and
(y)
|i i
be the time i
superposition of M
cardinality at
most
on input
???|T x. Then
for
2T
every
Ay
such that
>
0, there is
???
(y)
i
|T i
a set
S of
PT1
qy
PT1
such
that
Therefore
PT1
Py
card(S)
If
i=0
PT1
2
2T
i=0
S then
by
qy
(|i i)
2T
Clearly
PT1
qy
i=0
Theorem
3.3
(|i i) <
2T
???|i
???
(y)
i
|i i
any
n/2),
Proof.
Recall
can
oracle
from
be
length-preserving
mean
Section
thought
of
function:
this
is
we
what
= {y :x A(x)
is
contained
in
= {y
:x A (x)
=
y}.belo
Clearly,
language
mean
w by this
A(x).Let
LA
A.
n/2).
Let T(n) = o(2
We show
NP
any
an
that
as
that for
bounded-error
8
A
oracle
QTM M
T(n),
with
accept
the language
taken
over
LA
in time at most
.
.
1, M
countable
oracle A
number
does
not
The probability
thethe
choice
of LA
a
la nguage
length-preserving
are a
running
probability
is
random
of QTMs
and the
intersection
conclude
that
error
bounded
countable
1
events
probability
we
of
enough
the
so
1,
no
with
oracle
way
not
over
equal
function
over
us
fix
pick
to
M gives
the
wrong
every
answers on inputs
n.
in
n large
The
probability
of
is
n.
an
arbitrary
from strings
alphabet
oracles
can
LA
inputs of length
Let
n/2
20
length
taken
that
input 1
accepts
= o(2 n/2), we
probability
of
probability
QTM
that T(n)
answer on
of
number
length-preserving
of lengths
Let
other than
C denote
the
set
n
of
consistent
thisC darbitrary
alp habwith
et . Let
enot e the
function.
Letes
A consiste
be the set
in
C such
set of o racl
nt of
witoracles
hth is
arbit
rar
n
that
1 on.
hasLet
noAinverse
fun cti
(does
not belong
to
ch
LA t).
hat
If the
1
has
oracle
noanswers
inve rs e
to
(does
length
n ot
n
bel
strings
ong
are
chosen
probability
uniformly
that the
at random,
oracle
then the
is in A is at least
1/4. This
has
1/ 4.
noThis
inverse
is beca
is (
(for
the
probability
that
1
oracle
is in A is
a t lea
is because
n suffi ciently
use
the
)
which
prob abis
ilit
at
y th
least
at 11/4
n
2
a unique
has
inverse.
As
above,
the
probability
that
randomly
oracle
s in C
su ch
th at
has
a ua
nique
inv ers
chosen
As abo
oracle is in B is (
1
n
which is at
least 1/e.
Given
an oracle
answer on any
A in A, we
single input,
can
modify its
say y, to
and
therefore
its a nsweget
ron
an any
oraclesingle
Ay
in
in pu
B.t,
Wesay
will
show
that
acceptance
for
most
probability
choices
of M
on input
almost
equal to the acceptance
ac cepta nce
Ay
of M
must
on
reject
Therefore
input 1
easy to
and
with probability
is
uniformly
length
n, and
Ay
must
other strings.
accept
is
that M fails
on
and LAy
more
carefully,
input
random function
is
probability
show
y,
the
inB
of
an
arbitrary
on
strings of
function
on
all
Let Ay
and z 6=
Ay (z)
= A(z). By
that
the
2(n)
superpo-sition
input
Theorem
Ay
of M
3.1
we
can
most 1/13
that M
each
arec
single
cor
tly deanswer
cide s
mapped
to at least (2
different
oracles
correctly
Af
the
is at
should
we can
either LA
for
which
at least 2/3,
on
Using
should is
accept
at m
fails to accept
oracle
th
probabilities
decides
So, ewhether
ach ora 1
cle
A LA
correctly
changing
hich
M
Ay
that
conclude
So,
1/13.
on input
with probability
strings
the
and M
conclude
1 and M
reject 1
LAy
norm at most
1 with probability
n
on input
has
on input
Ay
difference
of M
between
difference
3.4
Corollary
there
is a
S of
at most 338T
a nd
set
z 6=
y Ay
such
= 1n
or
can,
by
A fo r
w
n
of A to
be
whether
1 1 LA
card(S))
n1
decide whether 1
LAf
Moreover,
rectly
any particular
de cid e wAf
hethe
B
ris
1 the
image
LAf
under this
mapping
of at most
1
oracles
A A,
since where
it
given
one of
2
since wher
ethe
it
Therefore,
which
answers
the
now answers
n
it must have
answers.
1
other possible
of 1
oracles
Bible
for
other in
poss
number
M
fails must
at least
1/2 in
the
T herefor
e,t he be
number
of or acles
number
for which
of M
oracles
fai ls
in
must
A for
be
which
at leas
M
tsucceeds.
1/2 the
So,
number
calling
of oracles
a the number
in A
of oracles
in A for
9
fail for at least
Therefore
n
1 LA
a + 1/2(card(A)
M fails to correctly
with probability
a) oracles.
decide whether
at least (1/2)P[A]
1/8.
It is
easy to conclude
in
withto
probability
ItLA
is easy
c
membership
uniformly
that M decides
0 for a
chosen oracle A.
Note:
isolate
Theorem
the
parallelism
rest
of
3.3
and
constraints
its
Corollary
on
3.4
quantum
the
proof
of
the
above
theorem
is
similar
to standard
in spirit
to separate
random
oracle
be
For
to
example,
to
used
random
oracle
probabilistic
n
[3]
can
to
used
techniques
relative
techniques
can
machine
these
show
no
A,
that,
classical
recognize
LAssica
in
no cla
time
probabili
o(2 stic
)
However,
machine quantum
c an recognize
ma-chines
LA
2
recognize
this language
2
in time
O(
[13].
This
quadratically
), using
explains
Grovers
why
of the standard
modification
can
faster,
algorithm
substantial
technique
was
next
The
to
relative
result
about
random
NP
coNP
permutation
oracle
NP
requires
re lativ
a more
e t oa
subtle
ra argument;
ndom per mut
ideally
ation
we
would
like
to
asserting that
which
1(1 n
apply
the total
Theorem
query
) is probed
this is precisely
what
3.3
after
magnitude
with
is small. However,
we are
trying to prove in
any
n/3
),
probability
contain NP coNP.
Proof.
For
any
permutation
oracle
A, let
1(y)
=of.
{y For
: first
anbit
yof
permuta
A
tio
is 1}nora
Clearly,
cl
this
language
A,let
LA
= {yis: contained in (NP
is 1}.
A.
n/3).
coNP)
Let language
T(n) = o(2is cont We
show in
that
Cle
arly,
this
ained
(N
LA
Pro
for co
any
N
bounded-error
P)
running
in
LA
at
time
1,M
probability
The probability
the intersection
we
oracle A
of
1
events
conclude
bounded
error
enough
so
with
that
countable
of
1,
no
probability
accepts
QTM
= o(2 n/3), we
that T(n)
number
oracle
Then, since
T(n),
is taken
not ac over
cep tthe
the choice
lan guage
of
are a countable
probability
most
QTM
LA
a random permutation
there
oracle
n/3
100
can
pick
LA
in
n large
arge
the en
probability
oug hso t hat
that
T (n)
Mgives
the
wrong
answer on
way
input 1
of
length
not
equal
taken
over
the
to
answers on inputs
n.
The
random
the
random
defining
of
probability
choices
of
method
following
on
permutations
is
the
n.
every
of
{0, 1}
n:
let
definin
x0 ,x1
g
,...xT+1
random be
p ermutatio
a sequence
ns
ofon
strings
{0,
chosen
random
be a
in
at
uniformly
sequenc
{0, 1}
.,
n.
Pick
of strings
0
uniformly
c hosen unif at
ormly
random
a t ra ndo
among
m in
= 1n
{0,1
permutations
}
i1
i.e.
, where
i (xi )
i1 (xi ).
{0,1}
Ai
and
is
xi),
i (xi1 )
random
n.
sequence
of
and Ai (y)
Denote
{0,1}
each
on {0,1}
Consider
oracles
Clearly
permutation
Let i
= i (y)
permutation
= Aj (y)
if
if
n.
y
(y)
{0,1}
if y
by |i i
the time i
superposition
of
AT(n)
10
on
input
n,
and
by
i
the
time
superposition
of M
con-struction,
with
the string 1
is
AT(n)1
probability
a member
.
.
on input
exactly
of exactly
and LAT(n)1
???|T(n)
By
1/2,
one
of
We
?? ]
T(n)
will
show
1/50.
Here
that
i
???|T
(n) |
E[
the expectation
the
random
1/50.
choice ???|T(n)
of the
???
is i
taken
|
over
i
oracles.
By
???
T(n)
3/4.
bound,
i
|
i 2/25]
???
???|T(n)
Markovs
???|T(n)
P[
T(n)
that
i |
i
???| T(n )
if
acceptance
M
AT(n)1
probability
differ
of
AT(n)
and
< 1/3,
by at most 8/25
and
n
AT(n)1
input. Therefore
give the
with probability
the probability
same answers on
AT(n)
or
and
input
belongs
exactly
one
LAT(n)1
of the
two languages
=1/2. Therefore,
bit of xT(n) ]
bit ofwith
xT( n) probability
that
LAT(n)
to
and
6= first
we can conclude
at least
1/4, either
AT(n)
input
or M
n
AT(n)1
are chosen
same
from the
conclude that M
n
on input
gives the
wrong answer on
each of AT(n)
Since
AT(n)
and AT(n)1
distribution,
gives the
we can
wrong answer
To bound E[
???|T (n
T(n)
we
are
show
that
???],
each close to
To define
|T(n) i and
a certain
superposition |
T(n) i
this superposition,
run
on
input
d efin
t his suporacle
erpo sition,
run
M on
input
1T o
with
ae
different
on each
step:
on
step
i,use Ai
to
answer
by |i i,to
the
superposition
thatDresults.
antime
sw eri
t he
oracle
qu eries.
en ote
the set of time-string
Consider
xj )
:
j
pairs S
= {(i,
that
{(i,xjthe
):
oracle
j i queries
0 i
inTthe
}. computation
described
M
AT(n)+1
above
and
differ only
those
on
query
think of xj
AT(n)
and
magnitude
we may
of
n,
of
any
since for j
as having
been
pair
i,
randomly
has already
been written
sum
of the
on the
query
magnitudes
time-string
for
pairs in S.Then
E[]
card(S)/2
!/2
T(n)
+1
T(n)
Then by Theorem
???|i
???|i
???
???
T(n)
3.3,
|T(n) i and
i .
E[
2/T(n)]
= E[]
T(n)
q2T(n)]
2
But E[/
E[
q2T(n)E[/
E[]
/2T(n)]. Therefore
q2T(n)]
s2T(n)
q2T(n)E[
2/2T(n)]
T(n)
2
100
< 1/100.
???|i
???]
Therefore E[
|T(n) i
???|i
T(n)
and E[
???]
< 1/100.
???|T(n)
that E[
It
???]
T(n)
follows
< 1/100
E[]
???]
???|i
i E[]
i
|
<1/50.
11
Finally, it is
easy to conclude
decides membership
in LA
that M
with probability
Note: In view
we
know
that
improved
constant
Theorem
of
algorithm
1/2
3.5
[13],
in the
cannot
be
evidence
that
statement
may
the
state-ment
of Grovers
the
constant
1/3
no
in the
It
(albeit
not
its
current
proof)
with
1/2
to
Corollary
3.7
permutation
Relative
exists
Given
the oracle,
one-way
quantum
this
computed
effi ciently
deterministic
exponential
with
yet
machine,
time to invert
there
permutation
permutation
even
,.
random
it
can
be
classical
requires
even on a quantum
machine.
Proof.
an
Given
time
o(2
is just
n/3)
can
on a quantum
permutation
be computed
of Theorem
proof
that
when A is
Turing machine, it
this
3.6. It follows
happens
uniformly
from that
with probability
random
Using
permutation
in
as easy on
toadecide
qua ntu
LA m
as
Turi
defined
ng ma
in
chin
the
proof
oracle
arbitrary
1
a Bounded-Error
QTM
as a Subroutine
The notion of
invocation
subroutine
provides
abstrac-tion
in
computation.
context
the
making
Before
in the context of
call
classical
thought
through.
For
computes
on
useful
of
subtle considerations
subroutine
oracle
and
this abstraction
are some
subroutine
or an
simple
the
example,
the
of
that must be
an
the
if
function
f,
we
invo-cation of the
x as
string
magically
ensure
cleans
calculations,
these
on
leaves
just
This is because
on a
different
all traces of
and
values of
scratch-work
prevent
up
superposition
x would
the
result
tape,
and
computational
cannot, in
general,
case
be erased
where
deterministically,
so
subroutine
post-facto.
can
be
into
f(x)
safe
to get
design
erases
compute
BQP
storage,
rid
However, in the
machine,
and
the
of
case
scratch
the correct
copy
f(x)
uncompute
paths
answer
f (x)
work
situation
some
storage
computational
by
of the
lead to
[2]
more
is
of the machine
into
the
uncompute
that f is computed
the
the
copy
f(x),
then
special
computed
easy to
is
scratch-worksimply
f(x)
In the
effi ciently
it reversibly
it
that
is not
Since erasing
if
we
and
then
paths
with
we will not
12
reverse
the first
phase
We show, nonetheless,
of the computation.
that
if
we
boost
the
suc-cess
probability
copying
into
f(x)
has
and the
BQP
BQP
careful
such
as
f(x). Since
be safely used
us to
4.13
the
same
that
and
outline
we
machinery
show
that
procedure
4.14.
as
in
The
the
have to be much
and present
lemmas and
section.
can
of the boosting
case, except
more
answer
in Theorems
follows
classical
The correctness
proof
this allows
= BQP.
our definition
is proved
and
uncomputing
as
storage
safe
The
theorems
main
of the relevant
new
contribution
proofs of Theorems
purpose,
the statements
section is in the
borrow the
may
therefore
in this
4.13 and
wish to skip
4.1
Some Programming
we present
Inthis subsection,
several
by
with
an identified
6= q0
where
to within 2
Definition
{L,R}
is
can be approximated
any
configuration
when QTM M is
the
QTM
run
superposition
in state
with input
contains
x,at
only
qf
of
If
time T
final
any
configurations
and at
superposition
contains
then M halts
x.
The superposition
called
the final
input
x.
no
final configuration,
superposition
of M
polynomial-time
4.2
on every
well-behaved if it halts
a final
QTM
input
is
is
x halts
x.
is
on all input
called
strings in
cell
run on
QTM
Definition
on input
of M at time T is
always
same
the
start
that
a QTM
cell,
cell. If this
we
call
the
QTM stationary.
We will
say
state qf
M is in normal
moves
state q0
the
13
Definition 4.3 A QTM M
=(,Q,)
is in
normal form if
Theorem
strings
(qf ,)
4.4
If f
to strings
deter-ministic
= |i|q0
a function
is
can
which
polynomial
x,
then
stationary,
input
there
normal
x, produces
is
form
be computed
a one-to-one
on the
polynomial-time,
given
and whose
on the length
of
in deterministic
can be
polynomial
time,
on
the
length
of
polynomial-time,
QTM which
given
x,
x.
in
length
Q TM which
x; f(x),
output
mapping
of
i|Ri
then
stationary,
input
running
x,
there
is
normal
produces
only
form
output
time depends
only
on the length
of
4.5
Definition
machine
x.
multi-track
with k tracks is
with
a special
the input
by
We specify
the string
specifying
(separated by
track
Turing
Turing machine
;),
on
each
and optionally by
tracks.
Lemma 4.6
(,Q,)
QTM
behaves
any
Given
any set
and
= (
,Q,
exactly
as
QTM
there
such
M while
is
that
leaving
its
,,
any
QTM M
= (1
:[1,k]
[1,k],
)
k
thereQ,)
is a QTM
an d pe
Mrmutatio
((1)
n
(k)
:
[1,k ] ,Q,
[1,k],
behaves exactly
as
M except
Lemma
are permuted
according to .
4.8 If M1 and M2
are
with the
well-behaved,
same
alphabet,
4.9
Lemma
well-behaved,
Suppose
normal
that
form QTM M
x;k with
> 0, the
such that
machine M
on its first
k iterations
is
is a normal
k
on input
runs
M for
track.
14
Definition
the
same
reverses
then
we
say
have
that
M2
x on which
holds: for
any
cx
and
input
superposition of M1
input
M1 halts, let
on input x.Then
the superposition
halts
M2
on
with final
superposition
configuration
consisting
cx
of
reverse
to
M1
entirely
versa.
on all inputs,
form QTM M
then there is a
that
reverses
the
a factor
of 5.
4.12
Definition
Let
M be
has alphabet
accepts
of the
rejects
#)
say
that M
1
in the last track
cell. Otherwise
we say
that
x.
A QTM accepts
stationary,
{#, 0,1}. We
if it halts with
start
the language
L (
with
A QT
probability
Macc ep ts
p the
if M
langua
accepts
ge L
with
prob-ability
at least
p every
string
and rejects
with
probability
at strin
least
a bility
at lea
st p every
gp
x every
L
string
and r
x
( with
#)prob
ejects
L.
We define
the p
class
ability
at
least
eve
BQP
(bounded-error
str ing
time)
as
accepted
set
the
with
the
2/3 by
any
QTM.
class
of languages
are
which
2/3
More
accepted
QTM whose
input of length
4.2
languages
are
some
by
we
generally,
as
BQTime(T(n))
which
some
polynomial
probability
polynomial-time
define
of
quantum
set
the
with probability
running
nis bounded
on
time
by T(n).
Calls
Theorem
language
L with
The
orem
probability
4.13 If2/3
QTM
in time
M a T(n)
ccep ts
>lan,
ngwith
uag
T(n)
time-constructible,
for T(n)
any
e
L with
pro ba bility 2/3then
in time
0, there
with
with
is
probability
QTM
which
accepts
in time
which
cT(n)
accepts
where
Proof.
Let
M be
>
>
n
stationary
of
is
n.
QTM which
machine
that
runs
independent
copies
the majority
input
x,
will
some
have
Pi
superposition
of strings
final
i |xi i
Pi
If
PiA
on separate
we
call
has
correct
|x the
ii.
If we
A the set of i
for which xi
call
answer
A t he
M(x)
set then
of i
for which
|i |xi
running
On any
copies
2/3. Now
of its input
P iA
times
will
produce
Pi1
nseparate
ik |xi1 i
c opi
|xik
es of
i. it
ning
M
i1o
,...,ik
Then
|xi1 i|xik
correct
Pi1
the
probability
i
such that
answer
of
seeing
M(x) is the
,...,
sum
of
|i1
th
majo r
it y
ha|
ve
|ik
c orrec
| such
t anthat
sw er
the
M(x)
majority
is theof
sum
i1 of |i1
ik lie
|
in
|
A.
ik But
|
this is just like taking the majority
k independent
at least
of
2/3
some constant
the probability
heads.
with probability
there
Therefore
of seeing
of
is
= blog 1/,
the correct
answer
will be at least 1
.
So,
we
will build
machine
to
carry out
15
n = T(|x|).
1. Compute
x spaced
non other
3.Loop k times
and then steps
tracks.
ona machine
that
runs
construct
We
building
the
desired
QTM
by
Steps
computable
depend
functions
only
can carry
normal
Theorem
1, 2, and
on
4.4,
depend only
whose
output
easily
length
them
form
4 require
out
QTMs,
whose
on k and the
using
x, we
well-behaved,
constructed
running
length of
times
x.
using
also
we
So,
complete
the
to
constructing
QTM
by
proof
run
the
given
to the right
none square
integers k and
on its
we
work track
If
we
add
apply
4.9,
Lemma
we
can
build
n squares
then
applying
this
a machine to return
to
the
a QTM
k and
after
4.9 gives
M on each of the
we can dovetail
with k and
which
machine
Lemma
runs
moves
n to the
more
times
none step
left.
of
on
the output
tape
reverse
in
every
recover
the
final
will exactly
differs in different
the output
from
in
configuration
superposition,
same
then saving
configurations,
will prevent
these
when
interfering
configurations
the
machine
is
is the
superposition,
same
in most
of the final
then
us
Theorem
contained
4.14
the
If
language
is
in
The
the
orem
class 4.14
BQTime(T(n)),
If the langu age
with
L
T(n)
is c onta
> in
n and
ed in
T(n)
the ctime-constructible,
las s BQTi me( T(n)),
then
for
withany
T (n)
>
>n 0, there is
accepts L with
1
and haswthe
hi
following
h
a ccepts
of length
probability
property.
L
with
n,
cT(n), where
and produces
When
runs
is
final
QTM M
run on
for time
which
input
bounded
polynomial
superposition
by
in log1/,
in which
|xi|L(x)i,
with L(x)
1
if
magnitude
L and 0
at least 1
Proof. Let M
= (,Q,)
be
a stationary,
16
to
According
expense
can
of
polynomial
slowdown
assume
running
that
1
/2
accepts
on every
we can construct
M, copying
simple
back
clean
copy
is
two-step
right
track.
construct
easily
while
normal
is
n,we
with
the desired M
the
by
another
reverse
of M
with
writing
Using
of
input.
accomplished
machine
the
which
answer to
the
factor
probability
Then
by
at
4.13,
Theorem
the
Lemma
form
answer
4.11,
QTM
on a
we
R
can
which
reverses
M. Finally,
desired
we can construct
Lemmas
stationary
machines
QTM
M and
use
with appropriate
by
around
of
the
dovetailing
the
copying
the
desired
machine.
see
To
properties,
length
n.
that
this
consider
has
running M
run
will first
on
M on
input
of
producing
Py
some
final superposition
of configurations
Py
y |yi of M
on input x.Then
or
|yi
1
inthe
of M
extra
configura- tion
and
|i
If
run
=
we
it will write
a0
on
this
superposition
Py
y |yi|by i.
were
to
Py
run
instead
i
superposition
|yi|by i.If|we
on
the
Py
wer
= e to inste
y |yi|M(x)i
ad run M
we
Py
the
would
superp
afterosition
T(n) steps
|
have the superposition
|yi|M(x)i w
consisting
wou ld afteentirely
rT (n)of
st
eps
the have
final the
configuration
su pe rpos
i
Clearly, h|
is real,
1
n
and
with
since
outpu
Mt
has
x ;M(x).
success Clearly,
probability
h|
at least
is real
1
1
i
and
/2,
h| M
.
sinceatthe
since
has suc
ces Therefore,
s proba bility
lea
tion
with output
x; M(x).
time
1
evolution
/2
h
of
| M
is unitary
and refor
hence
. The
preserves
since the
ti
the
me inner
superposition
product
of
product,
must
the
final
an
have
inner
which must
is realhave
and an
at
with |xi|M(x)i
least
inner prod
1
uc t
/2.
with|x
Therei|M(x)i
fore, which
the
squared
is rea l
a
nd
magnitude
at lea st
in
1
the
/2.
final
T superposition
hereof M
the final configuration
must
be
at
least
output
with
(1
/2)
of
x; M(x)
1
BQP
=BQP.
Acknowledgement
References
games:
hierarchy
of complexity
classes
Journal
1988,
pp. 254276.
[2] Bennett,
reversibility
C.H., Logical
computation,
pp. 525532.
6= NP
1
probability
[4]
Bernstein,
E.
complexity
6= coNP
6=
SIAM
NP
to a
Journal
6=
on
pp. 96113.
17
Quantum
of
and
Vazirani,
theory
U.,
Proceedings
of
on
of
the 25th
Annual
ACM Symposium
Computing, 1993,
Theory
pp. 1120.
Proceedings
on
Structure
of
7th
IEEE
in
Complexity
Theory, 1992,
pp. 132137.
[6]
Berthiaume,
A.
and
Brassard,
G.,
quantum
Oracle
Journal
computing
of
Modern
Optics,
vol. 41,
no.
12, December
1994,
pp. 25212535.
[7] Boyer,
Tapp,
A.,
M., Brassard,
Tight
bounds
on
quantum
searching,
Proceedings
on
pp. 3643.
InterJournal
Systems
at http
:
//interj
ournal
org.
[8] Bshouty, N. and Jackson,
DNF
over
Deutsch,
Church-Turing
quantum
computer
D.,
Proceedings
of 8th
pp. 118127.
theory,
Quantum
principle
a quan-
on Computational
J., Learning
and
Proceedings
the
of
the
universal
the
Royal
[10] Deutsch,
networks,
D., Quantum
Deutsch,
solution
computational
pp. 97117.
of
pp. 7390.
D. and
Jozsa,
problems
by
R.,
Rapid
quantum
computation,
Proceedings
Feynman,
computers
pp. 553558.
R., Simulating
International
physics
with
Journal
of
Theoretical
Physics,
vol.
21,
nos.
6/7,
1982,
pp.
467488.
[13] Grover, L., A fast quantum
mechanical
28th
Annual
ACM
Machta,
quantum
J.,
oracle
Symposium
on
pp. 212219.
Phase
information
computing
in
Physics
Department,
University
of Massachusetts
at Amherst
Shor,
P. W., Algorithms
computation:
Discrete
quantum
for
logarithms
and
factoring,
Proceedings
on
Symposium
of
the
35th
Foundations
Annual
of
IEEE
Computer
Science,
1994,
pp. 124134.
the
power
Proceedings
computation
of quantum
the
of
35th
Annual
IEEE
on
Symposium
Foundations
of
pp. 116123.
circuit
complexity,
sium
on
Science, 1993,
Foundations
pp. 352361.
18
of
Computer