Universal Gate Set

  1. Definition

  2. Components of a Universal Gate Set

  3. Constructing Quantum Gates using Universal Gates

IBM Quantum Composer: https://quantum.ibm.com/composer/

1. Definition

A universal gate set is a set of quantum gates that allows us to approximate any quantum gate to any desired precision.

2. Components of a Universal Gate Set

There are several components that we need for a set of quantum gates to be universal

  1. Superposition: We must be able to produce superpositions. For example, the Hadamard gate can create superpositions, such as \(H\ket{0} = \ket{+}\). Other gates are not. \(Z\), \(S\), and \(T\) only apply phases; they do not create superpositions of \(\ket{0}\) and \(\ket{1}\). Similarly, the \(X\) and \(\text{CNOT}\) gates only flip \(\ket{0}\) and \(\ket{1}\), so they cannot create superpositions. \(Y\) only applies phases and flips, so again superpositions cannot be created by it.

  2. Entanglement: We must be able to entangle qubits. One-qubit gates, such as \(H\), cannot do this since they only act on a single qubit. A gate must act on at least two qubits to produce entanglement. \(\text{CNOT}\) can produce entanglement since \(\text{CNOT}\ket{+}\ket{0} = \ket{\Phi^+}\). Not all two qubit gates produce entanglement, however. The \(\text{SWAP}\) gate cannot generate entanglement since it only swaps two qubits.

  3. Complex amplitudes: \(\text{CNOT}\) and \(H\) only contain real numbers, so they do not produce states with complex amplitudes.

In addition, the set must:

  1. Generate more than the Clifford group.

The Clifford group is the set of gates that can be generated by {\(H\), \(\text{CNOT}\), \(S\)}.

3. Constructing Quantum Gates using Universal Gates

We will use universal gate set $G = $ {\(\text{CNOT}\) , \(H\), \(S\), \(T\)} to construct the Pauli \(X\), Pauli \(Y\) and \(\text{Toffoli}\) gates.

3.1. Pauli \(X\)

We can construct a Pauli \(X\) gate by applying the following gates: \(H\) gate, \(4\) \(T\) gates and \(H\) gate.

\(\underline{X}\)

cc984a33acc74d849898e24825ca614d

\(\underline{\text{Universal gates}}\)

0aa7ea6f14ef45568fb4d793d8c1e829

3.2. Pauli \(Y\)

We can construct a Pauli \(Y\) gate by applying the following gates in order: \(H\) gate, \(4\) \(T\) gates, \(H\) gate and \(2\) \(T\) gates.

\(\underline{Y}\)

506477c3eb8c4602a46c52dcea4d22a6

\(\underline{\text{Universal gates}}\)

cc6755ead0b14c77bb4fe4a93be7d6e1

3.3. \(\text{Toffoli}\) Gate

The \(\text{Toffoli}\) gate is much more complex.

\(\underline{\text{Toffoli}}\)

2ef3b95dba81487299d9027c6759e249

\(\underline{\text{Universal gates}}\)

e8bb594e90ae43569660ada2806cfb21