grid_qid: Grid Qid

Description Usage Arguments Details Value See Also

View source: R/Devices.R

Description

A qid on a 2d square lattice

Usage

1
grid_qid(row, col, dimension)

Arguments

row

the row coordinate

col

the column coordinate

dimension

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

Details

GridQid uses row-major ordering: GridQid(0, 0, dimension=2) < GridQid(0, 1, dimension=2) < GridQid(1, 0, dimension=2) < GridQid(1, 1, dimension=2) New GridQid can be constructed by adding or subtracting lists grid_qid(2, 3, dimension=2) + (3, 1) grid_qid(5, 4, dimension=2) grid_qid(2, 3, dimension=2) - (1, 2) grid_qid(1, 1, dimension=2)

Value

grid qit

See Also

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


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