![]() |
A uniform , undirected graph device whose qubits are arranged
cirq.contrib.graph_device.uniform_undirected_linear_device(
n_qubits: int,
edge_labels: Mapping[int, Optional[UndirectedGraphDeviceEdge]]
) -> cirq.contrib.graph_device.UndirectedGraphDevice
on a line.
Uniformity refers to the fact that all edges of the same size have the same label.
Args | |
---|---|
n_qubits
|
The number of qubits. |
edge_labels
|
The labels to apply to all edges of a given size. |
Raises | |
---|---|
ValueError
|
keys to edge_labels are not all at least 1. |