CouplingGraph.get_induced_subgraph

CouplingGraph.get_induced_subgraph(location)[source]

Return the edges induced by the vertices specified in location.

Parameters:

location (CircuitLocationLike) – A list of qubits or vertices in the CouplingGraph. The edges connecting each of these vertices together will be extracted.

Returns:

The list of edges connecting vertices in

location.

Return type:

(list[tuple[int,int]])