Documentation

QEC1.Remarks.Rem_2_GraphConvention

Rem_2: Graph Convention #

Statement #

Given a connected graph $G = (V_G, E_G)$ with vertex set $V_G$ and edge set $E_G$, we identify the vertices of $G$ with the qubits in the support of the logical operator $L$. For each edge $e \in E_G$, we introduce an auxiliary 'gauge qubit' initialized in the state $|0\rangle_e$. The graph $G$ may also include additional 'dummy vertices' beyond the qubits in the support of $L$. For each dummy vertex $v$, we add an auxiliary qubit initialized in the $|+\rangle$ state and gauge the operator $L \cdot X_v$. These dummy vertices have no effect on the gauging measurement outcome since measuring $X_v$ on a $|+\rangle$ state always returns $+1$.

Main Definitions #

Key Properties #

Qubit Types in the Gauging Protocol #

inductive QubitType :

The different types of qubits involved in the gauging measurement protocol

  • LogicalSupport : QubitType

    Original code qubits in the support of L

  • EdgeQubit : QubitType

    Auxiliary gauge qubits on edges, initialized in |0⟩

  • DummyQubit : QubitType

    Auxiliary qubits for dummy vertices, initialized in |+⟩

Instances For
    Equations
    Equations
    Instances For

      The initial state for each qubit type

      • zero : InitialState

        The |0⟩ state (computational basis zero)

      • plus : InitialState

        The |+⟩ state ((|0⟩ + |1⟩)/√2)

      • encoded : InitialState

        Unspecified (for logical qubits, depends on encoded state)

      Instances For
        Equations
        • One or more equations did not get rendered due to their size.
        Instances For

          Measurement Outcomes #

          Possible measurement outcomes for X-basis measurements

          Instances For
            Equations
            • One or more equations did not get rendered due to their size.
            Instances For

              Convert measurement outcome to a sign (±1 as integer)

              Equations
              Instances For

                Key Property: X measurement on |+⟩ always returns +1 #

                The key property that measuring X on the |+⟩ state always yields +1. This is because |+⟩ is the +1 eigenstate of the Pauli X operator: X|+⟩ = |+⟩ (eigenvalue +1)

                Equations
                Instances For

                  Theorem: X measurement on |+⟩ always returns +1

                  The deterministic outcome property: measuring X on |+⟩ has probability 1 for +1 outcome

                  Instances For

                    Gauging Graph Convention Structure #

                    A gauging graph convention specifies how a connected graph G relates to the logical operator L being measured. This captures the key conventions from Rem_2:

                    1. Vertices of G are identified with qubits in supp(L)
                    2. Each edge e ∈ E_G gets an auxiliary gauge qubit in |0⟩
                    3. Dummy vertices (V_G \ supp(L)) get auxiliary qubits in |+⟩
                    4. Dummy vertices have no effect on measurement outcome (X on |+⟩ → +1)
                    Instances For

                      Vertex Classification #

                      A vertex is a support vertex if it corresponds to a qubit in supp(L)

                      Equations
                      Instances For

                        A vertex is a dummy vertex if it's not in the logical support

                        Equations
                        Instances For

                          Every vertex is either a support vertex or a dummy vertex

                          Support and dummy vertices are mutually exclusive

                          The set of dummy vertices

                          Equations
                          Instances For

                            The number of dummy vertices

                            Equations
                            Instances For

                              Qubit Type Assignment #

                              @[simp]

                              Support vertices are assigned LogicalSupport type

                              @[simp]

                              Dummy vertices are assigned DummyQubit type

                              All edges are assigned EdgeQubit type

                              Equations
                              Instances For

                                Initial States #

                                @[simp]

                                Dummy vertex qubits are initialized in |+⟩

                                Dummy Vertex Measurement Property #

                                The key property: measuring X on a dummy vertex always gives +1. This is because the dummy qubit is in |+⟩, which is the +1 eigenstate of X.

                                Equations
                                Instances For
                                  theorem GaugingGraphConvention.dummy_product_is_one (G : GaugingGraphConvention) (S : Finset G.Vertex) :
                                  (∀ vS, G.isDummyVertex v)_vS, 1 = 1

                                  The product of measurement outcomes over dummy vertices is +1. This is formulated using integers since GraphMeasurementOutcome doesn't have CommMonoid.

                                  Edge and Qubit Counts #

                                  The number of edges in the graph (= number of gauge qubits)

                                  Equations
                                  Instances For

                                    The total number of auxiliary qubits = edge qubits + dummy qubits

                                    Equations
                                    Instances For

                                      The total number of qubits involved = logical support + auxiliary

                                      Equations
                                      Instances For

                                        Gauging Operator Extension #

                                        When gauging L with dummy vertices, we actually gauge L · ∏_{v ∈ dummy} X_v. Since each dummy vertex measurement gives +1, this doesn't change the outcome.

                                        This captures: "gauge the operator L · X_v" for each dummy vertex v.

                                        Equations
                                        Instances For

                                          The effective logical support includes all vertices (support ∪ dummy)

                                          The effective logical support contains the original logical support

                                          Key Theorem: Dummy Vertices Don't Affect Outcome #

                                          theorem GaugingGraphConvention.dummy_vertices_no_effect (G : GaugingGraphConvention) (dummies : Finset G.Vertex) :
                                          (∀ vdummies, G.isDummyVertex v)(∏ vdummies, if G.isDummyVertex v then 1 else 0) = 1

                                          The main theorem of this remark: dummy vertices have no effect on the gauging measurement outcome because:

                                          1. Each dummy vertex v has qubit initialized in |+⟩
                                          2. The gauging measures X_v on the dummy qubit
                                          3. Measuring X on |+⟩ always returns +1
                                          4. Therefore, the product over dummy vertices contributes factor 1

                                          Alternative formulation: the contribution of dummy vertices to the measurement outcome is the neutral element

                                          Summary of Convention #

                                          The graph convention establishes:

                                          1. Vertex-Qubit Correspondence: Vertices V_G ↔ qubits, with supp(L) ⊆ V_G
                                          2. Edge Qubits: Each edge e ∈ E_G gets an auxiliary qubit initialized in |0⟩
                                          3. Dummy Vertices: Vertices in V_G \ supp(L) get auxiliary qubits in |+⟩
                                          4. No-Effect Property: Dummy vertices don't affect measurement outcome because measuring X on |+⟩ deterministically gives +1

                                          This convention allows the gauging graph to be larger than supp(L), enabling graph constructions that satisfy expansion and path-length requirements while maintaining the correctness of the logical measurement.