cirq_google.api.v2.qubit_to_proto_id

Return a proto id for a cirq.Qid.

For cirq.GridQubits this id {row}_{col} where {row} is the integer row of the grid qubit, and {col} is the integer column of the qubit.

For cirq.NamedQubits this id is the name.

For cirq.LineQubits this is string of the x attribute.