-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
68 lines (49 loc) · 1.27 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
** Bernstein Vazirani Method;
There is a secret number in a box. It is contain with 6 Bits (Zeros & ones)
A classical computer can accomplish this task in 6 tries.
A quantum computer using the (Bernstien Vazirani Method), can do the same task in 1 shot.
Using Secret Number: 101001
Classical Computer Algorithm to Determine What Is In The Box;
Code in Box;
+------------+
| 1 0 1 0 0 1|
+------------+
Classical Computer ~ AND STATEMENTS; (X = No Match | M = Match)
+------------+
| 0 0 0 0 0 1|
+------------+
M
+------------+
| 0 0 0 0 1 0|
+------------+
X
+------------+
| 0 0 0 1 0 0|
+------------+
X
+------------+
| 0 0 1 0 0 0|
+------------+
M
+------------+
| 0 1 0 0 0 0|
+------------+
X
+------------+
| 1 0 0 0 0 0|
+------------+
M
Final Out Put;
+------------+
| 1 0 1 0 0 1|
+------------+
Classical Computer Finally Matches Code In Box!
A quantum computer can achieve same goal in 1 try!
This is shown by simulating all possible options at the same time
Q0> ---H---|---*---|---H---|/------
Q1> ---H---|---|---|---H---|-/-----
Q2> ---H---|---|---|---H---|--/----
Q3> ---H---|---|-*-|---H---|---/---
Q4> ---H---|---|-|-|---H---|----/--
Q5> ---H---|---|-|*|---H---|-----/-
Q6> ---H---|---+-++|---H---|------/