Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.
Important

IBM Quantum Platform is moving and this version will be sunset on July 1. To get started on the new platform, read the migration guide.

CNOTDihedral

class CNOTDihedral(n_qubits)

GitHub

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.