DihedralUtils.find_key

DihedralUtils.find_key(elem, num_qubits)[source]

Find the key of a CNOTDihedral object in the group table.

Parameters
  • elem (CNOTDihedral) – CNOTDihedral object

  • num_qubits (int) – the dimension of the CNOTDihedral object.

Returns

A unique key to the CNOT-dihedral group table.

Return type

str