cirq.LineQubit

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

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

__init__(x: int) → None[source]

Initializes a line qubit at the given x coordinate.

Methods

is_adjacent(other) Determines if two qubits are adjacent line qubits.
range(*range_args) Returns a range of line qubits.