CNOTDihedral¶
- class CNOTDihedral(n_qubits)[source]¶
CNOT-dihedral Object Class. The CNOT-dihedral group on n qubits is generated by the gates CNOT, T and X.
Attributes
Return a string representation of a CNOT-dihedral object.
Methods
CNOTDihedral.__mul__
(other)Left multiplication self * other.
CNOTDihedral.cnot
(i, j)Apply a CNOT gate to this element.
Apply X to this element.
CNOTDihedral.phase
(k, i)Apply an k-th power of T to this element.