5.11. SX and SXdg Gates#
SX gate is a native gate of IBMQ hardware. Do not get confused with \(S\) times \(X\).
API References: SXGate
API References: SXdgGate
5.11.1. Definition#
Transformation
Matrix expression
U gate expression
R gate expression
Notice that \(SX^2 = (SX^\dagger)^2 = X\). Hence, \(SX\) and \(SX^\dagger\) are square roots of \(X\) and they are often expressed as \(SX=X^{1/2}\) and \(SX^\dagger = X^{-1/2}\).
The Qiskit circuit code symbols are sx and sxdg, respectively. They appear in quantum circuits as
or
qc.draw()
┌────┐┌──────┐ q: ┤ √X ├┤ √Xdg ├ └────┘└──────┘
5.11.2. Transformation of other basis kets#
\(x\)-basis
\(y\)-basis
5.11.3. Acting on a superposition state#
When SXGate and SXdgGate are applied to a super position state the coefficient to \(|0\rangle\) remains the same but that of \(|1\rangle\) gets additional phase factor. That is
In \(\{|+\rangle,|-\rangle\}\) basis,
Comparing these relations with Eqs. (5.21) and (5.22), we find that SXGate and SGate work in the same way but in different basis sets.
5.11.4. Additional useful Properties#
\(SX \cdot SX = SX^\dagger \cdot SX^\dagger = X\) implies that
\(SX = X \cdot SX^\dagger = SX^\dagger\cdot X, \quad SX^\dagger = X \cdot SX = SX \cdot X\).
\(X = SX \cdot X \cdot SX^\dagger = SX^\dagger \cdot X \cdot SX\)
\(SX = X \cdot SX \cdot X, \quad SX^\dagger = X \cdot SX^\dagger \cdot X\).
Last modified: 08/31/2022