qubiter.device_specific.utilities_ds module

qubiter.device_specific.utilities_ds.get_dir_edges_from_c_to_tars(c_to_tars)[source]

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_bits) to a list, possibly empty, of the physically allowed targets of qubit j, when j is the control of a CNOT.
Returns:
Return type:tuple[tuple[int, int]]