Download Lecture 6

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 dot wikipedia , lookup

Copenhagen interpretation wikipedia , lookup

Bohr–Einstein debates wikipedia , lookup

Max Born wikipedia , lookup

Probability amplitude wikipedia , lookup

Density matrix wikipedia , lookup

Quantum fiction wikipedia , lookup

Bell test experiments wikipedia , lookup

Quantum dot cellular automaton wikipedia , lookup

Many-worlds interpretation wikipedia , lookup

Orchestrated objective reduction wikipedia , lookup

History of quantum field theory wikipedia , lookup

Quantum decoherence wikipedia , lookup

Symmetry in quantum mechanics wikipedia , lookup

Measurement in quantum mechanics wikipedia , lookup

Interpretations of quantum mechanics wikipedia , lookup

Quantum group wikipedia , lookup

Quantum entanglement wikipedia , lookup

Quantum machine learning wikipedia , lookup

Bell's theorem wikipedia , lookup

Canonical quantization wikipedia , lookup

Quantum computing wikipedia , lookup

Hidden variable theory wikipedia , lookup

Quantum state wikipedia , lookup

T-symmetry wikipedia , lookup

Algorithmic cooling wikipedia , lookup

EPR paradox wikipedia , lookup

Quantum key distribution wikipedia , lookup

Quantum teleportation wikipedia , lookup

Transcript
Lecture 6
Universal quantum gates
Single qubit + CNOT gates
Single qubit and CNOT gates together can be used to implement an arbitrary twolevel unitary operation on the state space of n qubits.
Suppose U is a two-level unitary matrix which acts non-trivially on the space
spanned by the computational basis states |s> and |t>, where s = s1 … sn and
t = t1 … tn. Let U be non-trivial 2 x 2 unitary submatrix of U.
a

0
0

0
U =
0

0
0

c
0 0 0 0 0 0 b

1 0 0 0 0 0 0
0 1 0 0 0 0 0

0 0 1 0 0 0 0
0 0 0 1 0 0 0

0 0 0 0 1 0 0
0 0 0 0 0 1 0

0 0 0 0 0 0 d 
a b 
U =

c
d


Goal: to construct a circuit implementing U from single qubit and CNOT gates.
Use Gray codes: A Gray code connecting binary numbers s and t is a sequence of binary
numbers, starting with s and concluding with t, such that adjacent members of the list
differ in one bit.
Example: s=101001, t=110011.
Basic idea of the quantum circuit implementing U
Example: consider the U gate on the previous page.
Question for the class: what logical operation does gate U perform?
U
|000> →
|001> →
|010> →
|011> →
|100> →
|101> →
|110> →
|111> →
U
|000> →
|001> →
|010> →
|011> →
|100> →
|101> →
|110> →
|111> →
a|000>+c|111>
|001>
|010>
|011>
|100>
|101>
|110>
b|000>+d|111>
Since the U acts non-trivially only on states |000> and |111>, the Gray codes is
A
0
0
0
1
B
0
0
1
1
C
0
1
1
1
The circuit to implement the gate U is:
REVIEW: Controlled operations: "If A is true, then do B"
Controlled-NOT (CNOT) gate
More on controlled operations
Suppose U is an arbitrary single qubit unitary operation. A controlled-U operation is a
two-qubit operation with a control qubit and a target qubit. If control qubit is set,
then U is applied to the target qubit.
Example: controlled-NOT gate is controlled-X gate.
The circuit to implement the gate U is:
Class exercise: work out what this circuit does gate by gate.
Hint: you only need to keep track on four states listed in the Gray code as the
remaining four states are not affected at all.
Measurement
Principle of deferred measurement: Measurements can always be moved
from an intermediate stage of a quantum circuit to the end of the circuit.
Principle of implicit measurement: Without loss of generality, any
unterminated quantum wires (qubits which are not yet measured) at the end
of the quantum circuit may be assumed to be measured.
In order for a measurement to be reversible, it must reveal no information about
the quantum system being measured!
Summary of the quantum circuit model of computation
• Classical resources. For example, many schemes for quantum error-correction
involve classical computations to maximize efficiency.
• A suitable state space. For a quantum circuit operating on n qubits the state
space is 2n dimensional Hilbert space. Computational basis: |x1 … xn>, where
xi = 0, 1.
• Ability to prepare states in the computational basis. (Any computational
basis state can be prepared in at most n steps.)
• Ability to perform quantum gates. The set of Hadamard + phase + CNOT
+π/8 gates is universal.
• Ability to perform measurements in the computational basis.
Quantum teleportation
What is it?
Technique for moving quantum states around, even in an absence of
quantum communication channel.
The problem:
Alice must deliver qubit
to Bob
• She does not know the state of the qubit
• She can use only classical channels
How does it work?
• Alice and Bob generate an EPR pair together.
EPR pair: two entangled qubits in the state
β00 =
00 + 11
2
• The moved to different places and each took one qubit of the EPR pair.
• Alice interacts qubit
to be teleported with half of her EPR pair and
then makes a measurement on two qubits which she has.
• She can get one out of four possible results: 00, 01, 10, and 11.
• Alice reports this information to Bob.
• Bob performs one of four operations on his half of the EPR pair.
• Amazingly, he can recover the original state
!
Teleportation scheme
Alice ψ
H
Alice
β 00
Bob
X M2
ψ0
ψ1
ψ2
ψ3
ψ
Z M1
ψ4
ψ =α 0 +β 1
Quantum circuit
1. Each line represents one qubit.
Therefore, we have three qubits in our teleportation circuit.
2. If the gate is on a single line, this is a one-qubit gate applied to this one gubit only.
H
Hadamard gate is a single qubit gate that act only on qubit
one in our circuit. The other two qubits are not affected by it.
3. If two lines are connected, it signifies the two qubit gate that acts of these two qubits
only.
Quantum CNOT gate
4. Measurement is designated by sign
We will now work out in detail how this circuit works.
The initial state is
ψ 0 = ψ β 00
1
α 0
=
2
( 00
+ 11 ) + β 1
( 00
+ 11 ) 
1
=
α 000 + α 011 + β 100 + β 111 
2
Next, we find the state
The CNOT gate (control-NOT) works in the following way:
A
A
B
B'
AB
AB'
00
00
01
01
10
11
11
10
Class exercise: what is
Logical operation: if A is in state |1>, flip the qubit B.
?
1
α 000 + α 011 + β 100 + β 111 
2
1
ψ1 =
α 000 + α 011 + β 110 + β 101 
2
ψ0 =
The next step involves Hadamard gate . First, we need to find out what
Hadamard gate does to a qubit. The matrix for the Hadamard gate is
H=
1 1 1 


2 1 −1
Class exercise: If you operate by this gate on some unknown qubit, what will you
get?
?
Hint: you need to work out
Another way to do it is to find how H acts on
and
:
Result:
α 0 +β 1
α
H
0 +1
2
+β
0 −1
2
Therefore, the Hadamard gate corresponds to the following logical
operation:
If the qubit is in state |0> it will become
If the qubit is in state |1> it will become
Now we can work out the next step of our circuit.
Class exercise: what is
? In your result, separate out the last third qubit
and group together terms with the same states for the first two qubits , i.e.
you result should be written as
ψ
H
β00
X M2
ψ0
ψ1 =
ψ1
ψ2
ψ
Z M1
ψ3
1
α 000 + α 011 + β 110 + β 101 
2
ψ4
0
0 +1
1
2
0 −1
H:
2
1
ψ 2 =  00 (α 0 + β 1 ) + 01 (α 1 + β 0
2
)
+ 10 (α 0 − β 1 ) + 11 (α 1 − β 0 ) 
Next step: measure the state of first two qubit. Possible results are |00>, |01>, |10>, and
|11>. After Alice makes the measurement, she communicates the result to Bob.
Bob does the following conditional operation with his qubit:
1)
2)
3)
4)
If
If
If
If
result
result
result
result
is
is
is
is
|00>,
|01>,
|10>,
|11>,
he
he
he
he
does nothing: he already has the qubit |ψ> !
applies X gate.
applies Z gate.
applies both X and Z gate.
α 0 +β 1
X
α 1 +β 0
α 0 +β 1
Z
α 0 −β 1