27
Quantum Computation Michael A. Nielsen University of Queensland 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.

Quantum Computation - worldcolleges.info · Models of quantum computation There are many models of quantum computation. Historically, the first was the quantum Turing machine, based

  • Upload
    others

  • View
    12

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Quantum Computation - worldcolleges.info · Models of quantum computation There are many models of quantum computation. Historically, the first was the quantum Turing machine, based

Quantum Computation

Michael A. Nielsen

University of Queensland

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: Quantum Computation - worldcolleges.info · Models of quantum computation There are many models of quantum computation. Historically, the first was the quantum Turing machine, based

What does it mean to compute?

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

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

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

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

Violation of strong C-T thesis!Might it be that such a computer can solve some problemsfaster than a probabilistic Turing machine?

Candidate universal computer: quantum computer

Page 3: Quantum Computation - worldcolleges.info · Models of quantum computation There are many models of quantum computation. Historically, the first was the quantum Turing machine, based

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: Quantum Computation - worldcolleges.info · Models of quantum computation There are many models of quantum computation. Historically, the first was the quantum Turing machine, based

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: Quantum Computation - worldcolleges.info · Models of quantum computation There are many models of quantum computation. Historically, the first was the quantum Turing machine, based

Quantum circuit model

Quantum

Unit: qubit1. Prepare n-qubit input in

the computational basis.2. Unitary 1- and 2-qubit

quantum logic gates3. Readout partial information

about qubits

1 2, ,..., nx x xClassical

Unit: bit

1. Prepare n-bit input

2. 1- and 2-bit logic gates

3. Readout value of bits

External control by a classical computer.

Page 6: Quantum Computation - worldcolleges.info · Models of quantum computation There are many models of quantum computation. Historically, the first was the quantum Turing machine, based

Single-qubit quantum logic gatesPauli gates

0 1 0 1 0X ; Y ; Z

1 0 0 0 1i

i−

= = = −

Hadamard gate

H

+ − = = = −

10 1 0 1 1 10 ; 1 ;

1 122 2H H H

Phase gateZP

= =0 0 ; 1 1P P i

P P =1 00

P i

=

2P Z=

Page 7: Quantum Computation - worldcolleges.info · Models of quantum computation There are many models of quantum computation. Historically, the first was the quantum Turing machine, based

Controlled-not gateCNOT isthe casewhen U=X

c cControl

0100100000100001

Ut ct⊕Target

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

Page 8: Quantum Computation - worldcolleges.info · Models of quantum computation There are many models of quantum computation. Historically, the first was the quantum Turing machine, based

Toffoli gate

Control qubit 1 1c1c

tTarget qubit

Control qubit 22c 2c

21 cct ⋅⊕

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: Quantum Computation - worldcolleges.info · Models of quantum computation There are many models of quantum computation. Historically, the first was the quantum Turing machine, based

How to compute classical functions on quantum computers

Use the quantum analogue of classical reversiblecomputation.

The quantum NAND The quantum fanout

xx

yx x

x1⊕ ⋅x y

y

1 0

Quantum circuitClassical circuit

x ( )f xf fU

x ( )f x

0 m⊗xg

Page 10: Quantum Computation - worldcolleges.info · Models of quantum computation There are many models of quantum computation. Historically, the first was the quantum Turing machine, based

Removing garbage on quantum computers

0 m⊗

( )f xfU

x

z ( )z f x⊕

†fU

x

0 m⊗

xg

Canonical form: x z x ( )z f x→ ⊕

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: Quantum Computation - worldcolleges.info · Models of quantum computation There are many models of quantum computation. Historically, the first was the quantum Turing machine, based

Example: Deutsch’s problem{ } { }Given a computing a function 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)f f we need only use the black box for Quantumly once!( ) f •

Classical black box

f

x x

z ( )z f x⊕

Quantum black box

fU

x x

z ( )z f x⊕

Page 12: Quantum Computation - worldcolleges.info · Models of quantum computation There are many models of quantum computation. Historically, the first was the quantum Turing machine, based

Putting information in the phase

xfU

0 12−

( ) 0 :f x =

( ) ( )0 1 0 1x x− → −

( ) 1 :f x =

( ) ( ) ( )0 1 1 0 0 1x x x− → − = − −

( ) ( ) ( )( )0 1 1 0 1f xx x− → − −

( ) ( )1 f xx x→ −

Page 13: Quantum Computation - worldcolleges.info · Models of quantum computation There are many models of quantum computation. Historically, the first was the quantum Turing machine, based

Quantum algorithm for Deutsch’s problem

0 0 1→ +

( ) ( )(0) (1)1 0 1 1f f→ − + −

( ) ( ) ( ) ( )(0) (1)1 0 1 + 1 0 1f f→ − + − −

Quantum parallelism

H0

0 12− fU

H

( ) ( ) ( ) ( )(0) (1) (0) (1)1 1 0 + 1 1 1f f f f = − + − − − −

Research problem: What makes quantum computerspowerful?

constant all amplitude in 0 .f ⇒

balanced all amplitude in 1 .f ⇒

Page 14: Quantum Computation - worldcolleges.info · Models of quantum computation There are many models of quantum computation. Historically, the first was the quantum Turing machine, based

Universality in the quantum circuit model

Classically, any function f(x) can be computed using justnand and fanout; we say those operations are universalfor classical computation.Suppose U is an arbitrary unitary transformation onn qubits.Then U can be composed from controlled-not gatesand single-qubit quantum gates.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: Quantum Computation - worldcolleges.info · Models of quantum computation There are many models of quantum computation. Historically, the first was the quantum Turing machine, based

Summary of the quantum circuit model An -bit string, , representing an instance of some pInp robu : m.t len x

is a number to be fExamp actoe: .l redx

0 , where is some computablInit e fuial 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 fixed subset of the qubits is measured in the

computational 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 first 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: Quantum Computation - worldcolleges.info · Models of quantum computation There are many models of quantum computation. Historically, the first was the quantum Turing machine, based

Quantum complexity classesHow 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: Quantum Computation - worldcolleges.info · Models of quantum computation There are many models of quantum computation. Historically, the first was the quantum Turing machine, based

When will quantum computers be built?

Page 18: Quantum Computation - worldcolleges.info · Models of quantum computation There are many models of quantum computation. Historically, the first was the quantum Turing machine, based

Alternate models for quantum computationStandard 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: Quantum Computation - worldcolleges.info · Models of quantum computation There are many models of quantum computation. Historically, the first was the quantum Turing machine, based

Overview: Alternate models for quantum computation

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!

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: Quantum Computation - worldcolleges.info · Models of quantum computation There are many models of quantum computation. Historically, the first was the quantum Turing machine, based

Overview: Alternate models for quantum computation

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)!

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: Quantum Computation - worldcolleges.info · Models of quantum computation There are many models of quantum computation. Historically, the first was the quantum Turing machine, based

Can we build a programmable quantum computer?

ψ ψ

U Ufixedarray

U

,UP ψ

1

1

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

No-programming theor

gonal programs ,..

e

. .

:

,

m n

n

U U

U UChallenge exercise: Prove the no-programming theorem.

Page 22: Quantum Computation - worldcolleges.info · Models of quantum computation There are many models of quantum computation. Historically, the first was the quantum Turing machine, based

A stochastic programmable quantum computer

ψBell

Measurement0,1,2,3j =

U

jσ ψU( ) 00 11

2U I U +≡ ⊗

Page 23: Quantum Computation - worldcolleges.info · Models of quantum computation There are many models of quantum computation. Historically, the first was the quantum Turing machine, based

Why it works

ψBell

Measurement0,1,2,3j =

00 112+

jUσ ψ

jσ ψ

U U( ) 00 11

2U I U +≡ ⊗

Page 24: Quantum Computation - worldcolleges.info · Models of quantum computation There are many models of quantum computation. Historically, the first was the quantum Turing machine, based

How to do single-qubit gates using measurements alone

ψBell

Measurement0,1,2,3j =

00 112+kU

kσUjkσ σ ψUkσU

( ) 00 112k kU I Uσ +≡ ⊗ 1

4With probability , , and the gate succeeds.

j k=

Page 25: Quantum Computation - worldcolleges.info · Models of quantum computation There are many models of quantum computation. Historically, the first was the quantum Turing machine, based

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σ σ

14Successful with probability , otherwise repeat.

( )1Failure probability can be ac loghievr

ed wepet

itit

h .ions

O εε

Page 26: Quantum Computation - worldcolleges.info · Models of quantum computation There are many models of quantum computation. Historically, the first was the quantum Turing machine, based

How to do the controlled-not

Bell

Measurement

( )( )m j klU σ σ σ σ ψ⊗ ⊗

, 0,1,2,3j k =2⊗ψ

lmU

( ) 2Bellmlm lU I Uσ σ ⊗≡ ⊗ ⊗

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

Page 27: Quantum Computation - worldcolleges.info · Models of quantum computation There are many models of quantum computation. Historically, the first was the quantum Turing machine, based

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?