mindquantum.core.gates.SXGate

View Source On Gitee
class mindquantum.core.gates.SXGate[source]

Sqrt X (SX) gate.

SX gate with matrix as :

\[\begin{split}{\rm SX}=\frac{1}{2}\begin{pmatrix}1+i&1-i\\1-i&1+i\end{pmatrix}\end{split}\]

More usage, please see XGate.

get_cpp_obj()[source]

Construct cpp obj.