Description Usage Arguments Details
A qubit on a 1d lattice with nearest-neighbor connectivity.
1 | qubit_line(x)
|
x |
a linear array |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.