Parent type for all device specific metadata classes.
cirq.DeviceMetadata(
qubits: Iterable['cirq.Qid'], nx_graph: 'nx.Graph'
)
Args |
qubits
|
Iterable of cirq.Qid s that exist on the device.
|
nx_graph
|
nx.Graph describing qubit connectivity
on a device. Nodes represent qubits, directed edges indicate
directional coupling, undirected edges indicate bi-directional
coupling.
|
Attributes |
nx_graph
|
Returns a nx.Graph where nodes are qubits and edges are couple-able qubits.
|
qubit_set
|
Returns the set of qubits on the device.
|
Methods
__eq__
View source
__eq__(
other: _SupportsValueEquality
) -> bool
__ne__
View source
__ne__(
other: _SupportsValueEquality
) -> bool