mindquantum.core.gates.IGate

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

Identity gate.

Identity gate with matrix as:

\[\begin{split}{\rm I}=\begin{pmatrix}1&0\\0&1\end{pmatrix}\end{split}\]

More usage, please see XGate.

get_cpp_obj()[source]

Construct cpp obj.