CouplingGraph.get_subgraph
- CouplingGraph.get_subgraph(location, renumbering=None)[source]
Returns the sub-coupling-graph with qudits in location.
The qudits in the returned sub-coupling-graph are by default renumbered to lie in [0, len(location)), ordered in increasing order by the sequence given in location. The qudits may be renumbered manually by renumbering but the renumbering must be a permutation of [0, len(location)).