3.1.5 SWAP operation
Now that we know how to manipulate individual probabilistic bits, we would also like to apply operations on several bits at a time. One of the simplest such operations is the operation that interchanges two bits:
effectively amounts to exchanging the strings and while leaving the other two strings alone. The above equations can be written more concisely as follows:
(3.18)
for all , where we use a comma to separate the two bits. As usual, we can extend from deterministic to probabilistic bits by linearity:
Exercise 3.3 ( in the 4-vector notation (optional) ).
Write down the action of on two probabilistic bits in the 4-vector notation.