DihedralUtils.elem_to_gates¶
- DihedralUtils.elem_to_gates(circ)[source]¶
Convert a CNOT-dihedral list of gates for the QuantumCircuit.
- Parameters
circ (list) – list of gates of an element in the CNOT-dihedral group (from the group table).
- Returns
List of gates for the QuantumCircuit.
- Return type
list
- Raises
ValueError – unknown gate type.