DihedralUtils.find_inverse_gates¶
- DihedralUtils.find_inverse_gates(num_qubits, elem)[source]¶
Find the inverse of a CNOT-dihedral element.
- Parameters
num_qubits (int) – the dimension of the CNOTDihedral element.
elem (CNOTDihedral) – an element in the CNOTDihedral group table.
- Returns
An inverse list of gates.
- Return type
list
- Raises
ValueError – number of qubits bigger than 2 is not supported.