Module: cirq.google.api.v2.program

Functions

grid_qubit_from_proto_id(...): Parse a proto id to a cirq.GridQubit.

line_qubit_from_proto_id(...): Parse a proto id to a cirq.LineQubit.

named_qubit_from_proto_id(...): Parse a proto id to a `cirq.NamedQubit'

qubit_from_proto_id(...): Return a cirq.Qid for a proto id.

qubit_to_proto_id(...): Return a proto id for a cirq.Qid.

GRID_QUBIT_ID_PATTERN '^q?(-?\\d+)_(-?\\d+)$'
TYPE_CHECKING False