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:
- Preparing an auxiliary GHZ state |GHZ⟩ = (1/√2)(|0⟩^⊗W + |1⟩^⊗W) where W = |supp(L)|
- Entangling it to a code block via transversal CX gates between the auxiliary qubits and the support of the X logical L
- 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:
- For each qubit v in the support of L, create a dummy vertex u_v connected to v by an edge
- 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 #
shorStyleGaugingConvention: GaugingGraphConvention for Shor-style measurementshorStyle_vertex_count: Total vertex count is 2WshorStyle_edge_count_path: Edge count using path connectivity is 2W - 1shorStyle_edge_count_star: Edge count using star connectivity is 2W - 1shor_gauging_correspondence: Formal correspondence between Shor-style and gaugingShorPathGraphWithCycles: GraphWithCycles instance connecting to gauging frameworkshorPath_gaussLaw_product_is_L: Product of Gauss's law operators yields L
Vertex and Edge Types for the Shor-Style Gauging Graph #
The graph has two kinds of vertices:
- Support vertices:
Fin Wrepresenting the qubits in supp(L) - Dummy vertices:
Fin Wrepresenting the auxiliary qubits u_v
We model both as Bool × Fin W where:
(false, i)= support vertex (qubit i in supp(L))(true, i)= dummy vertex u_i
The vertex type: (false, i) = support vertex, (true, i) = dummy vertex.
Equations
Instances For
Support vertices form the logical support of L.
Equations
Instances For
Dummy vertices are the auxiliary qubits.
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:
- Cross edges: connecting each support vertex (false, i) to its dummy vertex (true, i)
- Dummy edges: connecting dummy vertices to each other via a connected graph
We consider two connectivity patterns for the dummy edges:
- Path: (true, 0) — (true, 1) — ... — (true, W-1)
- Star: (true, 0) — (true, i) for all i > 0
Edge type for the Shor-style gauging graph with path connectivity on dummies.
- cross
{W : ℕ}
: Fin W → ShorEdgePath W
Cross edge connecting (false, i) to (true, i)
- dummyPath
{W : ℕ}
: Fin (W - 1) → ShorEdgePath W
Path edge connecting (true, i) to (true, i+1)
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.
- cross
{W : ℕ}
: Fin W → ShorEdgeStar W
Cross edge connecting (false, i) to (true, i)
- dummyStar
{W : ℕ}
: Fin (W - 1) → ShorEdgeStar W
Star edge connecting (true, 0) to (true, i+1)
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
- QEC1.ShorStyleMeasurementAsGauging.shorPathGraph W = { Adj := QEC1.ShorStyleMeasurementAsGauging.shorPathAdj W, symm := ⋯, loopless := ⋯ }
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
- QEC1.ShorStyleMeasurementAsGauging.shorStarGraph W = { Adj := QEC1.ShorStyleMeasurementAsGauging.shorStarAdj W, symm := ⋯, loopless := ⋯ }
Instances For
Edge Endpoints #
Endpoints for each edge of the path-connectivity graph.
Equations
Instances For
Endpoints for each edge of the star-connectivity graph.
Equations
- QEC1.ShorStyleMeasurementAsGauging.shorStarEdgeEndpoints W hW (QEC1.ShorStyleMeasurementAsGauging.ShorEdgeStar.cross i) = ((false, i), true, i)
- QEC1.ShorStyleMeasurementAsGauging.shorStarEdgeEndpoints W hW (QEC1.ShorStyleMeasurementAsGauging.ShorEdgeStar.dummyStar i) = ((true, ⟨0, hW⟩), true, ⟨↑i + 1, ⋯⟩)
Instances For
Each path edge connects adjacent vertices.
Each star edge connects adjacent vertices.
Symmetry for path edges.
Symmetry for star edges.
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.
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 #
Classification of edges into cross edges and dummy edges.
Equations
Instances For
Equations
Instances For
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.
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:
- Start with |+⟩^⊗W on dummy qubits
- CX gates from dummy path edges entangle dummy qubits
- 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 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:
- Prepare GHZ on W dummy qubits → Initialize in |+⟩, measure dummy edges (Z)
- Apply CX between (dummy_i, support_i) → Gauss's law entangling step for cross edges
- 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 product of all Gauss's law operators yields L.
The full Shor-style/gauging correspondence.
Star Connectivity Variant #
The star graph also has 2W - 1 edges, same as the path variant.
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.
The product of all Gauss's law edge supports is zero.
Combined: ∏_v A_v = L on the Shor-style graph.
Summary #
The Shor-style logical measurement is recovered from the gauging framework by:
Graph structure: Support vertices paired with dummy vertices via cross edges, dummy vertices connected by a path (or star).
GHZ preparation via gauging: Measuring Z on dummy edges first produces the GHZ state on dummy qubits (all Z_{i}Z_{i+1} stabilized).
CX entangling via Gauss's law: The cross edges implement CX gates between support and dummy qubits, captured by the Gauss's law operators.
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.
Product = L: The product of all measurement outcomes equals the eigenvalue of L, exactly as in the general gauging framework (Def_2, Property 3).