Local operations
When you have two or more probabilistic bits, you can act on them in many different ways.
In particular, you can act on all of them together with a global operation
or only on one or a few at a time with a local operation.
Let us consider local operations first.
Recall the NOT operation from Section 1.2 that flips a bit.
What happens if we have two bits and apply NOT only on the first one?
In that case the first bit should be flipped while the second should remain the same.
This means the local NOT operation on the first bit, which we will denote by , acts as follows:
(3.6)
Similarly, if we apply NOT only on the second bit, the resulting operation acts as follows:
(3.7)
What we just described are local NOT operations on deterministic bits.
How should we extend them to probabilistic bits?
Recall from Section 1.2.1 that any operation that is fully specified on deterministic bits can be extended by linearity to probabilistic bits.
For example, acts on two probabilistic bits as follows:
|
|
|
|
|
|
|
|
|
|
|
|
where in the first step we used Eq. 3.7 and in the second step we just reordered the terms to sort the binary strings.
You can also write this in the 4-vector notation, but it is somewhat less intuitive:
(3.8)
(
in the 4-vector notation (optional)
).
Similar to Eq. 3.8, write the action of on two probabilistic bits in the 4-vector notation.
Solution.
|
|
|
To apply a single-bit operation in Quirky, we drop the corresponding box onto eiter the first or the second wire.
For example, the following sequence prepares the state and shows the outcome probabilities when measuring both bits:
This makes sense since the bottom wire in Quirky corresponds to the first bit.
Similarly, if we first flip one bit and then the other, the result is the state:
Clearly, the order in which we apply the two NOT operations does not matter.
This means that we can also apply them in parallel:
We can in the same way apply random operations to one of the bits.
For example, suppose we subject the first bit to the operation that resets a bit with probability (Eq. 1.27).
Since , we have that
|
|
|
(3.9) |
And since , we have that
|
|
|
(3.10) |
For example, if we prepare the state and apply to the first bit, we obtain
|
|
|
(3.11) |
as confirmed by Quirky:
Here is an even more interesting example, which you can tackle in the exercise below:
(3.12)
( on the second bit).
-
1.
Write down formulas for analogously to Eqs. 3.9 and 3.10.
-
2.
Explain why Quirky gives the correct answer in (3.12).
.
-
1.
|
|
|
|
|
|
|
|
|
|
(3.13) |
-
2.
We start out with and flip both bits, resulting in .
Next, we apply the operation to the first bit, say.
We already saw in Eq. 3.11 that the result is
|
|
|
Finally, we apply to the second bit.
By linearity,
|
|
|
|
and now we can use the formulas derived in Eq. 3.13: |
|
|
|
|
|
|
|
|
|
|
|
|
which is exactly what Quirky showed.