Skip to content

Commit 4e2a95b

Browse files
committed
Add Changes Requested In Review
Signed-off-by: Abhishek Jaisingh <[email protected]>
1 parent 931a9dd commit 4e2a95b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

quantum/deutsch_jozsa.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
classical algorithm
66
77
Premise:
8-
We are given a hidden Boolean function f ,
9-
which takes as input a string of bits, and returns either 0 or 1:
8+
We are given a hidden Boolean function f,
9+
which takes as input a string of bits, and returns either 0 or 1:
1010
11-
f({x0,x1,x2,...}) -> 0 or 1 , where xn is 0 or 1
11+
f({x0,x1,x2,...}) -> 0 or 1, where xn is 0 or 1
1212
1313
The property of the given Boolean function is that it is guaranteed to
14-
either be balanced or constant. A constant function returns all 0 's
15-
or all 1 's for any input, while a balanced function returns 0 's for
16-
exactly half of all inputs and 1 's for the other half. Our task is to
14+
either be balanced or constant. A constant function returns all 0's
15+
or all 1's for any input, while a balanced function returns 0's for
16+
exactly half of all inputs and 1's for the other half. Our task is to
1717
determine whether the given function is balanced or constant.
1818
1919
References:

0 commit comments

Comments
 (0)