qubit_line: Line Qubit

Description Usage Arguments Details

View source: R/Qubits.R

Description

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

Usage

1

Arguments

x

a linear array

Details

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(4) >>> cirq.LineQubit(2) - 1 cirq.LineQubit(1)


henry090/Cirq documentation built on June 13, 2020, 1:28 a.m.