Docsity

Quantum Computation & Cryptography Workshop: Qubit States and Unitaries Cheatsheet, Apuntes de Mecánica Cuántica

Toggle sidebar
bg1
Quantum Computation & Cryptography Workshop
Cheatsheet
States
A general qubit:
|ψi=a|0i+b|1i
Where aand bare the amplitudes for the states |0iand |1iwe have:
hψ|ψi=kψk2=|a|2+|b|2= 1
The qubit is in a superposition of the states |0iand |1i. These states form a basis for the space of single
qubits. The basis is orthonormal so:
h0|0i=h1|1i= 1
h1|0i=h0|1i= 0
We can also have another basis, given by the states:
|+i=1
√2(|0i+|1i)
|−i =1
√2(|0i−|1i)
Can also be represented as a vector, i.e.:
|ψi ↔ a
b!
And it’s adjoint is:
hψ| ↔ ¯a¯
b
Where ¯aand ¯
bare the complex conjugates of aand b. Adjoint ↔transpose + complex conjugate.
Then hψ|ψiwhich is the inner product, can b e viewed as multiplying a column vector with a line vector:
¯a¯
b a
b!=|a|2+|b|2= 1
1
pf3
pf4

Vista previa parcial del texto

¡Descarga Quantum Computation & Cryptography Workshop: Qubit States and Unitaries Cheatsheet y más Apuntes en PDF de Mecánica Cuántica solo en Docsity!

Quantum Computation & Cryptography Workshop

Cheatsheet

States

A general qubit: |ψ〉 = a | 0 〉 + b | 1 〉

Where a and b are the amplitudes for the states | 0 〉 and | 1 〉 we have:

〈ψ | ψ〉 = ‖ψ‖^2 = |a|^2 + |b|^2 = 1

The qubit is in a superposition of the states | 0 〉 and | 1 〉. These states form a basis for the space of single qubits. The basis is orthonormal so: 〈 0 | 0 〉 = 〈 1 | 1 〉 = 1

〈 1 | 0 〉 = 〈 0 | 1 〉 = 0

We can also have another basis, given by the states:

|+〉 = √^1 2

|−〉 = √^1

Can also be represented as a vector, i.e.:

|ψ〉 ↔

a b

And it’s adjoint is: 〈ψ| ↔

¯a ¯b

Where ¯a and ¯b are the complex conjugates of a and b. Adjoint ↔ transpose + complex conjugate. Then 〈ψ | ψ〉 which is the inner product, can be viewed as multiplying a column vector with a line vector:

( ¯a ¯b

) ( a b

= |a|^2 + |b|^2 = 1

2-qubit states look like this: |χ〉 = a | 00 〉 + b | 01 〉 + c | 10 〉 + d | 11 〉 |a|^2 + |b|^2 + |c|^2 + |d|^2 = 1

If we have two qubits: |ψ 1 〉 = a 1 | 0 〉 + b 1 | 1 〉 |ψ 2 〉 = a 2 | 0 〉 + b 2 | 1 〉

If we put them together, we have a 2-qubit state. This state is described by:

|ψ 1 〉 ⊗ |ψ 2 〉 = (a 1 | 0 〉 + b 1 | 1 〉) ⊗ (a 2 | 0 〉 + b 2 | 1 〉) == a 1 a 2 | 00 〉 + a 1 b 2 | 01 〉 + b 1 a 2 | 10 〉 + b 1 b 2 | 11 〉

In general, an N -qubit state is a superposition of 2N^ basis states. It is true for any 2 states |ψ 1 〉 and |ψ 2 〉 that:

〈ψ 1 | ψ 2 〉 = 〈ψ 2 | ψ 1 〉

So: 〈ψ 1 | ψ 2 〉 〈ψ 2 | ψ 1 〉 = | 〈ψ 2 | ψ 1 〉 |^2 = | 〈ψ 1 | ψ 2 〉 |^2

Unitary operators

Unitary means U U †^ = U †U = I. Where U †, the adjoint of U , can be thought of as the transpose conjugate of U. Just like 〈ψ| is the adjoint of |ψ〉. The main unitaries we encounter are:

X =

[

]

Y =

[

0 −i i 0

]

Z =

[

]

H = √^1

[

]

and

CN OT =

X | 0 〉 = | 1 〉 X | 1 〉 = | 0 〉 X |+〉 = |+〉 X |−〉 = − |−〉

Z | 0 〉 = | 0 〉 Z | 1 〉 = − | 1 〉 Z |+〉 = |−〉 Z |−〉 = |+〉

H | 0 〉 = |+〉 H | 1 〉 = |−〉 H |+〉 = | 0 〉 H |−〉 = | 1 〉

CN OT | 00 〉 = | 00 〉 CN OT | 01 〉 = | 01 〉 CN OT | 10 〉 = | 11 〉 CN OT | 11 〉 = | 10 〉

All of these operators are their own inverses. I.e.

XX = Y Y = ZZ = HH = I

CN OT CN OT = I

And we measure the first qubit in the (|+〉 , |−〉) basis, we have the projectors |+〉 〈+| ⊗ I and |−〉 〈−| ⊗ I. So the probability of getting the first outcome (i.e., the qubit being in |+〉 post-measurement) is:

p(+) = 〈ψ | (|+〉 〈+| ⊗ I) | ψ〉 = 〈ψ| (a(|+〉 〈+|⊗I) | 00 〉+b(|+〉 〈+|⊗I) | 01 〉+c(|+〉 〈+|⊗I) | 10 〉+d(|+〉 〈+|⊗I) | 11 〉)

And now we act with the projector on the first qubit, and leave the second qubit unchanged. Note that:

〈+ | 0 〉 = 〈+ | 1 〉 = √^1 2

So: p(+) = √^1 2

〈ψ| (a |+〉 | 0 〉 + b |+〉 | 1 〉 + c |+〉 | 0 〉 + d |+〉 | 1 〉)

Expressing |+〉 = √^12 (| 0 〉 + | 1 〉) we get:

p(+) =^12 〈ψ| (a | 00 〉 + a | 10 〉 + b | 01 〉 + b | 11 〉 + c | 00 〉 + c | 10 〉 + d | 01 〉 + d | 11 〉)

=^12 〈ψ| ((a + c) | 00 〉 + (b + d) | 01 〉 + (a + c) | 10 〉 + (b + d) | 11 〉)

So: p(+) =^12 〈ψ| ((a + c) | 00 〉 + (b + d) | 01 〉 + (a + c) | 10 〉 + (b + d) | 11 〉)

Note that: 〈ψ | 00 〉 = ¯a 〈ψ | 01 〉 = ¯b 〈ψ | 10 〉 = ¯c 〈ψ | 11 〉 = d¯

So: p(+) =^12 (¯a(a + c) + ¯b(b + d) + ¯c(a + c) + d¯(b + d))

p(+) =^12 (|a|^2 + |b|^2 + |c|^2 + |d|^2 + ¯ac + ¯bd + ¯ca + db¯) =^12 (1 + ¯ac + ¯bd + ¯ca + db¯)

The state after measurement is:

(|+〉 〈 √+| ⊗ I) |ψ〉 p(+)

= √^1

p(+)

((a + c) | 00 〉 + (b + d) | 01 〉 + (a + c) | 10 〉 + (b + d) | 11 〉)

By grouping terms after the second qubit, we get:

√^1 p(+)

(((a + c) | 0 〉 + (a + c) | 1 〉) ⊗ | 0 〉 + ((b + d) | 0 〉 + (b + d) | 1 〉) ⊗ | 1 〉)

But | 0 〉 + | 1 〉 =

2 |+〉, which makes sense since we projected the first qubit to |+〉, so we have: √ √^2 p(+)

((a + c) |+〉 | 0 〉 + (b + d) |+〉 | 1 〉) =

√^2

p(+)

|+〉 ⊗ ((a + c) | 0 〉 + (b + d) | 1 〉)

We can see that the first qubit is |+〉, as expected, while the second is in a superposition state.