Reverse gate – REV

This REV gate swaps the order of the qubits. On a two qubit state, it does the following, for example:

Input

Output

|"00">

|"00">

|"01">

|"01">

|"10">

|"01">

|"11">

|"11">

The symbol for this gate is a cross over every wire of the circuit where the qubits are to be reversed. For example, for a three qubit reverse gate operating on a circuit of three qubits, it would be drawn as follows: