qubiter.device_specific.utilities_ds module


Returns tuple of all allowed directed edges (c, t) where c control and t target.

Parameters:c_to_tars (dict[int, list[int]]) – a dictionary mapping j in range(num_qbits) to a list, possibly empty, of the physically allowed targets of qubit j, when j is the control of a CNOT.
Return type:tuple[tuple[int, int]]