A verifiable quantum advantage towards real world applications: Quantum Echoes
Learn more
cirq_google.api.v2.qubit_to_proto_id
Return a proto id for a cirq.Qid.
cirq_google.api.v2.qubit_to_proto_id(
q: cirq.Qid
) -> str
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.
For cirq_google.Couplers, this id is c_{qubit0}_{qubit1} where
qubit0 and qubit1 are the ids for the two Qid in the Coupler.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-14 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[],[]]