Download College 10: Quantum computing

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Quantum field theory wikipedia , lookup

Bra–ket notation wikipedia , lookup

Quantum dot wikipedia , lookup

Bell test experiments wikipedia , lookup

Wave function wikipedia , lookup

Hydrogen atom wikipedia , lookup

Delayed choice quantum eraser wikipedia , lookup

Coherent states wikipedia , lookup

Identical particles wikipedia , lookup

Path integral formulation wikipedia , lookup

Quantum fiction wikipedia , lookup

Measurement in quantum mechanics wikipedia , lookup

Max Born wikipedia , lookup

Relativistic quantum mechanics wikipedia , lookup

Copenhagen interpretation wikipedia , lookup

Particle in a box wikipedia , lookup

Matter wave wikipedia , lookup

Wave–particle duality wikipedia , lookup

Bohr–Einstein debates wikipedia , lookup

Orchestrated objective reduction wikipedia , lookup

Many-worlds interpretation wikipedia , lookup

History of quantum field theory wikipedia , lookup

Quantum decoherence wikipedia , lookup

Density matrix wikipedia , lookup

Double-slit experiment wikipedia , lookup

Interpretations of quantum mechanics wikipedia , lookup

Quantum machine learning wikipedia , lookup

Quantum electrodynamics wikipedia , lookup

Algorithmic cooling wikipedia , lookup

Quantum computing wikipedia , lookup

Bell's theorem wikipedia , lookup

Theoretical and experimental justification for the Schrödinger equation wikipedia , lookup

Canonical quantization wikipedia , lookup

Hidden variable theory wikipedia , lookup

Quantum group wikipedia , lookup

Quantum entanglement wikipedia , lookup

T-symmetry wikipedia , lookup

EPR paradox wikipedia , lookup

Quantum state wikipedia , lookup

Probability amplitude wikipedia , lookup

Symmetry in quantum mechanics wikipedia , lookup

Quantum key distribution wikipedia , lookup

Quantum teleportation wikipedia , lookup

Transcript
Huygens’ principle
Each point on a wave front becomes a source of a spherical wave.
Double-slit experiment of Young
Christiaan Huygens predicted in 1678 that light behaves as a wave.
Thomas Young showed in 1805 that this is indeed the case.
But if the light is measured at the slits, then it behaves as particles
(photons) that travel in a straight line.
Quantum mechanics
An elementary particle can behave as a wave or as a particle.
Superposition: A particle can simultaneously be in a range of states,
with some probability distribution.
Interaction with an observer causes a particle to assume a single state.
Superposition is represented using complex numbers.
Complex numbers
“ God made natural numbers; all else is the work of man ”
(Leopold Kronecker, 1886)
x
= −1
x
=
x2 = 2
x
√
=
2
R
x 2 = −1
x
= i
C
x +1 = 0
2x
= 1
1
2
Z
Q
A complex number in C is of the form a + bi with a, b ∈ R.
Fundamental theorem of algebra: C is algebraically closed !
Qubits
A qubit (short for quantum bit) is in a superposition
α0 |0i + α1 |1i
with α0 , α1 ∈ C, where |α0 |2 + |α1 |2 = 1.
At interaction with an observer, the qubit takes on the value 0
with probability |α0 |2 , and the value 1 with probability |α1 |2 .
After such an interaction the qubit is no longer in superposition,
but in a single state 0 or 1.
For simplicity we assume that α0 , α1 ∈ R. (They can be negative !)
2-qubits
A system of two qubits has four states:
α00 |00i + α01 |01i + α10 |10i + α11 |11i
2 + α2 + α2 + α2 = 1.
where α00
01
10
11
Two independent qubits α0 |0i + α1 |1i and β0 |0i + β1 |1i
can be described by:
α0 ·β0 |00i + α0 ·β1 |01i + α1 ·β0 |10i + α1 ·β1 |11i
Entanglement of qubits
Example: Consider the 2-qubit
√1
2
|00i +
√1
2
|11i.
When one of the qubits is observed, both qubits assume the same state.
Such a relation between superpositions is called entanglement.
Entanglement can occur at the decay of an elementary particle,
and is preserved when particles are no longer close to each other.
John Bell confirmed this phenomenon experimentally in 1964.
EPR paradox (1935)
Einstein, Podolsky and Rosen formulated the following paradox.
Let two entangled particles travel to different corners of the universe.
How can the superpositions of these particles be instantly related ?
According to relativity theory, nothing travels faster than light.
Measuring one qubit of a 2-qubit
Consider a 2-qubit
α00 |00i + α01 |01i + α10 |10i + α11 |11i
2 + α2 + α2 + α2 = 1.
with α00
01
10
11
If for instance the first of these qubits is measured with outcome 0,
then the resulting superposition of the second qubit is
√
1
(α00 |0i
α200 +α201
+ α01 |1i)
Question
What does a 2 × 2 matrix such as
1 3
−2 1
represent ?
Answer: A linear mapping from R2 to R2 .
It maps base vector
„
1
0
«
to
„
1
−2
«
,
and base vector
„
0
1
«
to
„
3
1
«
.
Matrices
The 2 × 2 matrix
maps base vector
„
1
0
«
to
„
β00 β10
β01 β11
β00
β01
«
,
and base vector
„
0
1
«
to
„
A matrix is a linear mapping:
vector
„
α0
α1
«
is by the matrix mapped to α0
„
β00
β01
«
„
+ α1
β10
β11
In other words,
β00 β10
α0
α0 ·β00 + α1 ·β10
=
β01 β11
α1
α0 ·β01 + α1 ·β11
«
.
β10
β11
«
.
Qubit as a vector
A qubit can be interpreted as a vector of length 1:
|1i
sin Θ
Θ
|0i
cos Θ
Quantum operations
The quantum operation
β00 β10
β01 β11
maps |0i to β00 |0i + β01 |1i, and |1i to β10 |0i + β11 |1i.
This operation maps a qubit α0 |0i + α1 |1i to
(α0 ·β00 + α1 ·β10 ) |0i + (α0 ·β01 + α1 ·β11 ) |1i
Unitary matrices
A matrix is unitary if its columns are orthonormal:
they have length 1 and are orthogonal to each other.
„
β00
β01
β10
β11
«
is unitary if:
β00 ·β10 + β01 ·β11
=
0
2
2
β00
+ β01
=
1
2
2
β10
+ β11
=
1
Unitary matrices
Unitary matrices leave lengths and angles unchanged.
Typical examples are rotations and reflections.
The composition of unitary operations is again a unitary operation.
Quantum operations: example
A quantum operation can be applied to a single qubit
of an entangled pair of qubits.
Example: Consider the entangled 2-qubit
Apply to the first qubit a rotation of
π
8
cos π8
− sin
π
8
cos
sin
√1
2
(|00i + |11i).
(22, 5◦ ):
!
π
8
π
8
The superposition of the 2-qubit then becomes
√1
2
(cos π8 |00i − sin π8 |01i + sin π8 |10i + cos π8 |11i)
Quantum operations: example
√1
2
(cos
π
8
|00i − sin
π
8
|01i + sin
π
8
|10i + cos
π
8
|11i)
Apply to the second qubit a rotation of − π8 :
!
cos π8 sin π8
− sin π8
cos π8
The resulting superposition of the 2-qubit is
(independent from the order in which the rotations are applied):
√1
2
((cos2
π
8
− sin2 π8 ) |00i − 2· sin π8 · cos π8 |01i
+ 2· sin π8 · cos π8 |10i + (cos2
π
8
− sin2 π8 ) |11i)
Parity game
Alice and Bob each get a randomly chosen bit, x and y .
They answer, independent of each other, with a bit, a and b.
Alice and Bob win if
a⊕b = x ∧y
with ⊕ the XOR (i.e., addition modulo 2) and ∧ conjunction.
0⊕0=0
0∧0=0
0⊕1=1
0∧1=0
1⊕0=1
1∧0=0
1⊕1=0
1∧1=1
On a classical computer, an optimal strategy is that Alice and Bob
both always answer 0. They then win with probability 0.75.
Parity game: quantum solution
Alice and Bob each hold a qubit of the entangled 2-qubit
√1
2
(|00i + |11i).
If Alice receives x = 1, she rotates her qubit with
π
8.
If Bob receives y = 1, he rotates his qubit with − π8 .
Finally Alice and Bob each measure their own qubit,
and return the result as answer a and b, respectively.
With this strategy, Alice and Bob win with a probability > 0.8 !!
Parity game: quantum solution
x = y = 0: The superposition is
√1
2
(|00i + |11i).
So a ⊕ b = 0 with probability 1.
x = 1, y = 0: The superposition is
√1
2
(cos π8 |00i − sin π8 |01i + sin π8 |10i + cos π8 |11i).
So a ⊕ b = 0 with probability cos2
π
8
> 0.85.
x = 0, y = 1: Likewise a ⊕ b = 0 with probability cos2
π
8
> 0.85.
Parity game: quantum solution
x = y = 1: The superposition is
√1
2
((cos2
π
8
− sin2 π8 ) |00i − 2· sin π8 · cos π8 |01i
+ 2· sin π8 · cos π8 |10i + (cos2
π
8
− sin2 π8 ) |11i)
So a ⊕ b = 1 with probability (2· sin π8 · cos π8 )2 = sin2
π
4
= 0.5.
Conclusion: On average, Alice and Bob win with probability > 0.8.
Quantum operations
Quantum operations can also be applied to k > 1 qubits at once.
Then the quantum operation is a unitary 2k × 2k -matrix:
each string in {0, 1}k is a base vector.
Example: A unitary matrix
0
β00
B β01
B
@ β02
β03
β10
β11
β12
β13
β20
β21
β22
β23
1
β30
β31 C
C
β32 A
β33
results in the following transformations:
|00i
7→
β00 |00i + β01 |01i + β02 |10i + β03 |11i
|01i
7→
β10 |00i + β11 |01i + β12 |10i + β13 |11i
|10i
7→
β20 |00i + β21 |01i + β22 |10i + β23 |11i
|11i
7→
β30 |00i + β31 |01i + β32 |10i + β33 |11i
Quantum gates: NOT
Since quantum operations are unitary (and so invertible),
quantum gates always have an equal number of inputs and outputs.
NOT:
0 1
1 0
This gate transposes α0 |0i + α1 |1i into α1 |0i + α0 |1i.
Quantum gates: Controlled NOT
Quantum operations can not copy a qubit,
because this isn’t invertible, and so not unitary.

CNOT:
1
 0

 0
0
0
1
0
0
0
0
0
1

0
0 

1 
0
|00i
|01i
|10i
|11i
7→
7→
7→
7→
|00i
|01i
|11i
|10i
The CNOT gate can be represented as |xy i 7→ |x(x ⊕ y )i
(with ⊕ the XOR, i.e., addition modulo 2).
With CNOT, x can be copied, if we take care that initially y is |0i.
y is some kind of working memory.
Quantum gates: Hadamard
Hadamard:
√1
2
1
1
1 −1
This transformation carries both |0i and |1i over to a superposition
in which the outcomes 0 and 1 are equally likely.
Quantum circuits
CNOT
Hadamard
|xi
|xi
|y i
|x ⊕ y i
H
Superdense coding
Instead of two classical bits b1 , b2 , Alice can send one qubit to Bob.
Alice holds the first and Bob the second qubit
of an entangled 2-qubit √12 (|00i + |11i).
If b1 = 1, then Alice performs
If b2 = 1, then Alice performs
„
1
0
0
−1
„
0
1
1
0
«
«
on her qubit.
on her qubit.
Alice sends her qubit to Bob, who performs:
I
CNOT on the 2-qubit; and next
I
Hadamard on the qubit of Alice.
Finally Bob measures both qubits, which have values b1 and b2 .
Superdense coding
Starting point is
√1
2
(|00i + |11i).
Pauli-Z
NOT
CNOT
0
„
1
0
0
−1
«
„
, b1 = 1
Alice on 1st qubit
0
1
1
0
«
, b2 = 1
Alice on 1st qubit
1
B 0
B
@ 0
0
0
1
0
0
0
0
0
1
Hadamard
1
0
0 C
C
1 A
0
Bob on 2-qubit
√1
2
„
1
1
1
−1
«
Bob on 1st qubit
00
1
√
2
(|00i + |11i)
1
√
2
(|00i + |11i)
√1
2
(|00i + |10i)
|00i
01
1
√
2
(|00i + |11i)
1
√
2
(|10i + |01i)
√1
2
(|11i + |01i)
|01i
10
√1
2
(|00i − |11i)
1
√
2
(|00i − |11i)
√1
2
(|00i − |10i)
|10i
11
√1
2
(|00i − |11i)
1
√
2
(|10i − |01i)
√1
2
(|11i − |01i)
−|11i