Docsity

The Quantum Algorithms, Lecture notes of Advanced Physics

Toggle sidebar
bg1
DEUTSCH-JOZSA ALGORITHMS
D-J Algorithms is used to identify whether a given function is either
balanced or constant.
If half of the inputs are becomes zero and remaining half of the inputs are
becomes one after given to oracle function then we can say that the
function is balanced.
If for inputs the output is either zero or one after given to oracle function
then we can say that the function is constant.
This algorithm depends on phase kick back, that is
The flow diagram of this D-J algorithm is
Initialize-----------Apply Hadamard gate-------oracle function
Hadamard gate-------measure
Quantum circuit of D-J algorithm is
(x)
(1)
f(x)
↑
some
information
of
f(x)
1
-
>
f(x)
S
>
X
7
10)
#
#
T
Of
117
I
1
-
>
Oracle
.
pf3
pf4
pf5
pf8

Partial preview of the text

Download The Quantum Algorithms and more Lecture notes Advanced Physics in PDF only on Docsity!

DEUTSCH-JOZSA ALGORITHMS  D-J Algorithms is used to identify whether a given function is either balanced or constant.  If half of the inputs are becomes zero and remaining half of the inputs are becomes one after given to oracle function then we can say that the function is balanced.  If for inputs the output is either zero or one after given to oracle function then we can say that the function is constant.  This algorithm depends on phase kick back, that is  The flow diagram of this D-J algorithm is Initialize-----------Apply Hadamard gate-------oracle function Hadamard gate-------measure Quantum circuit of D-J algorithm is

(x) (1)

f(x)

some information

of f(x)

f(x)

S >

X 7

10) # # T

Of

117 I^

1 - >

Oracle .

APPLICATIONS:
  1. Demonstrate quantum advantage.
  2. Form the basis for more complex algorithms like simon’s and shor’s.
  3. useful for understanding phase kickback and interface in quantum algorithms.
SHOR’S ALGORITHM

Shor’s Algorithm is a quantum algorithm than can efficiently find the prime factors of large composite number in polynomial time, which is consider classically hard. The algorithm uses quantum properties like superposition and entanglement to solve the problem. Quantum fourier transform (QFT) to find the period of a function. The key steps in the shor’s algorithm

  1. Pick a number ‘a’ and compute a repeating pattern using ax^ Mod N
  2. Use a quantum computer to find the period of that pattern.
  3. use that period to compute the prime factors of N.
  4. Result: A task that takes millions of years classically can be done in seconds on a quantum theory. Quantum circuit diagram of D-J Algorithms:

3. Amplitude Amplification: A diffusion operator is then applied. This operator amplifies the amplitude of the marked states and decreases the amplitude of the unmarked states.

  1. Steps 2 and 3 are repeated times. This iterative process progressively increases the probability of measuring the target state. 5. Measurement: Finally a measurement is performed on the quantum state, which with probability will yield the marked items. Example: Consider a 2- qubit system, which can represent four possible states |00>,|01>,|10>.|11> .Let’s say we want to find the state |11> Intialisation: Apply Hadamard gates to both qubits to create a uniform superposition of all four states |𝜓 0 > = 1 2

Oracle: Design an oracle that flips the phase of the target state |11> for this purpose using CZ gate in oracle. |𝜓 1 > = 1 2

Diffusion operator: This amplitude the amplitude of |11> and reduces the amplitudes of the other states. Measurement: After one interaction, measuring the qubits will yield|11> with high probability.