surface_sim.layouts.Layout.adjacency_matrix#
- layouts.Layout.adjacency_matrix()#
Returns the adjaceny matrix corresponding to the layout.
The layout is encoded as a directed graph, such that there are two edges in opposite directions between each pair of neighboring qubits.
- Returns:
- ajd_matrix
The adjacency matrix.