Documentation

QEC1.Remarks.Rem_10_Parallelization

Rem_10: Parallelization of Gauging Measurements #

Statement #

The gauging measurement can be applied to multiple logical operators in parallel, provided that:

  1. Commutativity: No pair of logical operators being measured simultaneously act on a common qubit via different non-trivial Pauli operators (e.g., one acts by $X$ and another by $Z$ on the same qubit).

  2. Bounded overlap: To maintain an LDPC code during code deformation, only a constant number of logical operators being measured share support on any single qubit.

For codes supporting many disjoint logical representatives, this offers highly parallelized logical gates. Additionally, one can trade space overhead for time overhead by performing $2m-1$ measurements of equivalent logical operators in parallel for $d/m$ rounds and taking a majority vote to determine the classical outcome.

Main Definitions #

Main Results #

Pauli Compatibility Condition #

Two Pauli types are compatible if they don't conflict on the same qubit. A conflict occurs when one acts as purely X-type and the other as purely Z-type. (e.g., X and Z conflict, but X and X are compatible, I and anything is compatible)

Compatible means: NOT (one is purely X-type AND the other is purely Z-type).

Equations
Instances For

    Same Pauli types are always compatible

    Identity is compatible with everything

    Compatibility is symmetric

    Condition 1: Commutativity (Pauli Compatibility on Shared Qubits) #

    def QEC1.PauliCompatible {n : } (P Q : PauliOp n) :

    Two Pauli operators are Pauli-compatible if for every qubit where both act nontrivially, their Pauli types are compatible (i.e., not one X-type and one Z-type).

    Equations
    Instances For

      Pauli compatibility implies the operators can be measured in parallel without conflict

      The identity operator is compatible with any operator

      Commutativity Condition for parallel gauging measurement: A set of logical operators satisfies the commutativity condition if every pair is Pauli-compatible on their shared support.

      Equations
      Instances For

        Singleton sets trivially satisfy commutativity

        Condition 2: Bounded Overlap #

        def QEC1.overlapDegree {C : StabilizerCode} (logicals : Finset (LogicalOp C)) (i : Fin C.n) :

        The overlap degree of a qubit with respect to a set of operators: how many operators in the set have support on this qubit.

        Equations
        Instances For

          Bounded Overlap Condition: At most k logical operators share support on any single qubit. This is required to maintain LDPC property during code deformation.

          Equations
          Instances For
            theorem QEC1.BoundedOverlapCondition.of_card_le {C : StabilizerCode} (logicals : Finset (LogicalOp C)) (k : ) (h : logicals.card k) :

            If k ≥ |logicals|, the bounded overlap condition is trivially satisfied

            Singleton sets have overlap degree at most 1

            Parallelizable Logicals #

            A set of logical operators is parallelizable if it satisfies both conditions:

            1. Commutativity: no pair acts differently (X vs Z) on a common qubit
            2. Bounded overlap: at most k operators share any qubit

            The bound k must be constant to maintain LDPC property.

            Instances For

              The number of logical operators being measured in parallel

              Equations
              Instances For

                Any single logical operator is trivially parallelizable

                Equations
                Instances For

                  Disjoint Logicals #

                  Two logical operators have disjoint support if they share no qubits.

                  Equations
                  Instances For

                    A set of logicals has pairwise disjoint support if every pair is disjoint.

                    Equations
                    Instances For
                      theorem QEC1.DisjointSupport.pauli_compatible {C : StabilizerCode} {L₁ L₂ : LogicalOp C} (h : DisjointSupport L₁ L₂) :

                      Disjoint operators are Pauli-compatible (vacuously, no shared qubit).

                      Pairwise disjoint logicals satisfy the commutativity condition.

                      Pairwise disjoint logicals have overlap degree at most 1 everywhere.

                      Disjoint logicals are parallelizable: codes with many disjoint logical representatives can perform highly parallelized logical gates.

                      Equations
                      Instances For

                        Space-Time Tradeoff #

                        Space-Time Tradeoff for the gauging measurement.

                        One can trade space overhead for time overhead:

                        • Perform 2m-1 measurements of equivalent logical operators in parallel
                        • For d/m rounds
                        • Take a majority vote to determine the classical outcome

                        Parameters:

                        • d: the code distance
                        • m: the tradeoff parameter (divides d)
                        • The number of parallel equivalent measurements is 2m-1
                        • The number of rounds is d/m
                        • distance :

                          Code distance

                        • m :

                          Tradeoff parameter

                        • m_pos : self.m > 0

                          m must be positive

                        • m_divides_d : self.m self.distance

                          m divides d (for clean arithmetic)

                        Instances For

                          Number of parallel measurements of equivalent logical operators: 2m - 1

                          Equations
                          Instances For

                            Number of rounds for the measurement: d/m

                            Equations
                            Instances For

                              When m divides d, numRounds * m = d

                              The majority vote threshold: more than half of 2m-1 measurements, i.e., at least m

                              Equations
                              Instances For

                                Majority threshold is exactly half of 2m-1 rounded up

                                Total logical measurements across all rounds

                                Equations
                                Instances For

                                  The total measurements formula: (2m-1) * (d/m)

                                  Special cases #

                                  Minimal space overhead: m = d, giving 2d-1 parallel measurements in 1 round

                                  Equations
                                  Instances For
                                    @[simp]

                                    Minimal time overhead: m = 1, giving 1 parallel measurement in d rounds

                                    Equations
                                    Instances For
                                      @[simp]
                                      theorem QEC1.SpaceTimeTradeoff.minTime_numRounds (d : ) (_hd : d > 0) :
                                      (minTime d _hd).numRounds = d

                                      Combined Parallelization Theorem #

                                      The parallelization theorem: gauging measurement can be applied to multiple logical operators in parallel if and only if both conditions are satisfied.

                                      Condition 1 (Commutativity): No pair acts by different non-trivial Paulis on any qubit. Condition 2 (Bounded Overlap): At most k operators share support on any qubit.

                                      This theorem captures the main claim of Rem_10.

                                      Majority Vote Correctness #

                                      For the space-time tradeoff: (2m-1) is always odd, ensuring a clear majority.

                                      The majority vote always gives a definite outcome (no ties possible).

                                      Summary #

                                      The parallelization remark establishes:

                                      1. Commutativity Condition: For parallel measurement, no pair of logical operators should act on a common qubit via different non-trivial Paulis (e.g., X vs Z).

                                      2. Bounded Overlap Condition: To maintain LDPC property during code deformation, at most a constant number of logicals can share support on any single qubit.

                                      3. Disjoint Representatives: Codes with many disjoint logical representatives naturally satisfy both conditions (overlap degree 1).

                                      4. Space-Time Tradeoff: One can trade space for time:

                                        • 2m-1 parallel measurements of equivalent logicals
                                        • d/m rounds of measurement
                                        • Majority vote determines the classical outcome