Description Usage Arguments Details Value See Also
A qid on a 1d lattice with nearest-neighbor connectivity.
1 | line_qid(x, dimension)
|
x |
The x coordinate. |
dimension |
The dimension of the qid, e.g. the number of quantum levels. |
‘LineQid's have a single attribute, and integer coordinate ’x', which identifies the qids location on the line. 'LineQid's are ordered by this integer. One can construct new 'LineQid's by adding or subtracting integers: line_qid(1, dimension=2) + 3 Output: cirq.LineQid(4, dimension=2) line_qid(2, dimension=3) - 1 Output: cirq.LineQid(1, dimension=3)
initialized line qid at the given x coordinate.
Other Devices:
grid_qid()
,
grid_qubit()
,
line_qubit()
,
named_qubit()
,
qid()
,
unconstrained_device()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.