def coupling_to_arc(coupling_map:List[List[int]]) -> Architecture:
    """
       Produces a :math:`\\mathrm{t|ket}\\rangle` :py:class:`Architecture` corresponding to a (directed) coupling map,
       stating the pairs of qubits between which two-qubit interactions
       (e.g. CXs) can be applied.

    :param coupling_map: Pairs of indices where each pair [control, target]
       permits the use of CXs between them
    
    :return: The :math:`\\mathrm{t|ket}\\rangle` :py:class:`Architecture` capturing the behaviour of the coupling map
    """
    coupling = CouplingMap(couplinglist=coupling_map)
    return DirectedGraph(coupling_map,coupling.size())
def coupling_to_arc ( coupling_map : List [ List [ int ] ] ) -> Architecture : coupling = CouplingMap ( couplinglist = coupling_map ) return DirectedGraph ( coupling_map , coupling . size ( ) )
Produces a :math:`\\mathrm{t|ket}\\rangle` :py:class:`Architecture` corresponding to a (directed) coupling map,
       stating the pairs of qubits between which two-qubit interactions
       (e.g. CXs) can be applied.

    :param coupling_map: Pairs of indices where each pair [control, target]
       permits the use of CXs between them
    
    :return: The :math:`\\mathrm{t|ket}\\rangle` :py:class:`Architecture` capturing the behaviour of the coupling map