Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

Hardware Circuit Factors

Abstract

HardwareCircuitFactors describes the forced-twin mechanism for QPU-restricted IQP circuits.

Definition 1.1 (connector).

Formalization. D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.connector (✓ std3).

Source. Repository-derived.

Commentary.

The displayed expression defines connector. Fin.divNat and Fin.modNat give the quotient and remainder after the product-size cast. Nat.div and Nat.mod denote integer division and remainder; every cast displays its target or equality proof.

Definition 1.2 (hardwareAdj).

Formalization. D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.hardwareAdj (✓ std3).

Source. Repository-derived.

Commentary.

The displayed expression defines hardwareAdj.

Definition 1.3 (H).

Formalization. D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.H (✓ std3).

Source. Repository-derived.

Commentary.

The simple hardware graph has the displayed adjacency: each component is K6 without the edge between vertices 4 and 5, and consecutive blocks have the cyclic connector from 5 to 4.

Definition 1.4 (hardwareEdges).

Formalization. D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.hardwareEdges (✓ std3).

Source. Repository-derived.

Commentary.

The displayed expression defines hardwareEdges.

Definition 1.5 (edgeDegree).

Formalization. D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.edgeDegree (✓ std3).

Source. Repository-derived.

Commentary.

The displayed expression defines edgeDegree.

Definition 1.6 (F4).

Formalization. D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.F4 (✓ std3).

Citation. D. A. Lidar (2025). Digital-Analog-Digital Quantum Supremacy. DOI: 10.48550/arXiv.2512.07127. URL: https://arxiv.org/abs/2512.07127v1.

Commentary.

Definition 1, p. 4, verbatim from the source TeX: “Let \mH_n=(\mV_{\mH},\mE_{\mH}) be a fixed simple D-regular hardware graph on n labeled vertices, and let 3\le d\le D be a fixed constant (n-independent). The \emph{d-factors} of a graph \mH are \mF_d(\mH) \equiv {\mG=(\mV,\mE_{\mG}) : \mE_{\mG}\subseteq \mE_{\mH},\deg_{\mG}(v)=d\ \forall v\in\mV}. The \emph{QPU-restricted graph ensemble} is the probability space \mathrm{Unif}[\mF_d(\mH_n)] in which, for each run of \UDAD, a graph \mG\in\mF_d(\mH_n) is drawn uniformly at random.” Here d is four; ordered endpoint pairs record each undirected edge once, and all four-factors are retained.

Definition 1.7 (randomLayer).

Formalization. D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.randomLayer (✓ std3).

Citation. D. A. Lidar (2025). Digital-Analog-Digital Quantum Supremacy. DOI: 10.48550/arXiv.2512.07127. URL: https://arxiv.org/abs/2512.07127v1.

Commentary.

The displayed expression defines randomLayer.

Definition 1.8 (HZ).

Formalization. D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.HZ (✓ std3).

Citation. D. A. Lidar (2025). Digital-Analog-Digital Quantum Supremacy. DOI: 10.48550/arXiv.2512.07127. URL: https://arxiv.org/abs/2512.07127v1.

Commentary.

Equation (19) uses the Hamiltonian H prime Z from Eq. (19b): each single-qubit angle is fixed to pi/7, and every selected edge has coupling pi/4. The diagonal entries use the Z eigenvalues of the bit string.

Definition 1.9 (circuit).

Formalization. D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.circuit (✓ std3).

Citation. D. A. Lidar (2025). Digital-Analog-Digital Quantum Supremacy. DOI: 10.48550/arXiv.2512.07127. URL: https://arxiv.org/abs/2512.07127v1.

Commentary.

Equation (19), verbatim: \UIQP^{(\theta)} = U_{\mathrm{R}}^{(\theta)} e^{-i H’_Z} W^{\otimes n}. The definition is this literal matrix product, with randomLayer the tensor product of hadamard times rotation 1 theta_i in Bool coordinates.

Definition 1.10 (outputProbability).

Formalization. D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.outputProbability (✓ std3).

Citation. D. A. Lidar (2025). Digital-Analog-Digital Quantum Supremacy. DOI: 10.48550/arXiv.2512.07127. URL: https://arxiv.org/abs/2512.07127v1.

Commentary.

The probability is the squared modulus of the literal circuit matrix element from the all-false input to the output s.

Definition 1.11 (uniformAngles).

Formalization. D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.uniformAngles (✓ std3).

Citation. D. A. Lidar (2025). Digital-Analog-Digital Quantum Supremacy. DOI: 10.48550/arXiv.2512.07127. URL: https://arxiv.org/abs/2512.07127v1.

Commentary.

The angle distribution is specified on p. 4, verbatim from the source TeX: “We choose i.i.d. angles {\theta_i}_{i=1}^n uniformly from [0,2\pi),”. The displayed product measure expresses the independence of all coordinates.

Definition 1.12 (joint).

Formalization. D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.joint (✓ std3).

Citation. D. A. Lidar (2025). Digital-Analog-Digital Quantum Supremacy. DOI: 10.48550/arXiv.2512.07127. URL: https://arxiv.org/abs/2512.07127v1.

Commentary.

The graph and angles are independent; their joint law is the product measure.

Definition 1.13 (tailProbability).

Formalization. D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.tailProbability (✓ std3).

Citation. D. A. Lidar (2025). Digital-Analog-Digital Quantum Supremacy. DOI: 10.48550/arXiv.2512.07127. URL: https://arxiv.org/abs/2512.07127v1.

Commentary.

The displayed expression defines tailProbability.

Definition 1.14 (localEdges).

Formalization. D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.localEdges (✓ std3).

Source. Repository-derived.

Commentary.

The displayed table defines localEdges : Fin 14 → Fin 6 × Fin 6, the fourteen internal edges of K6 with the edge (4,5) removed.

Definition 1.15 (localDegree).

Formalization. D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.localDegree (✓ std3).

Source. Repository-derived.

Commentary.

The displayed expression defines localDegree.

Definition 1.16 (boundaryDegree).

Formalization. D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.boundaryDegree (✓ std3).

Source. Repository-derived.

Commentary.

The displayed expression defines boundaryDegree.

Definition 1.17 (LocalMatching).

Formalization. D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.LocalMatching (✓ std3).

Source. Repository-derived.

Commentary.

The displayed expression defines LocalMatching.

Definition 1.18 (blockEquiv).

Formalization. D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.blockEquiv (✓ std3).

Source. Repository-derived.

Commentary.

The displayed expression defines blockEquiv.

Theorem 1.19 (blockEquiv val).

Proof. Machine-checked in Lean as D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.blockEquiv_val (✓ std3). ∎

Source. Repository-derived.

Commentary.

This statement supplies the indicated blockEquiv val relation for the finite twin-pair calculation.

Theorem 1.20 (component encode).

Proof. Machine-checked in Lean as D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.block_encode (✓ std3). ∎

Source. Repository-derived.

Commentary.

This statement supplies the indicated component encode relation for the finite twin-pair calculation.

Definition 1.21 (localNeighbours).

Formalization. D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.localNeighbours (✓ std3).

Source. Repository-derived.

Commentary.

The displayed expression defines localNeighbours.

Theorem 1.22 (hardware adj encoded).

Proof. Machine-checked in Lean as D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.hardware_adj_encoded (✓ std3). ∎

Source. Repository-derived.

Commentary.

This statement supplies the indicated hardware adj encoded relation for the finite twin-pair calculation.

Theorem 1.23 (cyclic next val).

Proof. Machine-checked in Lean as D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.cyclic_next_val (✓ std3). ∎

Source. Repository-derived.

Commentary.

This statement supplies the indicated cyclic next val relation for the finite twin-pair calculation.

Theorem 1.24 (cyclic prev iff).

Proof. Machine-checked in Lean as D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.cyclic_prev_iff (✓ std3). ∎

Source. Repository-derived.

Commentary.

This statement supplies the indicated cyclic prev iff relation for the finite twin-pair calculation.

Theorem 1.25 (cyclic next iff).

Proof. Machine-checked in Lean as D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.cyclic_next_iff (✓ std3). ∎

Source. Repository-derived.

Commentary.

This statement supplies the indicated cyclic next iff relation for the finite twin-pair calculation.

Theorem 1.26 (hardware adj encoded cycle).

Proof. Machine-checked in Lean as D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.hardware_adj_encoded_cycle (✓ std3). ∎

Source. Repository-derived.

Commentary.

This statement supplies the indicated hardware adj encoded cycle relation for the finite twin-pair calculation.

Theorem 1.27 (encoded neighbours card).

Proof. Machine-checked in Lean as D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.encoded_neighbours_card (✓ std3). ∎

Source. Repository-derived.

Commentary.

This statement supplies the indicated encoded neighbours card relation for the finite twin-pair calculation.

Theorem 1.28 (orderedEdge hardware).

Proof. Machine-checked in Lean as D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.orderedEdge_hardware (✓ std3). ∎

Source. Repository-derived.

Commentary.

This statement supplies the indicated orderedEdge hardware relation for the finite twin-pair calculation.

Theorem 1.29 (hardware incident card).

Proof. Machine-checked in Lean as D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.hardware_incident_card (✓ std3). ∎

Source. Repository-derived.

Commentary.

This statement supplies the indicated hardware incident card relation for the finite twin-pair calculation.

Theorem 1.30 (hardware degree five).

Proof. Machine-checked in Lean as D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.hardware_degree_five (✓ std3). ∎

Source. Repository-derived.

Commentary.

For more than one component the hardware is five-regular, as required by Definition 1 with D=5.

Theorem 1.31 (factor complement matching).

Proof. Machine-checked in Lean as D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.factor_complement_matching (✓ std3). ∎

Source. Repository-derived.

Commentary.

This statement supplies the indicated factor complement matching relation for the finite twin-pair calculation.

Definition 1.32 (edgeAdj).

Formalization. D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.edgeAdj (✓ std3).

Source. Repository-derived.

Commentary.

The displayed expression defines edgeAdj.

Theorem 1.33 (edgeAdj hardware).

Proof. Machine-checked in Lean as D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.edgeAdj_hardware (✓ std3). ∎

Source. Repository-derived.

Commentary.

This statement supplies the indicated edgeAdj hardware relation for the finite twin-pair calculation.

Theorem 1.34 (edgeAdj symm).

Proof. Machine-checked in Lean as D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.edgeAdj_symm (✓ std3). ∎

Source. Repository-derived.

Commentary.

This statement supplies the indicated edgeAdj symm relation for the finite twin-pair calculation.

Theorem 1.35 (subset incident card).

Proof. Machine-checked in Lean as D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.subset_incident_card (✓ std3). ∎

Source. Repository-derived.

Commentary.

This statement supplies the indicated subset incident card relation for the finite twin-pair calculation.

Theorem 1.36 (matching neighbour unique).

Proof. Machine-checked in Lean as D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.matching_neighbour_unique (✓ std3). ∎

Source. Repository-derived.

Commentary.

This statement supplies the indicated matching neighbour unique relation for the finite twin-pair calculation.

Definition 1.37 (localMatchingFlags).

Formalization. D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.localMatchingFlags (✓ std3).

Source. Repository-derived.

Commentary.

The displayed expression defines localMatchingFlags.

Definition 1.38 (connectorFlag).

Formalization. D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.connectorFlag (✓ std3).

Source. Repository-derived.

Commentary.

The displayed expression defines connectorFlag.

Theorem 1.39 (subset degree local).

Proof. Machine-checked in Lean as D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.subset_degree_local (✓ std3). ∎

Source. Repository-derived.

Commentary.

This statement supplies the indicated subset degree local relation for the finite twin-pair calculation.

Theorem 1.40 (hardware internal vertex).

Proof. Machine-checked in Lean as D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.hardware_internal_vertex (✓ std3). ∎

Source. Repository-derived.

Commentary.

This statement supplies the indicated hardware internal vertex relation for the finite twin-pair calculation.

Theorem 1.41 (factor component twins).

Proof. Machine-checked in Lean as D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.factor_block_twins (✓ std3). ∎

Source. Repository-derived.

Commentary.

Every four-factor contains, in each hardware component, two nonadjacent vertices with the other four component vertices as their exact common neighbourhood. This forces a positive density of twin pairs independently of the choice of factor.

Theorem 1.42 (angle integral eq).

Proof. Machine-checked in Lean as D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.angle_integral_eq (✓ std3). ∎

Source. Repository-derived.

Commentary.

The conditional Lebesgue integral is the interval integral divided by the interval length.

Theorem 1.43 (angle integrable of continuous).

Proof. Machine-checked in Lean as D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.angle_integrable_of_continuous (✓ std3). ∎

Source. Repository-derived.

Commentary.

A continuous real function is integrable over the normalized finite angle interval.

Theorem 1.44 (angle cos mean).

Proof. Machine-checked in Lean as D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.angle_cos_mean (✓ std3). ∎

Source. Repository-derived.

Commentary.

The normalized cosine integral over a full period vanishes.

Definition 1.45 (pairAngle).

Formalization. D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.pairAngle (✓ std3).

Source. Repository-derived.

Commentary.

The displayed expression defines pairAngle.

Definition 1.46 (pairCos).

Formalization. D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.pairCos (✓ std3).

Source. Repository-derived.

Commentary.

The displayed expression defines pairCos.

Theorem 1.47 (fractional markov).

Proof. Machine-checked in Lean as D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.fractional_markov (✓ std3). ∎

Source. Repository-derived.

Commentary.

This statement supplies the indicated fractional markov relation for the finite twin-pair calculation.

Theorem 1.48 (eventual tail bound).

Proof. Machine-checked in Lean as D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.eventual_tail_bound (✓ std3). ∎

Source. Repository-derived.

Commentary.

This statement supplies the indicated eventual tail bound relation for the finite twin-pair calculation.

Theorem 1.49 (normalized periodic shift).

Proof. Machine-checked in Lean as D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.normalized_periodic_shift (✓ std3). ∎

Source. Repository-derived.

Commentary.

This statement supplies the indicated normalized periodic shift relation for the finite twin-pair calculation.

Theorem 1.50 (conditional fractional moment).

Proof. Machine-checked in Lean as D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.conditional_fractional_moment (✓ std3). ∎

Source. Repository-derived.

Commentary.

This statement supplies the indicated conditional fractional moment relation for the finite twin-pair calculation.

Theorem 1.51 (pi periodic shift).

Proof. Machine-checked in Lean as D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.pi_periodic_shift (✓ std3). ∎

Source. Repository-derived.

Commentary.

A bounded continuous function that is periodic in each coordinate has the same normalized product-angle integral after any fixed coordinate shift. The proof integrates one coordinate at a time.

Theorem 1.52 (sign product).

Proof. Machine-checked in Lean as D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.sign_product (✓ std3). ∎

Source. Repository-derived.

Commentary.

This statement supplies the indicated sign product relation for the finite twin-pair calculation.

Definition 1.53 (twinPhase).

Formalization. D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.twinPhase (✓ std3).

Source. Repository-derived.

Commentary.

The displayed expression defines twinPhase. The three-element List.foldl starts with the first bit and applies Bool.xor to the remaining bits in order.

Definition 1.54 (twinAmplitude).

Formalization. D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.twinAmplitude (✓ std3).

Source. Repository-derived.

Commentary.

The displayed expression defines twinAmplitude.

Theorem 1.55 (twin density tensor).

Proof. Machine-checked in Lean as D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.twin_density_tensor (✓ std3). ∎

Source. Repository-derived.

Commentary.

The complement phase cancels in the Gram sum. The retained density matrix is the exact product of the four-dimensional pair matrices (I4 + X tensor X)/4. The variable qC is a function of the entire complementary bit configuration, so its type is (Fin m -> Fin 4 -> Bool) -> Bool.

Lemma 1.56 (effect entry).

Proof. Machine-checked in Lean as D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.effect_entry (✓ std3). ∎

Source. Repository-derived.

Commentary.

The gate-row projector has the displayed trigonometric entries.

Definition 1.57 (effect).

Formalization. D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.effect (✓ std3).

Source. Repository-derived.

Commentary.

The displayed expression defines effect.

Lemma 1.58 (pair density entry).

Proof. Machine-checked in Lean as D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.pair_density_entry (✓ std3). ∎

Source. Repository-derived.

Commentary.

The two-qubit density matrix retains exactly equal parity indices.

Definition 1.59 (pairDensity).

Formalization. D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.pairDensity (✓ std3).

Source. Repository-derived.

Commentary.

The displayed expression defines pairDensity.

Theorem 1.60 (measurement tensor).

Proof. Machine-checked in Lean as D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.measurement_tensor (✓ std3). ∎

Source. Repository-derived.

Commentary.

This statement supplies the finite product measurement tensor used by the twin marginal calculation.

Theorem 1.61 (effect integrable).

Proof. Machine-checked in Lean as D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.effect_integrable (✓ std3). ∎

Source. Repository-derived.

Commentary.

The single-qubit effect is integrable under the normalized angle measure.

Theorem 1.62 (complementary effect mean).

Proof. Machine-checked in Lean as D5/S3/Quantum/Measurements/IQP/HardwareCircuitFactors.complementary_effect_mean (✓ std3). ∎

Source. Repository-derived.

Commentary.

The product angle integral of complementary single-qubit effects factors into the corresponding diagonal means.

References