fin Algos Flashcards

1
Q

Circuit for Deutsch algorithm

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

Describe the intuition behined Deutsch algorithm

A

1) initalise two registers, and apply an X rotation to the second one such that the overall state is |01>
2) apply hadamard to both
3) pass both qubits ( |+-> ) through the function Uf. Since for some arbitrary state |x->, Uf will yield (-1) to the power of f(x) multiplied by the original state |x->
4) this means that for the state |+-> which expands to |0-> + |1+>. the two parts of the quibits will be to the power of f(0) and f(1) respectively. Allowing us to easily see if the function is constant or balanced as it is called with both possible parameters
5) in the end if it is constant we get state |0> on first register and if balanced we get |1>

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

Deutsch Jozsa Circuit

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

What is the difference between deutsch and deutsch jozsa

A

Deutsch is {0,1} -> {0,1}. Deutsch Jozsa is Bit string to bit

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

What is the generalised way of expressing Hadamard onto an arbitrary |x> tensor n

A

Sum for each z=0 and z+1: (-1)^ (x.z) |z>

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

What is the probability of seeing all 0’s after measurement in deutsch jozsa

A

absolute value squared of: 1 / 2 ^ n multiplied by ( sum over all possible values of x (0 or 1) for -1 to the power of f(x) )

This means if x is constant then p(all zeros) is certain, otherwise the function must be constant

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