CNOTDihedral
CNOTDihedral(n_qubits)
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?
Report a bug or request content on GitHub.