Distributed CNOT
Description
A quantum network makes it possible to connect spatially separated quantum processors to perform computations that make use of the quantum resources available at each node. The quantum processors (computers) connected across the network can be small -- consisting of only a few qubits -- or on the opposite side of the spectrum, they could be large scale fully fault-tolerant quantum computers, which scientists hope to develop in the future.
An essential tool for distributed quantum computing is a distributed two-qubit entangling gate that works between two nodes of a network. A quantum computation or operation is called distributed if it has to be conducted with the cooperation of two or more nodes connected by network links. The CNOT operation, which changes the state of the second qubit -- called the target qubit, according to the state of the first qubit -- called the control qubit, is the primary example of this type of gate, as it appears as an essential operation in most quantum computations. See the Blind Computation application in the Editor and its information page for an interesting application of distributed quantum computing!
To better understand the distributed CNOT it is a reasonable first step to build an understanding of the CNOT operation. The below table displays the target and control qubit states output by the CNOT operation, for various different input states. The first thing to know is that the state of a qubit can generally be written as , where and are the angles on the Bloch sphere that you can specify in the editor. Since the CNOT operation is conditioned upon the state of the control qubit, the simplest cases occur when the control qubit is in the state or . In the case that the control state is , nothing happens. If the control qubit state is , then the of the target qubit state flips to become , and concurrently the part flips to become . See the first four rows of the table for illustration. If instead, the control state is a more general state , then the CNOT can actually cause the control and target qubits to become entangled. See rows five to seven of the table for examples.
Input: control qubit | Input: target qubit | Output: State of control (left) and target (right) qubit |
---|---|---|
For any state not covered in the table then it is straightforward to calculate the effect of the CNOT. A general description of the control and target states together is:
The full effect of the CNOT operation on such a pair of states is determined by applying a CNOT individually to each term of the right hand side of the equation.
In the distributed CNOT application that can be run in the Editor, you will see that the first step is to establish entanglement between a qubit held by the control node and a qubit held by the target node. We refer to these qubits that make up the entangled pair at each node as the communication qubits. This entangled link is used to facilitate the distributed CNOT operation, and is consumed by the procedure.
Next you will see the control and target states being prepared according to the input’s you selected. In the Bloch sphere representation the preparation of any state can be accomplished by rotations about two axes, since any transformation on a sphere is possible through a sequence of rotations about two axes.
Then, you will see that the control node performs a local CNOT operation, with the qubit they also want to use as the control in the distributed CNOT acting as the control qubit, and their communication qubit as the target. The point of this step is to entangle the control and communication qubits. This effectively transfers information about the state of the control qubit into the joint entangled state of the communication qubits.
Following this operation, the control node measures their communication qubit, records the result, and sends the outcome to the target node using a classical message. If the outcome was 1, the target node will apply an X operation as a correction to their communication qubit. Measurement of the control node communication qubit transfers the entanglement so that it is between the distributed CNOT control qubit and the communication qubit of the target node. The corrective X that may be applied at the target node ensures that the entangled state does not depend on the measurement outcome.
Next you will see that the target node performs a local CNOT operation, with the communication qubit as control and the qubit they also want to use as the target of the distributed CNOT as the target. The point of this step is to entangle the target qubit with the state of the distributed CNOT control qubit and the remaining communication qubit.
The target node then measures their communication qubit in the X basis, as opposed to the Z basis that they usually measure in. Think of this change of basis as a rotation of the Bloch sphere so that the positive X axis takes the position of the positive Z axis. In the editor you will see that the target node does a Hadamard operation (given the symbol h) in order to make this basis change. Following the Hadamard operation they measure the communication qubit, now in the X basis. The target node records the measurement outcome and sends the result over a classical communication channel to the control node. If the outcome was 1, then the control node performs a corrective Z operation to the control qubit, completing the distributed CNOT.
For a different look at the distributed CNOT, you can check out the interactive circuit diagram, available here: Distributed CNOT circuit.
Inputs
In the editor, you can choose the state of both the control and target qubit, by specifying the angles that define each state in the Bloch sphere.
In the context of a distributed computation, the two nodes would usually have no knowledge of the exact states of the control and target qubits, because they would depend on earlier stages of the computation.
Results
In the results page of the Editor, you will see four Bloch spheres -- one for each of the input control and target qubit states, as well as one for each of the output control and target states. To determine if the expected outcome was obtained, it may be helpful to consult the above table and the accompanying description of how to calculate the effect of the CNOT operation between any two quantum states.
If the final state of the pair of the control and target qubits is not as expected, then it indicates that an error occurred during the application.