3.2.3 Parallel operations
If we apply one operation on the first qubit and another on the second qubit then the order of these two operations does not matter. That is, if and are arbitrary single-qubit operations then
We can verify this intuitive fact by using Eqs. 3.56 and 3.57. For every basis state where ,
so Eq. 3.58 follows by linearity.
In fact, since the two operations act on different qubits, we could even do them in parallel! This suggests introducing a new notation for the operation in Eq. 3.58:
We are re-using the tensor product symbol that we originally introduced for combining two independent single-qubit states into a two-qubit state. The same meaning extends also to quantum operations: denotes the combined operation that consists of applying and to two different subsystems of a larger system. This notation is particularly convenient since it interplays nicely with the original tensor product for states:
This equation simply says that if you have two independent states and you apply an operation that acts independently on each of the two states, then you just end up applying each of the two operations on the corresponding state. We will call a tensor product of two quantum operations or a parallel operation.
Quirky allows us to apply local quantum operations in parallel. For example, we could have written the sequence of operations in Eq. 3.54 as
where the operation and the Hadamard operation are now applied in parallel.
Let us discuss another example. What happens if we apply to both qubits? This operation is denoted by and according to Eqs. 2.34 and 3.59 acts as follows:
The resulting state is called the uniform superposition on two qubits since it contains each of the two-qubit basis vectors with an equal amplitude. If we perform a measurement on this state we obtain all four outcomes with equal probability. We can readily verify this using Quirky:
Exercise 3.10 (Constructing a product state).
-
1.
Write as a tensor product of two single-qubit states.
-
2.
How can you construct this state by applying a sequence of local operations to ?
-
3.
Implement the sequence of operations from step 2 in Quirky.
Eq. 3.59 shows that if we apply a parallel operation to a product state then we get another product state. In fact, starting from we can get any product state in this way. This gives an intuitive interpretation to the product states: they are exactly those states that we can get by applying an arbitrary parallel operation to two qubits initialized in state .
Homework 3.5 (Product states from parallel operations).
Show that every product state can be constructed by applying some parallel quantum rotations (i.e., an operation of the form ) to . Recall from Eq. 2.27 that denotes a rotation by angle .
Hint: Recall from Eq. 2.5 that the most general one-qubit state is of the from .
Hack.
We close our discussion of local operations with some general remarks. First, it is not hard to check that
for any four single-qubit operations , , , . Can you draw a picture to visualize what is going on here?
We can now make use of the identity operation from Eq. 2.32 which acts as (this trivially extends to and on two qubits). It is rather useless on its own, but can be conveniently used in tensor product notation. For example, it allows us to write
which makes it very clear that, e.g., applies the -operation on the first qubit and nothing on the second qubit. For example, the identity from Eq. 3.58 now becomes
which is rather intuitive.
You might wonder if the order of operations actually matters if we apply them to the same qubit? If we consider two rotations then it follows from Eq. 2.29 that their order is not important since
However, if and are two arbitrary single-qubit operations (in particular, one of them is a reflection) then their composition generally depends on the order (see 3.11 below). That is,
This issue of course persists also when you have another qubit around, but are still acting with both operations on the same qubit. For example,
We can also write this as (and similarly when we apply both operations to the second qubit).
To understand intuitively the difference between Eqs. 3.61 and 3.62, imagine that means “putting on a sock” and means “putting on a shoe”. Clearly, when and are applied to the same foot, you will get different results depending on the order! However, if you apply and to different feet (e.g., you use and ) then you will get the same result irrespectively of the order of the two operations. Either way, if you want to be properly dressed, you should apply and then .
Exercise 3.11 (The order is important).
Show that .