Skip to main contentIBM Quantum Documentation
You are viewing the API reference for an old version of Qiskit SDK. Switch to latest version

CNOTDihedral

CNOTDihedral(n_qubits) GitHub(opens in a new tab)

CNOT-dihedral Object Class. The CNOT-dihedral group on n qubits is generated by the gates CNOT, T and X.


Attributes

key

Return a string representation of a CNOT-dihedral object.


Methods

__mul__

CNOTDihedral.__mul__(other)

Left multiplication self * other.

cnot

CNOTDihedral.cnot(i, j)

Apply a CNOT gate to this element. Left multiply the element by CNOT_{i,j}.

flip

CNOTDihedral.flip(i)

Apply X to this element. Left multiply the element by X_i.

phase

CNOTDihedral.phase(k, i)

Apply an k-th power of T to this element. Left multiply the element by T_i^k.

Was this page helpful?