DihedralUtils.cnot_dihedral_gates

DihedralUtils.cnot_dihedral_gates(idx, G_table, G_keys)[source]

Make a single CNOT-dihedral element on num_qubits.

Parameters
  • idx (int) – a unique index of a single CNOT-dihedral element.

  • G_table (dict) – the CNOT-dihedral group table on num_qubits.

  • G_keys (list) – list of keys to the CNOT-dihedral group table.

Returns

A single CNOT-dihedral element on num_qubits.

Return type

CNOTDihedral