cirq.contrib.graph_device.uniform_undirected_linear_device

A uniform , undirected graph device whose qubits are arranged

on a line.

Uniformity refers to the fact that all edges of the same size have the same label.

n_qubits The number of qubits.
edge_labels The labels to apply to all edges of a given size.

ValueError keys to edge_labels are not all at least 1.