T2: 4. Quantum Algorithms Flashcards

1
Q

Briefly state the problem of Simon’s algorithm

A

Period finding: given an n bit function f(x), find the period a such that f(x)=f(x⊕a)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How does the U_f for Simon’s algorithm act on |x⟩|m⟩

A

U_f|x⟩|m⊕f(x)⟩

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

State the general formula for uniform n-bit basis states

A

1/(2^n/2) SUM_(0,2^n -1) |x⟩

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

State the action of a Hadamard on general n-bit basis states

A

H^(⊗n)|x⟩
= PROD_(0,n-1) 1/sqrt(2) [|0⟩_i+(-1)^x_i|1⟩i]
= 1/2^(n/2) SUM
(0,2^n -1) (-1)^x.y|y⟩

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does x.y denote in the Hadamard on general n-bits?

A

x.y = bitwise product
x_0 y_0 + x_1 y_1 + … + x_n y_n mod2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Briefly describe the procedure for Simon’s algorithm

A
  • Start with a system of n inputs and n ouputs all prepared in the |0⟩ state.
  • Act with H^(⊗n) on the input qubits
  • Act with U_f on the entangled state
  • Measure the output bits, projecting the input to a superposition of 1/sqrt(2)[|x_0⟩ + |x_0 +a⟩]
  • Act with H^(⊗n) on the input qubits
  • Measure the input qubits; since a.b = 0 we can find a set of n-1 linear eqs to solve for a
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

State the quantum Fourier Transform (QFT)

A

U_FT |x⟩ = 1/sqrt(2) SUM_(0,2^n -1) exp(2πixy/2^n) |y⟩

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Given an arbitrary state |ψ⟩=SUM_x ψ_x |x⟩ how does the QFT act

A

|ψ˜⟩ = U_FT |ψ⟩

|ψ˜⟩ = SUM_y ψ˜_y |y⟩

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What do ψ˜_y represent in QFT

A

The discrete fourier transform of the vector ψ_x with each exp a Fourier coefficient.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the general form the controlled phase gate in QFT?

A

Identity with e^iπ/2^k in bottom right

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How can we construct a SWAP gate from the elementary set?

A

Three CNOTs alternating control/targets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Briefly state the problem of Shor’s algorithm

A

Given a composite number N, we want to find some prime number p such that p divides N.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do we set up the problem for Shor’s algorithm

A

Construct the function f(a) = y^a mod N where r is the smallest value of a > 0 which satisfies f(r)=1; the period of f.
Suppose r is even: (y^r - 1) = 0 modN and find diff of two squares. Provided its not a multiple of N, y^r/2 -1 and N share a common factor and we can use Euclid’s algo to find it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Briefly describe the procedure for Shor’s algorithm

A
  • Start with a system of n inputs and n ouputs all prepared in the |0⟩ state.
  • Act with H^(⊗n) on the input qubits
  • Act with U_f on the entangled state
How well did you know this?
1
Not at all
2
3
4
5
Perfectly