Michael A. Nielsen University of Queensland Quantum Computation Goals: 1.To explain the quantum...

27
Michael A. Nielsen University of Queensland Quantum Computation Goals: 1. To explain the quantum circuit model of computation. 2. To explain Deutsch’s algorithm. 3. To explain an alternate model of quantum computation based upon measurement.

Transcript of Michael A. Nielsen University of Queensland Quantum Computation Goals: 1.To explain the quantum...

Page 1: Michael A. Nielsen University of Queensland Quantum Computation Goals: 1.To explain the quantum circuit model of computation. 2.To explain Deutschs algorithm.

Michael A. Nielsen

University of Queensland

Quantum Computation

Goals: 1. To explain the quantum circuit model of

computation.2. To explain Deutsch’s algorithm.3. To explain an alternate model of quantum

computation based upon measurement.

Page 2: Michael A. Nielsen University of Queensland Quantum Computation Goals: 1.To explain the quantum circuit model of computation. 2.To explain Deutschs algorithm.

Quantum mechanics seems to be very hard to simulateon a classical computer.

Deutsch (1985): Can we justify C-T thesis using laws of physics?

Candidate universal computer: quantum computer

Might it be that computers exploiting quantum mechanicsare not efficiently simulatable on a Turing machine?

Might it be that such a computer can solve some problemsfaster than a probabilistic Turing machine?

Violation of strong C-T thesis!

What does it mean to compute?

Church-Turing thesis: An algorithmic process orcomputation is what we can do on a Turing machine.

Page 3: Michael A. Nielsen University of Queensland Quantum Computation Goals: 1.To explain the quantum circuit model of computation. 2.To explain Deutschs algorithm.

The Church-Turing-Deutsch principle

Church-Turing-Deutsch principle: Any physical process can be efficiently simulated on a quantum computer.

Research problem: Derive (or refute) the Church-Turing-Deutsch principle, starting from the laws ofphysics.

Page 4: Michael A. Nielsen University of Queensland Quantum Computation Goals: 1.To explain the quantum circuit model of computation. 2.To explain Deutschs algorithm.

Models of quantum computation

There are many models of quantum computation.

Historically, the first was the quantum Turing machine,based on classical Turing machines.

A more convenient model is the quantum circuit model.

The quantum circuit model is mathematically equivalentto the quantum Turing machine model, but, so far,human intuition has worked better in the quantumcircuit model.

There are also many other interesting alternate modelsof quantum computation!

Page 5: Michael A. Nielsen University of Queensland Quantum Computation Goals: 1.To explain the quantum circuit model of computation. 2.To explain Deutschs algorithm.

Quantum circuit model

Classical

Quantum

Unit: bit Unit: qubit

1. Prepare n-bit input1. Prepare n-qubit input

in the computational basis.

2. 1- and 2-bit logic gates

2. Unitary 1- and 2-qubit quantum logic gates

3. Readout value of bits

3. Readout partial information about qubits

1 2, ,..., nx x x

External control by a classical computer.

Page 6: Michael A. Nielsen University of Queensland Quantum Computation Goals: 1.To explain the quantum circuit model of computation. 2.To explain Deutschs algorithm.

Single-qubit quantum logic gates

Hadamard gate

10 1 0 1 1 10 ; 1 ;

1 122 2H H H

H

Phase gate

P

0 0 ; 1 1P P i

0 1 0 1 0X ; Y ; Z

1 0 0 0 1

i

i

Pauli gates

P P Z=1 0

0P

i

2P Z

Page 7: Michael A. Nielsen University of Queensland Quantum Computation Goals: 1.To explain the quantum circuit model of computation. 2.To explain Deutschs algorithm.

Controlled-not gatec

t ct

cControl

Target

0100100000100001

U

Controlled-phase gate

Z , ( 1) ,ctc t c t

1 0Z

0 1

Exercise: Show that HZH = X.

Z

Z

=

Symmetry makes the controlled-phase gate more natural for implementation!

X=

ZH H

CNOT isthe casewhen U=X

Page 8: Michael A. Nielsen University of Queensland Quantum Computation Goals: 1.To explain the quantum circuit model of computation. 2.To explain Deutschs algorithm.

Toffoli gate

1c

t 21 cct

1cControl qubit 1

Target qubit

Control qubit 22c 2c

Worked Exercise: Show that all permutation matrices are unitary. Use this to show that any classical reversible gate has a corresponding unitary quantum gate.

Cf. the classical case: it is not possible to build up aToffoli gate from reversible one- and two-bit gates.

Challenge exercise: Show that the Toffoli gate can bebuilt up from controlled-not and single-qubit gates.

Page 9: Michael A. Nielsen University of Queensland Quantum Computation Goals: 1.To explain the quantum circuit model of computation. 2.To explain Deutschs algorithm.

Use the quantum analogue of classical reversiblecomputation.

The quantum NAND

x

1

y

1 x y

x

y

How to compute classical functions on quantum computers

x

0 x

x

The quantum fanout

Classical circuit

x ( )f xf

x

0m

xg

( )f x

fU

Quantum circuit

Page 10: Michael A. Nielsen University of Queensland Quantum Computation Goals: 1.To explain the quantum circuit model of computation. 2.To explain Deutschs algorithm.

0m

( )f xfU

x

z

†fU

xg

( )z f x

x

0m

Canonical f orm: x z x ( )z f x

Removing garbage on quantum computers

Example: x z x parity( )z x

Given an “easy to compute” classical function, there isa routine procedure we can go through to translatethe classical circuit into a quantum circuit computingthe canonical form.

Page 11: Michael A. Nielsen University of Queensland Quantum Computation Goals: 1.To explain the quantum circuit model of computation. 2.To explain Deutschs algorithm.

Example: Deutsch’s problem

Given a computing a f unction black : 0 box ,1 0,1f

Our task is to determine wheth constaner is ort bala nced?f

we need to evaClassically boluate (0) and .th (1)ff

we need only use the black box f or Quantumly once!( ) f

Classical black box

x

z ( )z f x

x

f

x

z ( )z f x

x

fU

Quantum black box

Page 12: Michael A. Nielsen University of Queensland Quantum Computation Goals: 1.To explain the quantum circuit model of computation. 2.To explain Deutschs algorithm.

( ) 0 :f x

0 1 0 1x x

( ) 1:f x

0 1 1 0 0 1x x x

( )0 1 1 0 1

f xx x

Putting information in the phase

x

0 1

2

fU

( )1

f xx x

Page 13: Michael A. Nielsen University of Queensland Quantum Computation Goals: 1.To explain the quantum circuit model of computation. 2.To explain Deutschs algorithm.

Quantum algorithm for Deutsch’s problem

0

0 1

2

fUH H

0 0 1

(0) (1)1 0 1 1

ff

(0) (1)1 0 1 + 1 0 1

ff

(0) (1) (0) (1)1 1 0 + 1 1 1

ff ff

constant all amplitude in 0 .f

balanced all amplitude in 1 .f

Quantum parallelism

Research problem: What makes quantum computerspowerful?

Page 14: Michael A. Nielsen University of Queensland Quantum Computation Goals: 1.To explain the quantum circuit model of computation. 2.To explain Deutschs algorithm.

Universality in the quantum circuit model

Suppose U is an arbitrary unitary transformation onn qubits.

Then U can be composed from controlled-not gatesand single-qubit quantum gates.

Classically, any function f(x) can be computed using justnand and fanout; we say those operations are universal for classical computation.

Just as in the classical case, a counting argument canbe used to show that there are unitaries U that takeexponentially many gates to implement.Research problem: Explicitly construct a

class Un ofunitary operations taking exponentially many gatesto implement.

Page 15: Michael A. Nielsen University of Queensland Quantum Computation Goals: 1.To explain the quantum circuit model of computation. 2.To explain Deutschs algorithm.

Summary of the quantum circuit model

An -bit string, , representing an instance of some pI np robu : m.t len x

is a number to be fExamp actoe: .l redx

0 , where is some computablI nit e f uial state nction f .: om

m n

A circuit of single-qubit and controlled-not gates isapplied to the qubits. The sequence of gates applied is underthe control of an external classical computer, and may dependupon the

Circ

pr

uit:

oblem instance .x

Some fi xed subset of the qubits is measured in thecomputational basis at the end of the computation, and theoutput constitutes the solution to the p

Reado

rob

ut:

lem.

For a decision problem, just the fi rst qubit would beread out, to indicate "yes" oExamp

r "le:

no".

QP: The class of decision problems soluble by a quantum circuitof polynomial size, with polynomial classical overhead.

Page 16: Michael A. Nielsen University of Queensland Quantum Computation Goals: 1.To explain the quantum circuit model of computation. 2.To explain Deutschs algorithm.

Quantum complexity classes

How does QP compare with P?

BQP: The class of decision problems for which there is a polynomial quantum circuit which outputs the correct answer (“yes” or “no”) with probability at least ¾.

BPP: The analogous classical complexity class.

Research problem: Prove that BQP is strictly larger than BPP.

Research problem: What is the relationship of BQP to NP?

What is known: BPP BQP PSPACE

Page 17: Michael A. Nielsen University of Queensland Quantum Computation Goals: 1.To explain the quantum circuit model of computation. 2.To explain Deutschs algorithm.

When will quantum computers be built?

Page 18: Michael A. Nielsen University of Queensland Quantum Computation Goals: 1.To explain the quantum circuit model of computation. 2.To explain Deutschs algorithm.

Alternate models for quantum computation

Standard model: prepare a computational basis state, then do a sequence of one- and two-qubit unitary gates,then measure in the computational basis.

Research problem: Find alternate models of quantumcomputation.

Research problem: Study the relative power of thealternate models. Can we find one that is physicallyrealistic and more powerful than the standard model?

Research problem: Even if the alternate modelsare no more powerful than the standard model, canwe use them to stimulate new approaches toimplementations, to error-correction, to algorithms(“high-level programming languages”), or to quantumcomputational complexity?

Page 19: Michael A. Nielsen University of Queensland Quantum Computation Goals: 1.To explain the quantum circuit model of computation. 2.To explain Deutschs algorithm.

Topological quantum computer: One creates pairs of“quasiparticles” in a lattice, moves those pairs around thelattice, and then brings the pair together to annihilate. This results in a unitary operation being implementedon the state of the lattice, an operation that depends only on the topology of the path traversed by the quasiparticles!

Overview: Alternate models for quantum computation

Quantum computation via entanglement and single-qubit measurements: One first creates a particular,fixed entangled state of a large lattice of qubits. Thecomputation is then performed by doing a sequence ofsingle-qubit measurements.

Page 20: Michael A. Nielsen University of Queensland Quantum Computation Goals: 1.To explain the quantum circuit model of computation. 2.To explain Deutschs algorithm.

Quantum computation as equation-solving: It can beshown that quantum computation is actually equivalentto counting the number of solutions to certain setsof quadratic equations (modulo 8)!

Overview: Alternate models for quantum computation

Quantum computation via measurement alone:A quantum computation can be done simply by a sequence of two-qubit measurements. (No unitarydynamics required, except quantum memory!)

Further reading on the last model:

D. W. Leung, http://xxx.lanl.gov/abs/quant-ph/0111122

Page 21: Michael A. Nielsen University of Queensland Quantum Computation Goals: 1.To explain the quantum circuit model of computation. 2.To explain Deutschs algorithm.

Can we build a programmable quantum computer?

U Ufixedarray

U

,UP

1

1

Unitary operators ,...,which are distinct, even up to global phase f actors, require ortho

No-programming theor

gonal programs ,..

e

. .

:

,

m n

n

U U

U U

Challenge exercise: Prove the no-programming theorem.

Page 22: Michael A. Nielsen University of Queensland Quantum Computation Goals: 1.To explain the quantum circuit model of computation. 2.To explain Deutschs algorithm.

A stochastic programmable quantum computer

Bell

Measurement

{U 00 11

2U I U

jU

0,1,2,3j

Page 23: Michael A. Nielsen University of Queensland Quantum Computation Goals: 1.To explain the quantum circuit model of computation. 2.To explain Deutschs algorithm.

Why it works

Bell

Measurement

{00 11

2

jU

0,1,2,3j

UU

00 11

2U I U

j

Page 24: Michael A. Nielsen University of Queensland Quantum Computation Goals: 1.To explain the quantum circuit model of computation. 2.To explain Deutschs algorithm.

How to do single-qubit gates using measurements alone

Bell

Measurement

{00 11

2

jkU

0,1,2,3j

kUkU

00 11

2k kU I U

kU

14With probability , ,

and the gate succeeds.j k

Page 25: Michael A. Nielsen University of Queensland Quantum Computation Goals: 1.To explain the quantum circuit model of computation. 2.To explain Deutschs algorithm.

Coping with failure

Action was , - known unitary erra .orjkU j k †Now attempt to apply the gate ( ) to the

qubit, using a similar procedure based on measurements alone.

jkU U

14Successf ul with probability , otherwise repeat.

1Failure probability can be ac loghievr

ed wepet

itit

h .ions

O

Page 26: Michael A. Nielsen University of Queensland Quantum Computation Goals: 1.To explain the quantum circuit model of computation. 2.To explain Deutschs algorithm.

How to do the controlled-not

Bell

Measurement

{ m j klU

, 0,1,2,3j k

2Bellmlm lU I U

lmU

116With probability , , , and the gate succeeds.j l k m

2

Page 27: Michael A. Nielsen University of Queensland Quantum Computation Goals: 1.To explain the quantum circuit model of computation. 2.To explain Deutschs algorithm.

DiscussionMeasurement is now recognized as a powerful tool in manyschemes for the implementation of quantum computation.

Research problem: Is there a practical variant of this scheme?

Research problem: What sets of measurement are sufficient to do universal quantum computation?

Research problem: Later in the week I will talk about attempts to quantify the “power” of different entangled states. Can a similar quantitative theory of the power of quantum measurements be developed?