exa.core.util.topology.get_connectivity_graph

exa.core.util.topology.get_connectivity_graph#

get_connectivity_graph(chip_topology, chip_layout=None, limit_to_components=None)#

Get QPU connectivity graph from the chip topology, restricted to certain components.

Construct a networkx graph of the qubits and computational resonators, connected if a coupler exists between them. Each node has a “pos” attribute which corresponds to the approximate and rescaled position of the qubit on the chip.

Parameters:
  • chip_topology (ChipTopology) – Topology of the chip.

  • chip_layout (ChipLayout | None) – Layout of the chip (physical locations).

  • limit_to_components (set[str] | None) – Only include these components. Might result in disconnected graphs.

Return type:

Graph