line_qid: Line Qid

Description Usage Arguments Details Value See Also

View source: R/Devices.R

Description

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

Usage

1
line_qid(x, dimension)

Arguments

x

The x coordinate.

dimension

The dimension of the qid, e.g. the number of quantum levels.

Details

‘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)

Value

initialized line qid at the given x coordinate.

See Also

Other Devices: grid_qid(), grid_qubit(), line_qubit(), named_qubit(), qid(), unconstrained_device()


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