Standard Gates
While some simulators may allow access to other gate sets, the standard gates recognized by PECOS are:
Initializations
State initializations in Pauli bases:
|
(Re)initiate the state \(|+\rangle\) |
|
(Re)initiate the state \(|-\rangle\) |
|
(Re)initiate the state \(|+i\rangle\) |
|
(Re)initiate the state \(|-i\rangle\) |
|
(Re)initiate the state \(|0\rangle\) |
|
(Re)initiate the state \(|1\rangle\) |
Unitaries
Pauli operations:
|
\(X\rightarrow X\), \(Z\rightarrow Z\) |
|
\(X\rightarrow X\), \(Z\rightarrow -Z\) |
|
\(X\rightarrow -X\), \(Z\rightarrow -Z\) |
|
\(X\rightarrow -X\), \(Z\rightarrow Z\) |
Square-root of Pauli operations:
|
\(X \rightarrow X\), \(Z \rightarrow -Y\) |
|
\(X \rightarrow -Z\), \(Z \rightarrow X\) |
|
\(X \rightarrow Y\), \(Z \rightarrow Z\) |
|
\(X \rightarrow X\), \(Z \rightarrow Y\) |
|
\(X \rightarrow Z\), \(Z \rightarrow -X\) |
|
\(X \rightarrow -Y\), \(Z \rightarrow Z\) |
Hamadard-like:
|
Hadamard: \(X\leftrightarrow Z\) |
|
\(X\leftrightarrow -Z\) |
|
\(X\rightarrow Y\), \(Z\rightarrow -Z\) |
|
\(X\rightarrow -Y\), \(Z\rightarrow -Z\) |
|
\(X\rightarrow -X\), \(\rightarrow Y\) |
|
\(X\rightarrow -X\), \(Z\rightarrow -Y\) |
Rotations about the face of an octahedron:
|
\(X \rightarrow Y\rightarrow Z \rightarrow X\) |
|
\(X \rightarrow -Z\), \(Z \rightarrow Y\) |
|
\(X \rightarrow Y\), \(Z \rightarrow -X\) |
|
\(X \rightarrow Z\), \(Z \rightarrow -Y\) |
|
\(X\rightarrow Z\rightarrow Y \rightarrow X\) |
|
\(X \rightarrow -Y\), \(Z \rightarrow -X\) |
|
\(X \rightarrow -Z\), \(Z \rightarrow -Y\) |
|
\(X \rightarrow -Y\), \(Z \rightarrow X\) |
Two-qubit gates:
|
The controlled-X gate |
|
The controlled-Z gate |
|
Swap two qubits |
|
Equivalent to: \(CZ_{1,2}\;H_1 \otimes H_2\; CZ_{1,2}\) |
Measurements
Measurements in Pauli bases:
|
Measure in the \(X\)-basis |
|
Measure in the \(Y\)-basis |
|
Measure in the \(Z\)-basis |