class cirq.LineQubit(x: int)[source]

A qubit on a 1d lattice with nearest-neighbor connectivity.

LineQubits have a single attribute, and integer coordinate ‘x’, which
identifies the qubits location on the line. LineQubits are ordered by
this integer.

One can construct new LineQubits by adding or subtracting integers:

>>> cirq.LineQubit(1) + 3

>>> cirq.LineQubit(2) - 1
__init__(x: int) → None

Initializes a line qubit at the given x coordinate.