Documentation

QEC1.Remarks.Rem_19_ShorStyleMeasurementAsGauging

Rem_19: Shor-Style Measurement as Gauging #

Statement #

Shor-style logical measurement is a special case of gauging measurement.

Shor-style measurement recap: The standard Shor-style measurement involves:

  1. Preparing an auxiliary GHZ state |GHZ⟩ = (1/√2)(|0⟩^⊗W + |1⟩^⊗W) where W = |supp(L)|
  2. Entangling it to a code block via transversal CX gates between the auxiliary qubits and the support of the X logical L
  3. Measuring X on each auxiliary qubit and discarding them

Gauging formulation: The same measurement can be performed using the gauging procedure with the following graph structure:

  1. For each qubit v in the support of L, create a dummy vertex u_v connected to v by an edge
  2. Connect all dummy vertices {u_v} via a connected graph (e.g., a path or star)

Correspondence: If we perform the gauging measurement where the edges of the connected graph on dummy vertices are measured first, the resulting intermediate state corresponds to a GHZ state entangled with the support of L. This is equivalent to Shor-style measurement with the final X measurements commuted backwards through the CX gates.

Main Results #

Vertex and Edge Types for the Shor-Style Gauging Graph #

The graph has two kinds of vertices:

We model both as Bool × Fin W where:

@[reducible, inline]

The vertex type: (false, i) = support vertex, (true, i) = dummy vertex.

Equations
Instances For

    The total number of vertices is 2W.

    The support has W vertices.

    The dummy set has W vertices.

    Edge Types #

    Two kinds of edges:

    1. Cross edges: connecting each support vertex (false, i) to its dummy vertex (true, i)
    2. Dummy edges: connecting dummy vertices to each other via a connected graph

    We consider two connectivity patterns for the dummy edges:

    Edge type for the Shor-style gauging graph with path connectivity on dummies.

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

        Edge type for the Shor-style gauging graph with star connectivity on dummies.

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

            Path Connectivity Graph #

            Adjacency for the Shor-style graph with path connectivity on dummy vertices.

            Equations
            Instances For

              The Shor-style gauging graph with path connectivity.

              Equations
              Instances For

                Star Connectivity Graph #

                Adjacency for the Shor-style graph with star connectivity on dummy vertices.

                Equations
                Instances For

                  The Shor-style gauging graph with star connectivity.

                  Equations
                  Instances For

                    Edge Endpoints #

                    Each path edge connects adjacent vertices.

                    Each star edge connects adjacent vertices.

                    Edge Counts #

                    Both path and star connectivity give the same number of edges: W cross edges + (W-1) dummy edges. Total = 2W - 1.

                    The path-connectivity graph has 2W - 1 edges.

                    The star-connectivity graph has 2W - 1 edges.

                    Independent Cycle Count #

                    For the path graph, by Euler's formula: |E| - |V| + 1 = (2W - 1) - 2W + 1 = 0. The Shor-style gauging graph is a TREE.

                    The Shor-style gauging graph with path connectivity has 0 independent cycles (it's a tree).

                    Gauging Graph Convention Instance #

                    The Shor-style graph satisfies the gauging graph convention from Rem_2.

                    The Shor-style gauging graph is a valid GaugingGraphConvention.

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

                      GHZ State and Correspondence #

                      Cross edges and dummy edges partition the edge set.

                      Cross edges and dummy edges are mutually exclusive.

                      Number of cross edges equals W.

                      Number of dummy path edges equals W - 1.

                      Cross Edges = CX Gates (Entangling Step) #

                      Each cross edge (false, i) — (true, i) corresponds to a CX gate between support qubit i and dummy qubit i.

                      Each support vertex is adjacent to its dummy partner via a cross edge.

                      Cross edges provide a perfect matching between support and dummy vertices.

                      GHZ State from Measuring Dummy Edges First #

                      When the dummy-dummy edges are measured first:

                      1. Start with |+⟩^⊗W on dummy qubits
                      2. CX gates from dummy path edges entangle dummy qubits
                      3. Resulting state on dummy qubits is the GHZ state

                      The Z stabilizers of the GHZ state are Z_i Z_{i+1}, exactly the dummy path edges.

                      The dummy subgraph is a tree: W-1 edges on W vertices.

                      The Z stabilizers of the GHZ state on W qubits are Z_i Z_{i+1} for i = 0,...,W-2. These are exactly the Z operators on the edges of the dummy path.

                      Correspondence: Shor-Style = Gauging #

                      Shor-style steps → Gauging steps:

                      1. Prepare GHZ on W dummy qubits → Initialize in |+⟩, measure dummy edges (Z)
                      2. Apply CX between (dummy_i, support_i) → Gauss's law entangling step for cross edges
                      3. Measure X on each dummy qubit → Measuring Gauss's law operators A_v

                      The X measurements commute backwards through CX: CX† (X ⊗ I) CX = X ⊗ X, giving exactly the Gauss's law operator A_{(true,i)}.

                      The Gauss's law operator at a dummy vertex involves the cross edge to its support partner.

                      CX commutation: CX† (X ⊗ I) CX = X ⊗ X gives the Gauss's law operator.

                      The product of all Gauss's law operators yields L.

                      Star Connectivity Variant #

                      theorem QEC1.ShorStyleMeasurementAsGauging.star_center_adj (W : ) (_hW : W 2) (j : Fin (W - 1)) :

                      Star center is adjacent to all other dummy vertices.

                      The star graph also has 2W - 1 edges, same as the path variant.

                      GraphWithCycles Instance #

                      The graph is a tree (0 independent cycles), so the cycle type is Empty.

                      The Shor-style path graph as a GraphWithCycles with no cycles (it's a tree).

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

                        Gauss's Law Properties #

                        The product of all Gauss's law vertex supports is the all-ones vector.

                        Summary #

                        The Shor-style logical measurement is recovered from the gauging framework by:

                        1. Graph structure: Support vertices paired with dummy vertices via cross edges, dummy vertices connected by a path (or star).

                        2. GHZ preparation via gauging: Measuring Z on dummy edges first produces the GHZ state on dummy qubits (all Z_{i}Z_{i+1} stabilized).

                        3. CX entangling via Gauss's law: The cross edges implement CX gates between support and dummy qubits, captured by the Gauss's law operators.

                        4. X measurement = Gauss's law measurement: Measuring X on dummy qubits after CX is equivalent to measuring X_dummy · X_support = A_{dummy vertex}, by the commutation relation CX†(X ⊗ I)CX = X ⊗ X.

                        5. Product = L: The product of all measurement outcomes equals the eigenvalue of L, exactly as in the general gauging framework (Def_2, Property 3).