qiskit.transpiler.CouplingMap.subgraph¶
- CouplingMap.subgraph(nodelist)[fuente]¶
Return a CouplingMap object for a subgraph of self.
nodelist (list): list of integer node labels
Obsoleto desde la versión 0.20.0: The method
qiskit.transpiler.coupling.CouplingMap.subgraph()
is deprecated as of qiskit-terra 0.20.0. It will be removed no earlier than 3 months after the release date. Instead, usereduce()
. It does the same thing, but preserves nodelist order.