1.2 Operations on a probabilistic bit
Once we have represented bits of information by vectors, we can represent operations on these bits by linear transformations and use tools from linear algebra. For example, consider the operation that exchanges “heads” and “tails” of a donkey coin:
We will denote this operation by and write it down mathematically as follows:
Using the conventions from Eq. 1.6, we can also write
Note that we are writing as an abbreviation to – both simply mean that the operation acts on a vector .11 1 We could also write since this action actually corresponds to matrix-vector multiplication. We will generally write operations with capital letters to distinguish them from numbers and vectors.
Recall from Eq. 1.6 that the vectors and represent the deterministic states and of a probabilistic bit. Since the operation exchanges these two vectors, it negates the value of the bit. This is precisely why we called it “NOT” – it represents the logical negation! One simple application of is to enter some data in your computer. If all bits of your computer are initially set to , you can change some of them to to enter data – this is often the first step of a computation.
How should we define the NOT operation on a probabilistic bit ? With probability , the bit is zero and will get flipped to a one. With probability , the bit is one and will get flipped to a zero. Thus, the effect of the NOT operation on a probabilistic bit is simply
In particular, this recovers Eq. 1.17 when (and ) or (and ). You can intuitively think of the NOT operation and Eq. 1.22 as follows: if you imagine a probabilistic bit as a coin that you have tossed but have not looked at yet, then the NOT operation corresponds to turning the coin around (again, without looking at it).
Exercise 1.4 (Visualizing the NOT operation).
Recall from Fig. 1.2 that all possible states of a probabilistic bit correspond to a line segment. Let us try to visualize how the operation transforms this line segment.
-
1.
Take an arbitrary22 2 When we say ‘arbitrary’, we mean that your calculation must work for any choice of and . It is often best to write all the steps, including your final answer, in terms of and , treating them as unknown numbers. point with coordinates on this segment. Where is it sent to by the operation?
-
2.
Where are the two endpoints of the line segment sent to?
-
3.
Is there any point on the line segment that is sent to itself?
Solution.
-
1.
Note from Eq. 1.22 that the point is sent to . In other words, the two coordinates of the point are exchanged. Here is an example of how this looks like:
You can thus think of the operation as the reflection around the dashed line that goes right in the middle between the two coordinate axes.
- 2.
-
3.
A point with coordinates remains fixed by the operation if , meaning that . Since , we find that which corresponds to the point . This is the only point that remains fixed.