qid: Qid

Description Usage Arguments Details Value See Also

View source: R/Devices.R

Description

Identifies a quantum object such as a qubit, qudit, resonator, etc.

Usage

1

Arguments

...

parameters to pass.

Details

Child classes represent specific types of objects, such as a qubit at a particular location on a chip or a qubit with a particular name. The main criteria that a custom qid must satisfy is comparability. Child classes meet this criteria by implementing the _comparison_key method. For example, cirq.LineQubit’s _comparison_key method returns self.x. This ensures that line qubits with the same x are equal, and that line qubits will be sorted ascending by x. Qid implements all equality, comparison, and hashing methods via _comparison_key.

Value

qid object.

See Also

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


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